Changeset 193
- Timestamp:
- 06/21/05 23:10:56 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r192 r193 110 110 self.registerHotKey(lambda: iTunesApp().previous_track(), 109) # F10 111 111 self.registerHotKey(lambda: iTunesApp().next_track(), 103) # F11 112 NSDistributedNotificationCenter.defaultCenter().addObserver_selector_name_object_(self, self.displayTrackInfo, 'com.apple.iTunes.playerInfo', None) 112 113 113 114 def sendEvent_(self, theEvent): … … 116 117 self.hotKeyActions[theEvent.data1()]() 117 118 super(StreamVision, self).sendEvent_(theEvent) 118 119 def finishLaunching(self):120 super(StreamVision, self).finishLaunching()121 NSDistributedNotificationCenter.defaultCenter().addObserver_selector_name_object_(self, self.displayTrackInfo, 'com.apple.iTunes.playerInfo', None)122 119 123 120 if __name__ == "__main__":
Note:
See TracChangeset
for help on using the changeset viewer.