Make the window with this pane ID the active Window.
555927
def set_active_window_from_pane_id(self, pane_id):
        
        assert isinstance(pane_id, int)

        for w in self.windows:
            for p in w.panes:
                if p.pane_id == pane_id:
                    self.set_active_window(w)
1004964
public function actionActiveWindowCallback()
    {
        $this->checkAccess('active-window-callback');
        
        $config = $this->model->getNgRestConfig();
        $render = new RenderActiveWindowCallback();
        $ngrest = new NgRest($config);
    
        return $ngrest->render($render);
    }
465192
def registerTopLevelWindow(self, window):
        
        # set the main window for this instance
        if not self._topLevelWindows:
            self.setPalette(window.palette())
            self.setWindowIcon(window.windowIcon())
            
            if self.splash():
                self.splash().finish(window)
        
        self._topLevelWindows.append(weakref.ref(window))
691260
def create_window(self):
        """"""
        self.undocked_window = window = PluginWindow(self)
        window.setAttribute(Qt.WA_DeleteOnClose)
        icon = self.get_plugin_icon()
        if is_text_string(icon):
            icon = self.get_icon(icon)
        window.setWindowIcon(icon)
        window.setWindowTitle(self.get_plugin_title())
        window.setCentralWidget(self)
        window.resize(self.size())
        self.refresh_plugin()

        self.dockwidget.setFloating(False)
        self.dockwidget.setVisible(False)

        window.show()
186676
function(visible)
	{
		if (mxLog.window == null)
		{
			mxLog.init();
		}

		if (mxLog.window != null)
		{
			mxLog.window.setVisible(visible);
		}
	}
684970
def keep_only_current_window(self):
        
        self.tab_pages = [TabPage(self.active_tab.active_window)]
        self.active_tab_index = 0
373736
function () {

		var href = window.location.href,
			items = parsedItems(),
			id, index;

		// get window 'id'
		if (href.indexOf('#') > -1) {
			id = window.location.hash.replace('#', '');
		} else {
			id = window.location.pathname.split('/').pop().replace(/\.[^/.]+$/, '');
		}

		// In case the first menu item isn't the index page.
		if (id === '') {
			id = 'index';
		}

		// find the window id in the items array
		index = (items.indexOf(id) > -1) ? items.indexOf(id) : 0;

		// set the matched item as active
		fabricator.dom.menuItems[index].classList.add('f-active');

	}
278281
def get_active_window(self):
        
        app = get_app()

        try:
            return self._active_window_for_cli[app]
        except KeyError:
            self._active_window_for_cli[app] = self._last_active_window or self.windows[0]
            return self.windows[0]
526083
def wf_maintenance_window_id?(id)
      id = id.to_s if id.is_a?(Numeric)
      return true if id.is_a?(String) && id =~ /^\d{13}$/

      raise Wavefront::Exception::InvalidMaintenanceWindowId
    end
1225544
def activateAndRaise(self):
        
        logger.debug("Activate and raising window: {}".format(self.windowNumber))
        self.activateWindow()
        self.raise_()
1109399
def OnInit(self):
        """"""
        self.frame = SimpleSCardAppFrame(
            self.appname,
            self.apppanel,
            self.appstyle,
            self.appicon,
            self.pos,
            self.size)
        self.frame.Show(True)
        self.SetTopWindow(self.frame)

        return True
1195550
def on(cls, &block)
      @current_screen = @current_page = cls.new
      waiting_for  = "#{cls} to be active"
      wait_until(10, waiting_for) { @current_screen.active? } if @current_screen.respond_to?(:active?)
      block.call @current_screen if block
      @current_screen
    end
505768
def qteNextWindow(self):
        
        # Get the currently active window.
        win = self.qteActiveWindow()

        if win in self._qteWindowList:
            # Find the index of the window in the window list and
            # cyclically move to the next element in this list to find
            # the next window object.
            idx = self._qteWindowList.index(win)
            idx = (idx + 1) % len(self._qteWindowList)
            return self._qteWindowList[idx]
        else:
            msg = 'qteNextWindow method found a non-existing window.'
            self.qteLogger.warning(msg)
            return None
836241
def get_active_window(self):
        
        window_ret = window_t(0)
        _libxdo.xdo_get_active_window(self._xdo, ctypes.byref(window_ret))
        return window_ret.value
299721
def _close_window(self, window):
        
        if window == self.active_window:
            self.close_active_window()
        else:
            original_active_window = self.active_window
            self.close_active_window()
            self.active_window = original_active_window
533714
function setActivePaneId(newPaneId) {
        if (!_isSpecialPaneId(newPaneId) && newPaneId !== _activePaneId) {
            var oldPaneId = _activePaneId,
                oldPane = _getPane(ACTIVE_PANE),
                newPane = _getPane(newPaneId);

            if (!newPane) {
                throw new Error("invalid pane id: " + newPaneId);
            }

            _activePaneId = newPaneId;

            exports.trigger("activePaneChange", newPaneId, oldPaneId);
            exports.trigger("currentFileChange", _getPane(ACTIVE_PANE).getCurrentlyViewedFile(),
                                                            newPaneId,
                                                            oldPane.getCurrentlyViewedFile(),
                                                            oldPaneId);

            _makePaneMostRecent(_activePaneId);
            focusActivePane();
        }
    }
538087
def _toggle_pane(self, pane):
        

        if pane.IsShown():
            pane.Hide()
        else:
            pane.Show()

        self.main_window._mgr.Update()