- Timestamp:
- 06/06/06 14:23:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r233 r234 134 134 def playPause(self): 135 135 iTunes = iTunesApp() 136 was_playing = (iTunes.player_state.get() == k.playing) 136 137 iTunes.playpause() 138 if not was_playing and iTunes.player_state.get() == k.stopped: 139 # most likely, we're focused on the iPod, so playing does nothing 140 iTunes.browser_windows[1].view.set(iTunes.user_playlists.filter(its.name=='Stations')[1].get()) 141 iTunes.play() 137 142 if HAVE_XTENSION: 138 143 if iTunes.player_state.get() == k.playing:
Note:
See TracChangeset
for help on using the changeset viewer.