Live data from Hacker News

Toga: A Python native, OS native GUI toolkit

pybee.org

11–20 of 72 posts

Re: Toga: A Python native, OS native GUI toolkit

#11

The use of constraints to let the user specify where to put things but still allow enough flexibility to do OS-dependant things is interesting (and possibly novel?): http://toga.readthedocs.org/en/latest/introduction/tutorial-...

Cassowary ( http://constraints.cs.washington.edu/cassowary/ ) is used by Apple for this.

Re: Toga: A Python native, OS native GUI toolkit

#12

The use of constraints to let the user specify where to put things but still allow enough flexibility to do OS-dependant things is interesting (and possibly novel?): http://toga.readthedocs.org/en/latest/introduction/tutorial-...

yeah, very novel.

https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tu...

http://docs.oracle.com/javase/tutorial/uiswing/layout/howLay...

Re: Toga: A Python native, OS native GUI toolkit

#13
Another toolkit that uses Python, but with Qt (and previously also wxWidgets) is enaml - it has a cassowary solver, a Visual Studio docking system, and very interesting approach to connecting that to visual elements.

https://github.com/nucleic/enaml

http://nucleic.github.io/enaml/docs/

Re: Toga: A Python native, OS native GUI toolkit

#16
Does anyone know of any similar GUI toolkits, for languages other than Python? That is, cross-platform GUI toolkits that use true OS-native widgets, and ideally, also abstract away platform-specific details such as the placement of the Quit/Exit menu items and the order of OK/Cancel buttons. Toga is actually the first library with those features that I’ve heard of.

Re: Toga: A Python native, OS native GUI toolkit

#17

The use of constraints to let the user specify where to put things but still allow enough flexibility to do OS-dependant things is interesting (and possibly novel?): http://toga.readthedocs.org/en/latest/introduction/tutorial-...

yeah, very novel. https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tu... http://docs.oracle.com/javase/tutorial/uiswing/layout/howLay...

Neither of those are constraint based.

Re: Toga: A Python native, OS native GUI toolkit

#19
This project appears to be quite early stage (many missing APIs, no stable Windows support, poor documentation, etc) but very promising. If it had integration with a GUI designer and was feature complete, I'd start using it on projects.

I've explored the options for Python GUI toolkits quite extensively. They're a real challenge to get running conveniently (by conveniently, I mean a simple PIP install away with no external C/C++ library dependencies) on OS X with native looks, and that is a nice advantage of this one IMHO.

Re: Toga: A Python native, OS native GUI toolkit

#20

Does anyone know of any similar GUI toolkits, for languages other than Python? That is, cross-platform GUI toolkits that use true OS-native widgets, and ideally, also abstract away platform-specific details such as the placement of the Quit/Exit menu items and the order of OK/Cancel buttons. Toga is actually the first library with those features that I’ve heard of.

I think you're looking for phoenix: http://byuu.org/programming/phoenix/

An example application using it, with the GTK backend: https://i.imgur.com/pW2Jl9q.png

and the Qt backend: https://i.imgur.com/z6cC3rM.png

The author (byuu) posts here, he might be able to answer questions.

Post reply on HN