re: Pygeo, platforms, wx and Tk
TK's capabilities and Arthur's capabilities with TK being different issues ;)
Tk is a great cross-platform solution, rock solid and not too hard to use. However, other cross-platform GUI frameworks exist, are free and open source, and have their own virtues and vices.
Reluctant to go down this road, but: What Arthur uses as a gui toolkit for PyGeo is largely a decision being made by Guido. As mentioned, one of my most primary concerns regarding PyGeo at this point is packaging/distribution. So in the absence of compelling reason to do otherwise, I will stick with the toolkit distributed standard with PyGeo. There are lots of great things being done with other toolkits. And it does seem to me that general concensus would more easily form around wxPython, as truer standard, than TK. Not my battle to fight. And the status of Idle then becomes an issue. But Guido should be made aware if he is not already - since his own writings on education contemplate utilizing 3d graphics - that OpenGL on Tk has become problematic And I guess this is partly an effort to make sure that he is aware of this. (though I am not swearing as to its status as broken/fixed as of today) And I *do* face a crucial functional issue with TK, and only on Linux, as it happens, regarding threading. I may try to present the issue later, to try to get some feedback, and help determine whether the issue is inherent, a limitation of the developer, or a limitation of the particular toolkit. Art.
As mentioned, one of my most primary concerns regarding PyGeo at this point is packaging/distribution. So in the absence of compelling reason to do otherwise, I will stick with the toolkit distributed standard with PyGeo.
Bittorrent is an example of a popular application written in Python, used by students everywhere, that sits on wx. Distribution is easy. Click to download and install (I've only done this on Windows -- got my Mandrake 10.1 Official using it). http://bittorrent.com/
From the FAQ:
What language is BitTorrent written in? Python. And it uses wxWindows for its GUI. http://bittorrent.com/FAQ.html
But Guido should be made aware if he is not already - since his own writings on education contemplate utilizing 3d graphics - that OpenGL on Tk has become problematic
Looks like someone named Mike Hartshorn was in charge of Tkinter bindings to OpenGL: http://pyopengl.sourceforge.net/pydoc/OpenGL.Tk.html What I like about VPython is its *extremely* simple API. Just a couple pages of docs. And yet there's a lot you can do with it (as Pygeo demonstrates). Do you see PyGeo as primarily aimed at teaching Python, or geometry, or both or neither? I think the surrounding curriculum, as well as the architecture of the package itself, will hinge on this question in some respects. Here's another question: say two students have PyGeo installed. Can student A send student B a text file in "pygeo scripting language" that will recreate some cool interactive exhibit, like those that come with PyGeo? In other words, are the scripts cleanly separable from the core engine, and are they easily sharable as such, much as .py files get shared? If so, do PyGeo scripts have an extension, like .pg, and could we have special syntax coloring for them in various popular editors like vim? Kirby
participants (2)
-
ajsiegelīŧ optonline.net -
Kirby Urner