[wxpython-users] where we put the .png files?
Christopher Barker
Chris.Barker at noaa.gov
Thu May 1 14:13:44 PDT 2008
Abdessamad EL GON-NOUNI wrote:
> It dosn't work, he gives me the msg "Can'l load image from file
> 'Exit.png':files does not exist"
well, the file needs to be in a place where your app can find it. Check
out wxStandardPaths for ways to use standard places to put things.
That's one reason I like the img2py option -- once you've embedded your
images in python code, you can find them the same way you import
modules, and they'll get packaged up without problem by pyexe, py2app, etc.
> I have another problem: when I want to bind an element from the menubar
> to an event, the program doesn't recognize the method, I have this error
> msg: 'MainWindow' object has no attribute 'OnExit'
Have you defined a OnExit method in your MainWindow class?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list