def _explore(self, register_win=None):
     self.messagebox = False
     self.hwnd = win.get_active_window()
     self.children = win.get_children(self.hwnd)
     WindowDescriber.describe(self)
     if register_win is not None:
         register_win(self)
Beispiel #2
0
 def _explore(self, register_win=None):
     self.messagebox = False
     self.hwnd = win.get_active_window()
     self.children = win.get_children(self.hwnd)
     WindowDescriber.describe(self)
     if register_win is not None:
         register_win(self)
Beispiel #3
0
 def call_when_win_shows(self, method):
     self._prev_win = None
     try:
         self._prev_win = self._active_window
     except:
         pass    
     if self._prev_win == None:
         self._prev_win = win.get_active_window()
     wx.CallLater(MILLISECONDS_TO_WAIT_FOR_DIALOG_TO_SHOW, self._wait_for_win_to_show, method)
 def call_when_win_shows(self, method):
     self._prev_win = None
     try:
         self._prev_win = self._active_window
     except:
         pass
     if self._prev_win == None:
         self._prev_win = win.get_active_window()
     wx.CallLater(MILLISECONDS_TO_WAIT_FOR_DIALOG_TO_SHOW,
                  self._wait_for_win_to_show, method)
Beispiel #5
0
 def _wait_for_win_to_show(self, method):
     if self._prev_win == win.get_active_window():
         wx.CallLater(MILLISECONDS_TO_WAIT_FOR_DIALOG_TO_SHOW, self._wait_for_win_to_show, method)
     else:
         method()
Beispiel #6
0
 def set_active_window(self):
     self._active_window = win.get_active_window()
Beispiel #7
0
 def describe_window(self, hwnd):
     if hwnd == None:
         hwnd = win.get_active_window()
     Logger.header(" Window Description hwnd: %d Classname: '%s' Label: '%s'" % (hwnd, win.get_classname(hwnd), win.get_window_text))
     Logger.header2("Native Description")
     self.describe_children(hwnd)
 def _wait_for_win_to_show(self, method):
     if self._prev_win == win.get_active_window():
         wx.CallLater(MILLISECONDS_TO_WAIT_FOR_DIALOG_TO_SHOW,
                      self._wait_for_win_to_show, method)
     else:
         method()
 def set_active_window(self):
     self._active_window = win.get_active_window()