Event handling between two frame!

Hi,
How I could manage an event of a frame, from an another frame?
I'm thinking a stuff like

[module.name].[event.in.module.name]

I need it because I would refresh from a frame some dataset that stay in a=
in another frame.For example, if I've a frame with a wx.ListCtrl that show=
a list of products and I open a second frame with the detaills of a=
single product and I make some modify I like that this modify was show in=
the first frame.To do this I'm thinking to use a def that stay in the=
first frame calling it from the second frame.
In pratice, my problem is how to call a function that is in a frame (in the=
frame class) from another frame.

Thank for you attention.

Beppe

···

---------------------------------------------------
Ai sensi della Legge 196/03 si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio Le fosse pervenuto per errore, la preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.

This message, for the law 196/03, may contain confidential and/or privileged information. If you are not the addressee you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately and delete this message. Thank you for your cooperation

E' nata IDICard, la carta prepagata ricaricabile sicura e flessibile,
che ti offre agevolazioni e sostiene la ricerca scientifica ed i progetti umanitari dell'IDI Sanita'
---------------------------------------------------

Raffaello Barella wrote:

My solution is to separate the handling of the event from the actual action, e.g. I write this code in the main_frame:
    def On_EVT_LIST_ITEM_SELECTED(self, event):
         self.DoSomething()
         event.Skip ()
    def DoSomething(self):
         print 1

In the second frame, you simply call the function DoSomething() thus:
         main_frame.DoSomething()
and if will print 1.

I admit it is rather rude, but it works. Bye

A non-rude approach would be to use an intermediary object that further abstracts the message passing concept. For example with wx.lib.pubsub any part of your application can subscribe to a message, and any other part of the app can publish those messages, and they don't need to know anything about each other.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!