Dear all,
I built 2 script to manage 2 different frames (which I will then convert to exe with py2exe).
Frame 1 (GG1) is like this
import wx
# begin wxGlade: extracode
# end wxGlade
class MyFrame(wx.Frame):
functions here
...
if __name__ == "__main__":
app = wx.PySimpleApp(0)
wx.InitAllImageHandlers()
GG1 = MyFrame(None, -1, "")
app.SetTopWindow(GG1)
GG1.Show()
app.MainLoop()
Everything is fine. Now I would like to open another independent frame (GG2)
import wx
# begin wxGlade: extracode
# end wxGlade
class MyFrame(wx.Frame):
functions here
...
if __name__ == "__main__":
app = wx.PySimpleApp(0)
wx.InitAllImageHandlers()
GG2= MyFrame(None, -1, "")
app.SetTopWindow(GG2)
GG2.Show()
app.MainLoop()
GG1 and GG2 are in 2 py files. Is there a ways for them to share values (something I enter in a GG2 box to be copied in one GG1 box)? Or to do something like
GG1 opens GG2
GG1 closes
when I close GG2
GG1 opens
Otherwise, since GG1 has a function that search for a text file when it opens, I can I ask GG1 to search again for that file after GG2 closes?
I know it's a bit confusing... sorry about that and thanks for your help,
Gianluca