I have developed many desktop applications in Delphi / Pascal - Here I have used modal forms.
//Mainform
Form1:= TForm1.Create(Self);
If Form1.Showmodal =mrOK then ….
In Form1 you cal call vars in Mainform like mainform.X := 1
(I know – I normaly use try,except, finally)
I will now switch to Python and my problem is the following:
I want an application with a main window (frame) where you can call a number of forms which can have Forms and so on
I can make a program with python and wxpython where a main frame create a new frame and show it – But how do I get back – and how to I have reference to the parent frame – if its possible!
From mainform
Def OnButton1(self, event):
self.main2 = Frame2.create(None)
self.main2.Show()
self.Hide()
When I am done in main2 who do I return to mainform – It’s hidden !!
I know I can use dialog, but I need a normal frame!! What I am looking for is a small program where have a mainframe – with a button that calls a Frame (Frame1) who have a button that calls a frame (Frame1A)
I am new to Python but have made many applications in C,C++, Pascal I have looked at almost all demos, but none of them could give me a hint!
Regards Mick