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)
Exemple #2
0
 def set_focus(self):
     """ Gives focus to the control that represents the pane.
     """
     if self.control is not None:
         set_focus(self.control.widget())
Exemple #3
0
 def set_focus(self):
     """ Gives focus to the control that represents the pane.
     """
     if self.control is not None:
         set_focus(self.control)
 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)