[Pythonmac-SIG] GUIs and Python
Dan Grassi
dan@grassi.org
Fri, 15 Feb 2002 15:24:24 -0500
There has been a lot of talk about Mac Python GUIs and one major
stumbling block seems to be run loops and the interaction between
Python's run loop and the GUI's run loop. It seems to me that this is
primarily a coupling issue that has a rather easy solution with added
benefits as well and is a cross-platform solution as well.
Make the GUI a separate task and reduce the coupling to socket/pipe/SOAP
connections between Python and the GUI. This meets not only the lose
coupling model but enforces it. It also fits the Model/View/Controller
approach used by many GUIs. This could be an option for AnyGUI thus
allowing cross-platform operation even between machines. It also fits
with the HTML as GUI as well as Java/Cocoa/AppleScript as GUI.
With some care one of the current stumbling blocks of AnyGUI, that of a
program generated GUI, could also be mitigated and the GUI could be
built with virtually any GUI GUI design program -- think Interface
builder on Mac OS X, it is a killer app!
Comments?
Dan