示例#1
0
 def focusSearchWindow_(self, sender):
     if self.search_window.isKeyWindow():
         NSApp.hide_(None)
     else:
         NSApp.arrangeInFront_(None)
         self.search_window.makeKeyAndOrderFront_(None)
         NSApp.activateIgnoringOtherApps_(True)
         self.search_window.makeFirstResponder_(self.search_box)
示例#2
0
 def display_login_window(self):
     NSApp.arrangeInFront_(None)
     self.login_window.makeKeyAndOrderFront_(None)
     NSApp.activateIgnoringOtherApps_(True)
     self.login_window.makeFirstResponder_(self.username_box)