def prefs(self, _):
    rumps.alert('jk! no preferences available!')

@rumps.clicked('Silly button')
def onoff(self, sender):
    sender.state = not sender.state

@rumps.clicked('Say hi')
def sayhi(self, _):
    rumps.notification('Awesome title', 'amazing subtitle', 'hi!!1')
if __name__ == '__main__':
    AwesomeStatusBarApp().run()
How to make an menu bar (system tray) app for OSX in Python?