Skip to content

framework for quickly developing macOS applications in Python with Twisted

License

Notifications You must be signed in to change notification settings

glyph/QuickMacApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickMacApp

Note

This is extremely rough and poorly documented at this point. While its public API is quite small to avoid undue churn, it may change quite rapidly and if you want to use this to ship an app you probably will want to contribute to it as well.

Make it easier to write small applications for macOS in Python, using Twisted.

To get a very basic status menu API:

 from quickmacapp import mainpoint, Status, answer, quit
 from twisted.internet.defer import Deferred

 @mainpoint()
 def app(reactor):
     s = Status("☀️ 💣")
     s.menu([("Do Something", lambda: Deferred.fromCoroutine(answer("something"))),
             ("Quit", quit)])
 app.runMain()

Packaging this into a working app bundle is currently left as an exercise for the reader.

This was originally extracted from https://github.com/glyph/Pomodouroboros/

About

framework for quickly developing macOS applications in Python with Twisted

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages