- Timestamp:
- 09/06/10 17:57:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r580 r631 99 99 return False 100 100 systemEvents = app(id='com.apple.systemEvents') 101 return not systemEvents.application_processes[u'iTunes'].windows[1].buttons[its.title == u'Computer'].exists() 101 remote_speakers = systemEvents.application_processes[u'iTunes'].windows[u'iTunes'].buttons[its.attributes['AXDescription'].value.endswith(u'remote speakers')].title() 102 return (remote_speakers and remote_speakers[0] != k.missing_value) 102 103 103 104 def turnStereoOn(): 104 105 global needsStereoPowerOn 105 106 if not mayUseStereo(): 107 if HAVE_XTENSION and XTensionApp().status('Stereo'): 108 XTensionApp().turnoff('Stereo') 106 109 return 107 110 if not XTensionApp().status('Stereo'): … … 304 307 menu_bar_items['Window'].menus.menu_items['Zoom'].click() 305 308 return 306 elif frontName in ('X11', ' Emacs'): # preserve C-M-\309 elif frontName in ('X11', 'XQuartz', 'Emacs'): # preserve C-M-\ 307 310 self.unregisterZoomWindowHotKey() 308 311 systemEvents.key_code(42, using=[k.command_down, k.control_down])
Note:
See TracChangeset
for help on using the changeset viewer.