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