[wxPython-users] python beginner - python cannot display images
?!?
Christopher Barker
Chris.Barker at noaa.gov
Wed Apr 11 10:03:20 PDT 2007
Python uses the "current working directory". That can be different
depending on how you start up the script. If you start it form the
command line, then it's the dir you start it from. If started in a
different way, It depends on how you start it.
-Chris
Igor Davidov wrote:
>
> Thanks, - my problem is that the filename is ok and the location of
> image is ok, just as you said. I did everything by the rules and
> still geting the same error. All the scripts execute fine but when
> they call images I get this error.
>
> I have installed:
> python-wxgtk2.8
> python-wxtools
> wx2.8-i18n
> python
>
>
>
>
> Lazar Kovacevic wrote:
>> I didn't look at the hello.py, but my guess is that you need to
>> replace 'filename' with the real name of some image, that you also
>> need to place that image in the same folder where is hello.py.
>>
>> Hope my guess (ESP) is right ;)
>>
>> On 4/10/07, *Igor Davidov* <evripid at bitemydot.com
>> <mailto:evripid at bitemydot.com>> wrote:
>>
>>
>> I have installed wxpython with all required files to my Ubuntu box
>> (6.10), - since I am beginner with python I started with executing
>> samples provided like "hello.py"..
>>
>> I get this error with every script that calls images:
>> "Can't load image from file 'filename.jpg': file does not exist."
>>
>> Is there reasonable explanation, should I have placed images in some
>> relevant folder or use absolute paths ??!?
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> wxPython-users-unsubscribe at lists.wxwidgets.org
>> <mailto:wxPython-users-unsubscribe at lists.wxwidgets.org>
>> For additional commands, e-mail:
>> wxPython-users-help at lists.wxwidgets.org
>> <mailto:wxPython-users-help at lists.wxwidgets.org>
>>
>>
>>
>>
>> --
>> Lazar
>>
>> inverudio.com <http://inverudio.com>
>> explore-ideas.com <http://explore-ideas.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
--
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