Changeset 192 for trunk/StreamVision
- Timestamp:
- 06/21/05 23:08:19 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r191 r192 4 4 from appscript import app, k 5 5 from AppKit import NSApplication, NSBeep, NSSystemDefined, NSURL, NSWorkspace 6 from Foundation import NSDistributedNotificationCenter 6 7 from PyObjCTools import AppHelper 7 8 from Carbon.CarbonEvt import RegisterEventHotKey, GetApplicationEventTarget … … 115 116 self.hotKeyActions[theEvent.data1()]() 116 117 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) 117 122 118 123 if __name__ == "__main__":
Note:
See TracChangeset
for help on using the changeset viewer.