[GUI Design] How to achieve short comm paths between controls?

Cliff Wells clifford.wells at comcast.net
Fri Aug 29 11:35:49 CEST 2003


On Wed, 2003-08-27 at 12:29, F. GEIGER wrote:

[snip nice diagram]

> Should I create a dict with control name/object pairs, held by the
> MainFrame?

This doesn't sound too bad.

> Or should the rhs group box a globally accessible singleton or Borg?

Trying to get past my prejudice against the word global to see this
solution objectively and just can't.

> Any other hint? How do you handle such situations?

Perhaps by generating a custom event and posting it to the main window? 
If you're using wxPython, you might take a look at the dispatcher
module.  I haven't used it yet, but it might be appropriate to this sort
of task.  Regardless, I'd certainly post to the wxPython user list to
see what people there come up with.

Regards,
Cliff

-- 
She clings to the nearest passerby, she's lost control again
                                              -Joy Division






More information about the Python-list mailing list