How to find wxPython method documentation??

L

len

Hi

I am going through the "wxPython in Action" book by Noel Rappin and
Robin Dunn.

I have been typing in the example programs as I go and play with
modifing the code.
Thought I should start trying to find my way around the documentation
found on the wxPython web site.

The problem I have been having is I can't find the methods or more
specifically

'SetBackgroundColour' or 'AddSimpleTool' for example.

How does one find the methods that are available in the classes.

I tried looking at the wxWidgets web site and still had the same
problem.

Could someone give me a little direction in this?

Thanks
Len
 
A

andrew cooke

How does one find the methods that are available in the classes.

heh. welcome to the wonderful world of wxpython :eek:(

if you use eclipse to edit your code, then (providing the wind is in
the right direction and the file you are editing doesn't have any
syntax errors) pressing F3 when you are on a particular method will
take you to the definition. or, at least, one of the definitions with
that name.

and if you want to see a list of available methods the simplest way is
to use tab completion (or dir() in python itself).

if you're not using eclipse (with pydev) check to see if the ide/
editor you are using has something similar.

also, wxpython comes with some examples, all packaged in a demo
program. that is your best source of documentation. go through all
the examples in there and look at the code (the demo program will show
you the code and even let you edit it and see the results of your
changes).

to be honest, wxpython is a bit of a nightmare (imho). but the results
can be worth it.

good luck,
andrew
 
E

Egon Frerich

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The documentation is here:

http://www.wxpython.org/onlinedocs.php

In "Alphabetical class reference" you can find for example wxButton with
its methods. Yes - there is no function 'SetBackgroundColour'. But there
is a list with classes from which wxButton is derived.
'SetBackgroundColour' is a method for all widgets so it is described in
~ class wxWindow.

Egon
len schrieb:
| Hi
|
| I am going through the "wxPython in Action" book by Noel Rappin and
| Robin Dunn.
|
| I have been typing in the example programs as I go and play with
| modifing the code.
| Thought I should start trying to find my way around the documentation
| found on the wxPython web site.
|
| The problem I have been having is I can't find the methods or more
| specifically
|
| 'SetBackgroundColour' or 'AddSimpleTool' for example.
|
| How does one find the methods that are available in the classes.
|
| I tried looking at the wxWidgets web site and still had the same
| problem.
|
| Could someone give me a little direction in this?
|
| Thanks
| Len
| --
| http://mail.python.org/mailman/listinfo/python-list

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJirGrZRiDo9Iq4qIRAoReAJ49ojnUSI9tlCLXn3ynrUDqERykywCePuYB
FOFMykSlCTgON4Ta3eGLPCM=
=0Xq3
-----END PGP SIGNATURE-----
 
M

Mike Driscoll

heh.  welcome to the wonderful world of wxpython :eek:(

if you use eclipse to edit your code, then (providing the wind is in
the right direction and the file you are editing doesn't have any
syntax errors) pressing F3 when you are on a particular method will
take you to the definition.  or, at least, one of the definitions with
that name.

and if you want to see a list of available methods the simplest way is
to use tab completion (or dir() in python itself).

if you're not using eclipse (with pydev) check to see if the ide/
editor you are using has something similar.

also, wxpython comes with some examples, all packaged in a demo
program.  that is your best source of documentation.  go through all
the examples in there and look at the code (the demo program will show
you the code and even let you edit it and see the results of your
changes).

to be honest, wxpython is a bit of a nightmare (imho). but the results
can be worth it.

good luck,
andrew

I don't think the docs are any worse than any other complicated third
party package. Reportlab comes to mind...and the wxPython list members
are very helpful.

Mike
 
M

Mike Driscoll

Hi

I am going through the "wxPython in Action" book by Noel Rappin and
Robin Dunn.

I have been typing in the example programs as I go and play with
modifing the code.
Thought I should start trying to find my way around the documentation
found on the wxPython web site.

The problem I have been having is I can't find the methods or more
specifically

'SetBackgroundColour' or 'AddSimpleTool' for example.

How does one find the methods that are available in the classes.

I tried looking at the wxWidgets web site and still had the same
problem.

Could someone give me a little direction in this?

Thanks
Len

In addition to what the others have said, there's also an alternate
doc location done up by one guy who seems to have a lot of free time:

http://xoomer.virgilio.it/infinity77/wxPython/index.html

The wiki is also helpful:

http://wiki.wxpython.org/

But I concur that the mailing list is definitely THE place to be to
learn the most once you've gotten comfortable with the toolkit.

Mike
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top