hello,
I want to know which control can be used for displaying images in wx python?
I have a software requirement that needs me to show photos like an album.
I have an area where the photo will be displayed and below that there
will be information in read-only wx edit boxes, or static text.
now when I click next, the next photo is displayed according to the database.
can some one tell me how to display images (photos ) in a wx python application?
some example will be highly appreciated.
thanks,
Krishnakant.
thanks a lot.
but I am a blind person and as it is I have a challenge.
so to explain this to my sited fellow programmers, I first need to
understand it.
so kindly give me some explaination on this and an example if possible.
and yes I will mostly have jpeg and gif or bmp, but bmp is a rare thing.
and by the way I need to do all this in wxpython.
regards.
Krishnakant.
···
On 18/03/07, Peter Decker <pydecker@gmail.com> wrote:
You absolutely have to watch the video of Ed Leafe's Pycon
presentation on Dabo. It highlights many of the ways that Dabo has
streamlined wxPython programming, and a big part of the demo was
showing image display and manipulation. It is amazing how powerful the
Dabo image control is: one line of code to display an image, one line
to rotate it, one line to resize it, etc.
I just looked on their wiki (http://dabodev.com/wiki), and that's one
of the classes that is not yet documented there. So the only thing I
can recommend is the API docs, but they just list the properties and
methods of the class along with a brief explanation of what it does,
but it really doesn't give you a good idea on how to use the control.
http://paul.dabodev.com/doc/api/dabodoc/dabo.ui.uiwx.dImage.dImage.html
···
On 3/18/07, krishnakant Mane <researchbase@gmail.com> wrote:
is there a good article/ tutorial on dabo image library?
--
# p.d.
I am really confused now.
I too looked at the docs and they are not complete.
I however managed to get the tutorial for dabo desktop framework.
but I don't want to use the entire framework, just the image library.
if there is no proper documentation then can some one suggest me a
proper way to do it with wxpython directly?
I checked wxPyWiki but I am not finding answer to a single simple question.
I just want to display a gif or jpeg image on my wx child frame or what ever.
I want the image to change when I click the next button. means I must
be able to change the link of the control that actually loads the
image.
can some one answer this basic question of just how I can load and
display an image at a particular location with particular size in my
wx based application?
I will check dabo when I get a bit of breather because personally I
liked it too.
but right now getting some code working is my need and most of my
application is already ready in wxpython.
so I just need to get this part of displaying an image sorted out.
regards.
Krishnakant.
krishnakant Mane wrote:
I just want to display a gif or jpeg image on my wx child frame or what ever.
I want the image to change when I click the next button. means I must
be able to change the link of the control that actually loads the
image.
Without dabo, the code is longer, but still not impossibly hard.
I've attached a little bare-bones class that's meant to display a thumbnail image in a file-selection dialog. It could be cleaned up, and it makes a rather wierd decision about image scaling, but it works, in its way. The SetSrc method feeds it the path to a new image file.
Mel.
thumbnail.py (577 Bytes)