Changeset 193 for trunk


Ignore:
Timestamp:
06/21/05 23:10:56 (19 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: hm, you think one finishLaunching method is enough?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r192 r193  
    110110        self.registerHotKey(lambda: iTunesApp().previous_track(), 109) # F10
    111111        self.registerHotKey(lambda: iTunesApp().next_track(), 103) # F11
     112        NSDistributedNotificationCenter.defaultCenter().addObserver_selector_name_object_(self, self.displayTrackInfo, 'com.apple.iTunes.playerInfo', None)
    112113
    113114    def sendEvent_(self, theEvent):
     
    116117            self.hotKeyActions[theEvent.data1()]()
    117118        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)
    122119
    123120if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.