473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

wxPython : getting started

Hi !

I've looked all over (internet, books, etc.) and I haven't found a very
good ressource to get started with wxPython (yes, I've been through
their tutorial).

What I would basically like to do for starters is to be able to define
the main panel being displayed. For example :
1. wxFrame contains a wxPanel (call it mainPanel).
2. mainPanel contains another panel (childPanelA)
3. another panel has been defined (childPanelB) but is not displayed
(the user can only see childPanelA inside mainPanel)
4. by clicking on a menu entry (for example), the displayed panel is now
childPanelA (which is inside mainPanel)

So how do I do this ? I realize it's a very basic question, but it's
been driving me mad...

Also, is there any good open source wxPython program that I could study ?

Thanks for any help...
Nov 29 '05 #1
9 1509
David Sulc wrote:
Hi !

I've looked all over (internet, books, etc.) and I haven't found a very
good ressource to get started with wxPython (yes, I've been through
their tutorial).

What I would basically like to do for starters is to be able to define
the main panel being displayed. For example :
1. wxFrame contains a wxPanel (call it mainPanel).
2. mainPanel contains another panel (childPanelA)
3. another panel has been defined (childPanelB) but is not displayed
(the user can only see childPanelA inside mainPanel)
4. by clicking on a menu entry (for example), the displayed panel is now
childPanelA (which is inside mainPanel)

So how do I do this ? I realize it's a very basic question, but it's
been driving me mad...

Also, is there any good open source wxPython program that I could study ?

Thanks for any help...

David,

I'm dodging your question but you might find this soon to be released
book helpful:
http://www.manning.com/books/rappin

Also Boa Constructor is a helpful tool.

Colin W.

Nov 29 '05 #2
In article <43********@epflnews.epfl.ch>,
David Sulc <da*******@oleyres.ch> wrote:
Hi !

I've looked all over (internet, books, etc.) and I haven't found a very
good ressource to get started with wxPython (yes, I've been through
their tutorial).

What I would basically like to do for starters is to be able to define
the main panel being displayed. For example :
1. wxFrame contains a wxPanel (call it mainPanel).
2. mainPanel contains another panel (childPanelA)
3. another panel has been defined (childPanelB) but is not displayed
(the user can only see childPanelA inside mainPanel)
4. by clicking on a menu entry (for example), the displayed panel is now
childPanelA (which is inside mainPanel)

So how do I do this ? I realize it's a very basic question, but it's
been driving me mad...

...

I don't know or use wxWidgets, and I've just learned GTK, but I think
one good answer is the same as with GTK: use a wxNotebook. You may be
able to hide the tabs, or you may just decide they're a good thing to
have.

To do what you asked, see the wxWindow method Show(), which you would
call for each or A and B etc. in response to the command.
__________________________________________________ ______________________
TonyN.:' *firstname*nlsnews@georgea*lastname*.com
' <http://www.georgeanelson.com/>
Nov 29 '05 #3
One possible source of help is the book "Python Programming on Win 32".
It has a 20 page introducrtion on using wxPython.

Howard
David Sulc wrote:
Hi !

I've looked all over (internet, books, etc.) and I haven't found a very
good ressource to get started with wxPython (yes, I've been through
their tutorial).

What I would basically like to do for starters is to be able to define
the main panel being displayed. For example :
1. wxFrame contains a wxPanel (call it mainPanel).
2. mainPanel contains another panel (childPanelA)
3. another panel has been defined (childPanelB) but is not displayed
(the user can only see childPanelA inside mainPanel)
4. by clicking on a menu entry (for example), the displayed panel is now
childPanelA (which is inside mainPanel)

So how do I do this ? I realize it's a very basic question, but it's
been driving me mad...

Also, is there any good open source wxPython program that I could study ?

Thanks for any help...


Nov 30 '05 #4
The book that Colin points out looks good - but not available until Jan
2006. When it comes out I might buy it - just out of curiosity :-)

Personally I "bounced" when I attempted to learn wxPython - I found it much
easier to learn and use Tkinter combined with Pmw.

I really tried on the wxPython as well - it wasn't just a 1/2hr exercise :-)
I must have spent between 4 - 6 weeks attempting to get my head around it
before giving up. The Pmw/TkInter combination was much easier to get up and
going with. Pmw is incredibly powerful once you get the ghist of its core
i.e. the MegaWidget, MegaArchetype etc.

Having said that, I still have my printer utility (Win32) written using
wxPython - I never could work out how to get that working with Pmw/TkInter.
I just used sockets to transfer the text to be printed between the wxPython
print utility and my TkInter/Pmw based application :-)

Peter

"David Sulc" <da*******@oleyres.ch> wrote in message
news:43********@epflnews.epfl.ch...
Hi !

I've looked all over (internet, books, etc.) and I haven't found a very
good ressource to get started with wxPython (yes, I've been through
their tutorial).

What I would basically like to do for starters is to be able to define
the main panel being displayed. For example :
1. wxFrame contains a wxPanel (call it mainPanel).
2. mainPanel contains another panel (childPanelA)
3. another panel has been defined (childPanelB) but is not displayed
(the user can only see childPanelA inside mainPanel)
4. by clicking on a menu entry (for example), the displayed panel is now
childPanelA (which is inside mainPanel)

So how do I do this ? I realize it's a very basic question, but it's
been driving me mad...

Also, is there any good open source wxPython program that I could study ?

Thanks for any help...

Nov 30 '05 #5
hrh1818 wrote:
One possible source of help is the book "Python Programming on Win 32".
It has a 20 page introducrtion on using wxPython.


I think that's pretty much out of date though, unless there is a
2nd edition that I missed. I can't say that I remember that chapter,
but wxPython changed quite a bit since that book was written. It's
still a good book though!
Dec 5 '05 #6
Peter Milliken wrote:
Personally I "bounced" when I attempted to learn wxPython - I found it much
easier to learn and use Tkinter combined with Pmw.


It's my impression that Pmw isn't really maintained. AFAIK, the last
release (as well as the last CVS commit) is more than two years old.
Dec 5 '05 #7
Magnus,

Not sure what gave you that idea - there is a Pmw mailing list and very,
very occasionally email activity on it - I believe the product is
maintained, it is most likely considered "complete" in and of itself.
Certainly if there is some object that is not present in the collection then
you can easily create one to your specifications/requirements using the
MegaWidget and MegaArchetype base classes.

Even elements that are not in the Pmw collection - such as elements found in
the BLT are catered for with the Pmw - BLT interface and the "A Users Guide
to Pmw.Blt".

Perhaps the authors should create a new "release" every 6 months or so just
so people don't get this (mistaken) impression - I am just not sure what
they should put into each new "release" :-)

Regards,
Peter
"Magnus Lycka" <ly***@carmen.se> wrote in message
news:dn**********@wake.carmen.se...
Peter Milliken wrote:
Personally I "bounced" when I attempted to learn wxPython - I found it much easier to learn and use Tkinter combined with Pmw.


It's my impression that Pmw isn't really maintained. AFAIK, the last
release (as well as the last CVS commit) is more than two years old.

Dec 5 '05 #8
Peter Milliken wrote:
Perhaps the authors should create a new "release" every 6 months or so just
so people don't get this (mistaken) impression - I am just not sure what they
should put into each new "release" :-)


just bump the version number slightly, and add a "tested with <latest
minor python release>" to the README file.

</F>

Dec 5 '05 #9
David Sulc wrote:
Hi !

I've looked all over (internet, books, etc.) and I haven't found a very
good ressource to get started with wxPython (yes, I've been through
their tutorial).

What I would basically like to do for starters is to be able to define
the main panel being displayed. For example :
1. wxFrame contains a wxPanel (call it mainPanel).
2. mainPanel contains another panel (childPanelA)
3. another panel has been defined (childPanelB) but is not displayed
(the user can only see childPanelA inside mainPanel)
4. by clicking on a menu entry (for example), the displayed panel is now
childPanelA (which is inside mainPanel)

So how do I do this ? I realize it's a very basic question, but it's
been driving me mad...

Also, is there any good open source wxPython program that I could study ?

Thanks for any help...


Without wishing to hijack this thread, I have just been encouraged by
the PyCon organisers to publicise one of the tutorials I'll be giving
the day before PyCon proper starts. Yes, it's a programmer's
introduction to wxPython. See:
http://wiki.python.org/moin/PyCon200...edWithWxPython

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Dec 6 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

84
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
6
by: Jack Duijf | last post by:
Hello, I am looking for a person in The Netherlands that is willing to help me getting started with Vb.net. Please send a message to jack@aicn.nl if you can help me getting started with the...
1
by: =?Utf-8?B?Q29kZVNsaW5nZXI=?= | last post by:
I plan to build my own 2008 Server/Hyper-V system and will not be using one of the tested Dell or HP systems from the release notes and could use some pointers as to my assumnptions and answers to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.