def focusInEvent(self, event): """ Assign focus to the active editor, if possible. """ active_editor = self.editor_area.active_editor if active_editor: set_focus(active_editor.control)
def set_focus(self): """ Gives focus to the control that represents the pane. """ if self.control is not None: set_focus(self.control.widget())
def set_focus(self): """ Gives focus to the control that represents the pane. """ if self.control is not None: set_focus(self.control)