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
 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)