Beispiel #1
0
 def _restore_foreground_window_at_end():
     foreground = GetForegroundWindow()
     try:
         yield
     finally:
         if rcParams['tk.window_focus']:
             SetForegroundWindow(foreground)
 def __init__(self):
     self._shellWindow = GetForegroundWindow()