another wxPython-question

Uwe Schmitt uwe at rocksport.de
Fri Oct 5 11:57:50 CEST 2001


Chris Barker <chrishbarker at home.net> wrote:
| Uwe Schmitt wrote:

|> in the wxWindows documentation I found classes wxDC, wxPaintDC and
|> others. But these are not known if I use wxPython.
|> Is my wxPython installation to old ? I downloaded it from
|> www.wxpython.org...

| It's probably not too old, the ones you mention have been around
| forever. You may not have wxPython installed properly, or you may not be
| importing it correctly. try this:

|>>> from wxPython.wx import *
|>>> wxDC
| <class wxPython.gdi.wxDC at 0x82554ec>
|>>> wxPaintDC
| <class wxPython.gdi.wxPaintDC at 0x8255d7c>
|>>>

| You get something like that, showing that thye do exist. AS for using
| them, look at the demo, and I've enclosed a little simple drawing
| program to get you started.

thanks a lot. the import statement above works. i made an error:
i looked for a file "*wxDC*" which is not on my computer.
i'll study your example, 

yours, uwe.



-- 
Uwe.Schmitt at num.uni-sb.de      Universität des Saarlandes
phone: +49 (0)681/302-2468     Geb. 36.1, Zi. 4.17, PF 151150
                               D-66041  Saarbrücken
http://www.rocksport.de        http://www.rocksport.de/first_ride.mp3




More information about the Python-list mailing list