The same way you would with any other Python code, such as things in the standard library or from wxPython. You import the things from the module where they live into the module where you need to use them, and then you use them normally. For example:
import about
...
dlg = about.AboutDialog(...)
···
On 4/4/12 11:58 AM, TSUBOTA Masami wrote:
Dear all,
I'm quite a new comer for wxPython and this is my first post in this ML.
I want to make scripts for the main GUI frame and an about dialog separately
like the following:
* main.py
* about.py
I confirmed that each script run in a normal way.
What I want to know is that how to call about.py from main.py.
Do you have any suggestions or direct a useful web site?
And after that, I found so many sample codes in my PC,
i.e., wxPython2.8 Dos and Demos folder. I would somehow
make my own GUI programs by arranging/assembling
the sample dodes.
How do you think which is the best text book or web site
explaining wxPython systematically?
Anyway, thank you again.
Wishes,
Masa
···
2012/4/5 Robin Dunn <robin@alldunn.com>:
On 4/4/12 11:58 AM, TSUBOTA Masami wrote:
Dear all,
I'm quite a new comer for wxPython and this is my first post in this ML.
I want to make scripts for the main GUI frame and an about dialog
separately
like the following:
* main.py
* about.py
I confirmed that each script run in a normal way.
What I want to know is that how to call about.py from main.py.
Do you have any suggestions or direct a useful web site?
The same way you would with any other Python code, such as things in the
standard library or from wxPython. You import the things from the module
where they live into the module where you need to use them, and then you use
them normally. For example:
And after that, I found so many sample codes in my PC,
i.e., wxPython2.8 Dos and Demos folder. I would somehow
make my own GUI programs by arranging/assembling
the sample dodes.
How do you think which is the best text book or web site
explaining wxPython systematically?
As a place to get started, I recommend the online tutorial http://www.zetcode.com/wxpython/. I found Robin’s book very useful after I had worked through that.