PYTHON and GUIS and LOGIC... What First? (NEWBIE)

Jorgen Bodde jorgen.maillist at gmail.com
Tue Apr 17 13:12:05 EDT 2007


Hi,

Basically your data model needs to be defined. It depends on your
'problem area'. It is usually good practice to keep your datamodel
free of GUI elements, so that it can be easily reused. The GUI in the
other hand can know everything about the public interface of the data
model.

I've recently started to use pyDispatcher / wx.lib.pubsub to send
messages from the object model to the GUI, notifying about additions /
updates so that the individual elements such as the list control
showing the items, or other views are updated without you having to
make sure any little data change has to be synced with the GUI. The
data syncs the GUI through an abstract interface. Python is a really
good language for this ..

Regards,
- Jorgen



More information about the Python-list mailing list