decoupling complex GUIs with signals/slots

Eli Bendersky wrote:

In Python/wxPython there's no built-in signal/slot mechanism, so I'm
wondering what people are using.

Pubsub is built in, does this not count as a signal/slot mechanism?

Can you (or someone else) demonstrate how the signal/slot idioms are
implemented with pubsub ?

The basic mode of usage for signals/slots is:

* There's a main window
* There's a sub-window that has a slot for accepting messages and a signal
for sending messages

When the main window creates the sub-window, it has to:
- Tie the sub-window's signal to its own (main window's) reception slot
- Tie the its own signal to the sub-window's slot

How is this done with pubsub ?

Thanks in advance
Eli

ยทยทยท

--
View this message in context: http://www.nabble.com/decoupling-complex-GUIs-with-signals-slots-tp18195702p18201909.html
Sent from the wxPython-users mailing list archive at Nabble.com.

eliben wrote:

  

Pubsub is built in, does this not count as a signal/slot mechanism?
      
Can you (or someone else) demonstrate how the signal/slot idioms are
implemented with pubsub ?

What? I gave an example about 2 lines down from that in the same email. Is that not what you want?

- Mike