API Reference
nuke.
thisPane
Returns the active pane. This is only valid during a pane menu callback or window layout restoration.
The active pane.