コード例 #1
0
 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)
コード例 #2
0
ファイル: dock_pane.py プロジェクト: rwl/pyface
 def set_focus(self):
     """ Gives focus to the control that represents the pane.
     """
     if self.control is not None:
         set_focus(self.control.widget())
コード例 #3
0
ファイル: task_pane.py プロジェクト: brett-patterson/pyface
 def set_focus(self):
     """ Gives focus to the control that represents the pane.
     """
     if self.control is not None:
         set_focus(self.control)
コード例 #4
0
 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)