self.timer.fire()

def sync_(self, notification):
    print('sync')

def tick_(self, notification):
    print(self.state)
if __name__ == '__main__':
    app = NSApplication.sharedApplication()
delegate = MyApplicationAppDelegate.alloc().init()
app.setDelegate_(delegate)
AppHelper.runEventLoop()
How can I create a status bar item with Cocoa and Python (PyObjC)?