Hooking things up in GUI application

Ryan Ginstrom ginstrom at tree.odn.ne.jp
Tue Apr 25 11:24:49 EDT 2006


> Behalf Of sturlamolden
> Ryan Ginstrom wrote:
> 
> > Yes, I've tried something similar with wxGlade.
> 
> But GLADE is not wxGlade :-)

Yes, I'm just saying that I've done something similar to your example. In
fact, wxCard also does this auto-generation of handlers. That's a start, but
it's still auto-generated code -- XML doesn't save you from that -- and it
doesn't do the meaty stuff. (I chose wxWidgets over GTK because, despite
GTK-Wimp, I think wxWidgets' support on Windows is better.)

There are many philosophies to GUI design, and mine problably isn't the best,
but I actually like having my design in the code. I think it saves a layer of
abstraction, it's easier to test/modularize, and still doesn't prevent you
from separating the GUI layer from the business logic, especially in a
language like Python.

But I don't want to argue this point, just state that this isn't the problem
I want to solve. I really liked the idea of KVO/KVC in Cocoa that James
Stroud mentioned. That is what I am after, or something like that. If there
isn't anything like that, I think that it might be worthwhile to port it to
Python in some form. It seems at first glance that it would be fairly easy to
do. 

--
Regards,
Ryan Ginstrom




More information about the Python-list mailing list