Icon on wx.MDIParentFrame

L

LenS

I would like to put an Icon on the frame but cannot figure out how to
do it any help.

Running on XP machine.

It appears that wxPython suffers from the same problem as most software
packages. I find that the reference manual is only of any real help
once you have a pretty good understanding of how the software works in
the first place.

Len Sumnler
 
A

Andrea Gavana

Hello Len
I would like to put an Icon on the frame but cannot figure out how to
do it any help.

What about:

wx.MDIParentFrame.SetIcon(self, icon)

?

I usually take a look also to the wxPython API docs at:

http://www.wxpython.org/docs/api/

Or I use some google-fu to find answers, both for Python and wxPython.

However,
It appears that wxPython suffers from the same problem as most software
packages. I find that the reference manual is only of any real help
once you have a pretty good understanding of how the software works in
the first place.

The "docs subject" appears to be hot this week ;-) . You are perfectly
right, in my opinion. However, I am quite sure that the new wxPython book
(scheduled for december or something around december) will be a useful and
nice reference for newbies and experts.

HTH.

Andrea.
 
L

LenS

Thanks

I will keep an eye out for the book. I just downloaded wxGlade and
created a small file and looked at how it does it.

Again thanks for the response
 
P

Peter Hansen

LenS said:
Thanks

I will keep an eye out for the book. I just downloaded wxGlade and
created a small file and looked at how it does it.

That (copying someone else) is almost always the best approach anyway,
even when one has decent documentation.

Note that with wxPython you should have or can install the "Demo"
package, which includes a demo program that shows how to do pretty much
everything. If there isn't code somewhere in there that shows how to
set an icon on a frame, I'd be surprised. (On the other hand, finding
exactly which of the many demo screens it is in could be a challenge.)

The demo used to be included in the standard distribution but is now
separate, so maybe you missed it.

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Forum statistics

Threads
474,270
Messages
2,571,341
Members
48,029
Latest member
Anchorman2022

Latest Threads

Top