Changeset 313 for trunk/StreamVision
- Timestamp:
- 11/10/06 19:17:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r302 r313 148 148 if not was_playing and iTunes.player_state.get() == k.stopped: 149 149 # most likely, we're focused on the iPod, so playing does nothing 150 iTunes.browser_windows[1].view.set(iTunes.user_playlists .filter(its.name=='Stations')[1].get())150 iTunes.browser_windows[1].view.set(iTunes.user_playlists[its.name=='Stations'][1].get()) 151 151 iTunes.play() 152 152 if HAVE_XTENSION and useStereo: … … 158 158 def playPauseFront(self): 159 159 systemEvents = app(id='com.apple.systemEvents') 160 frontName = systemEvents.processes .filter(its.frontmost)[1].name()160 frontName = systemEvents.processes[its.frontmost][1].name() 161 161 if frontName == 'RealPlayer': 162 162 realPlayer = app(id='com.RealNetworks.RealPlayer') … … 178 178 179 179 def zoomWindow(self): 180 # XXX detect if "enable access for assistive devices" needs to be enabled 180 181 systemEvents = app(id='com.apple.systemEvents') 181 frontName = systemEvents.processes .filter(its.frontmost)[1].name()182 frontName = systemEvents.processes[its.frontmost][1].name() 182 183 if frontName == 'iTunes': 183 184 systemEvents.processes['iTunes'].menu_bars[1]. \ … … 193 194 zoomed.set(not zoomed()) 194 195 except (CommandError, RuntimeError): 195 systemEvents.processes[frontName].windows .\196 filter(its.subrole == 'AXStandardWindow').windows[1]. \197 buttons .filter(its.subrole == 'AXZoomButton').buttons[1].click()196 systemEvents.processes[frontName].windows \ 197 [its.subrole == 'AXStandardWindow'].windows[1]. \ 198 buttons[its.subrole == 'AXZoomButton'].buttons[1].click() 198 199 199 200 def finishLaunching(self):
Note:
See TracChangeset
for help on using the changeset viewer.