Live data from Hacker News

Toga: A Python native, OS native GUI toolkit

pybee.org

41–50 of 72 posts

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

#41

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 ex…

Thanks for the kind words.

Yes, the project is very early stage - I've been tinkering for 6 months in my spare time (and it's not like I had a whole lot of that to start with). Getting cross platform on 4 platforms has, as you might expect, taken a bit of effort.

I started down this path because the existing options didn't satisfy me. When my initial couple of weeks of tinkering proved that it was possible to get widgets without binary dependencies, that gave me the momentum to get to the point that I've publicly announced. There's plenty left to do, but I've got high hopes.

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

#42
post #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/

Project author here; Thanks for the heads up - I haven't come across Enaml before. I'll take a look.

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

#43

left_container = toga.OptionContainer() AttributeError: 'module' object has no attribute 'OptionContainer' Frustrating when things that are supposed to work out of the box, don't. Initial search yields no help.

Sounds like you're on Windows. Unfortunately, Windows support is pretty primitive at this point (reflecting my own priorities - OSX, Unix and mobile support is a more pressing concern). I'll update the homepage and docs to better reflect the current project status.

Longer term, I definitely want to support Windows to the same level as other platforms; any assistance on this front would be gratefully accepted.

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

#44
post #3

Very interesting. They have other tools which are rather useful looking as well: http://pybee.org/ (debugger, test runner, coverage visualiser etc)

Thanks for the promotion :-)

Of those tools, the test runner (cricket) is the most mature; the debugger isn't much more than a proof of concept. Those tools are also based in Tkinter at the moment; I started Toga because I've started to hit the limits of Tkinter.

The intention is to port the other PyBee tools to Toga as soon as they get mature enough.

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

#46

loutish/lazy Debian/"testing" system here: ~> apt-cache search toga toga2 - computer chess engine, calculates chess moves (hm... wake me when it hits testing)

Given that the project was announced publicly 1 week ago, I wouldn't expect to see it in Debian (testing or otherwise) for a little while.

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

#47
post #15

The Mac screenshot I see on the home page looks about as non-native as the average Qt app.

There are probably quite a few Qt apps you haven't noticed because they look perfectly native. What you mean is "a badly designed Qt app".

i highly, highly doubt that, but i'd love to be proven wrong. what's the best example of an OS X-native-looking Qt app you know of?

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

#48
post #34

I was really confused when I read "the constrain() call takes expressions that define the relationships you want to impose" (emphasis mine) and saw this code: container.constrain(button.TOP == container.TOP + 50) Python doesn't let you pass expressions! Why isn't that just getting evaluated to true or false? Is this not vanilla Python? Is there a pre-processor? I dove into the code and found the answer here[1]. butto…

Google use operator overloading in their appengine stuff.

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

#49
post #47

Earlier quoted context omitted.

There are probably quite a few Qt apps you haven't noticed because they look perfectly native. What you mean is "a badly designed Qt app".

i highly, highly doubt that, but i'd love to be proven wrong. what's the best example of an OS X-native-looking Qt app you know of?

Spotify isn't bad.

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

#50
post #47

Earlier quoted context omitted.

i highly, highly doubt that, but i'd love to be proven wrong. what's the best example of an OS X-native-looking Qt app you know of?

Spotify isn't bad.

Spotify's UI is many things, but it doesn't even begin to appear system native.
Post reply on HN