[wxpython-users] where we put the .png files?

Abdessamad EL GON-NOUNI abdessamadg at gmail.com
Thu May 1 14:41:12 PDT 2008


2008/5/1 Christopher Barker <Chris.Barker at noaa.gov>:

> 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.

Can you be more explicie please, I'm just a beginer!

>
>
>  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?


yes:  def OnExit(self,e):
            self.Close(True)


>
> -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
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
01/e7a02bb3/attachment.htm


More information about the wxpython-users mailing list