By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,264 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,264 IT Pros & Developers. It's quick & easy.

wxpython file dialog

P: n/a
Is there a way to force the wx.FileDialog to show as default the
thumbnails vie in stead of list view?
thanks, janwillem
Feb 9 '08 #1
Share this Question
Share on Google+
8 Replies


P: n/a
2008/2/9, Janwillem <jw******@xs4all.nl>:
Is there a way to force the wx.FileDialog to show as default the
thumbnails vie in stead of list view?
thanks, janwillem

--
http://mail.python.org/mailman/listinfo/python-list
You should be using wx.lib.imagebrowser.ImageDialog instead of
wx.FileDialog for that purpose.
--
-- Guilherme H. Polo Goncalves
Feb 9 '08 #2

P: n/a
Guilherme Polo wrote:
2008/2/9, Janwillem <jw******@xs4all.nl>:
>Is there a way to force the wx.FileDialog to show as default the
thumbnails vie in stead of list view?
thanks, janwillem

--
http://mail.python.org/mailman/listinfo/python-list

You should be using wx.lib.imagebrowser.ImageDialog instead of
wx.FileDialog for that purpose.

Thanks for the hint, very neat widget. However, it seems not to support
multiple selection. My application selects from a series of low light
photographs of the same subject the sharpest one (like BSS on Nikon
Coolpix). So I need multiple selection and thumbnails. It works with
wx.FileDialog style=FD_MULTIPLE but I have to select thumbnail view
every time.
Janwillem
Feb 10 '08 #3

P: n/a
2008/2/10, Janwillem <jw******@xs4all.nl>:
Guilherme Polo wrote:
2008/2/9, Janwillem <jw******@xs4all.nl>:
Is there a way to force the wx.FileDialog to show as default the
> thumbnails vie in stead of list view?
> thanks, janwillem
>>
>--
> http://mail.python.org/mailman/listinfo/python-list
>>
>
You should be using wx.lib.imagebrowser.ImageDialog instead of
wx.FileDialog for that purpose.
>
>

Thanks for the hint, very neat widget. However, it seems not to support
multiple selection. My application selects from a series of low light
photographs of the same subject the sharpest one (like BSS on Nikon
Coolpix). So I need multiple selection and thumbnails. It works with
wx.FileDialog style=FD_MULTIPLE but I have to select thumbnail view
every time.

Janwillem
--
http://mail.python.org/mailman/listinfo/python-list
Unfortunately that is not possible with imagebrowser because it sets
the listbox for single selection in the code. A patch will fix this.
Now continuing on FileDialog.. I don't have the option to change to
thumbnail view here, I guess you are using Windows, so it is not
cross-platform. imagebrowser is cross-platform because it is all done
by wxPython.

--
-- Guilherme H. Polo Goncalves
Feb 10 '08 #4

P: n/a
Guilherme Polo wrote:
2008/2/10, Janwillem <jw******@xs4all.nl>:
>Guilherme Polo wrote:
> 2008/2/9, Janwillem <jw******@xs4all.nl>:
>>>Is there a way to force the wx.FileDialog to show as default the
thumbnails vie in stead of list view?
thanks, janwillem

--
http://mail.python.org/mailman/listinfo/python-list

>>You should be using wx.lib.imagebrowser.ImageDialog instead of
wx.FileDialog for that purpose.


Thanks for the hint, very neat widget. However, it seems not to support
multiple selection. My application selects from a series of low light
photographs of the same subject the sharpest one (like BSS on Nikon
Coolpix). So I need multiple selection and thumbnails. It works with
wx.FileDialog style=FD_MULTIPLE but I have to select thumbnail view
every time.

Janwillem
--
http://mail.python.org/mailman/listinfo/python-list

Unfortunately that is not possible with imagebrowser because it sets
the listbox for single selection in the code. A patch will fix this.
Now continuing on FileDialog.. I don't have the option to change to
thumbnail view here, I guess you are using Windows, so it is not
cross-platform. imagebrowser is cross-platform because it is all done
by wxPython.
The application is meant to become x-platform; prefarably linux osX and
win. I use:

dialog=wx.FileDialog(None,'Choose picture file',defDir,\
style=wx.OPEN | wx.FD_MULTIPLE,wildcard=wcard)

and supposed that the wx dialog would work on linux. I did not yet test
this because the app depends on a lib (dll) which I have not yet made to
work in Linux (it's pascal and freepascal has a problem I have to dive
into).

Feb 10 '08 #5

P: n/a
On Feb 10, 6:41 am, Janwillem <jwevd...@xs4all.nlwrote:
Guilherme Polo wrote:
2008/2/10, Janwillem <jwevd...@xs4all.nl>:
Guilherme Polo wrote:
2008/2/9, Janwillem <jwevd...@xs4all.nl>:
>>Is there a way to force the wx.FileDialog to show as default the
> thumbnails vie in stead of list view?
> thanks, janwillem
>--
> http://mail.python.org/mailman/listinfo/python-list
>You should be using wx.lib.imagebrowser.ImageDialog instead of
wx.FileDialog for that purpose.
Thanks for the hint, very neat widget. However, it seems not to support
multiple selection. My application selects from a series of low light
photographs of the same subject the sharpest one (like BSS on Nikon
Coolpix). So I need multiple selection and thumbnails. It works with
wx.FileDialog style=FD_MULTIPLE but I have to select thumbnail view
every time.
Janwillem
--
http://mail.python.org/mailman/listinfo/python-list
Unfortunately that is not possible with imagebrowser because it sets
the listbox for single selection in the code. A patch will fix this.
Now continuing on FileDialog.. I don't have the option to change to
thumbnail view here, I guess you are using Windows, so it is not
cross-platform. imagebrowser is cross-platform because it is all done
by wxPython.

The application is meant to become x-platform; prefarably linux osX and
win. I use:

dialog=wx.FileDialog(None,'Choose picture file',defDir,\
style=wx.OPEN | wx.FD_MULTIPLE,wildcard=wcard)

and supposed that the wx dialog would work on linux. I did not yet test
this because the app depends on a lib (dll) which I have not yet made to
work in Linux (it's pascal and freepascal has a problem I have to dive
into).
What is your application supposed to do? In the meantime, I recommend
looking at this control:

http://xoomer.alice.it/infinity77/ma...bnailCtrl.html

You can probably get what you need from it. I also highly recommend
posting to the wxPython user's group where you'll get more wx-specific
help. See below:

http://wxpython.org/maillist.php

If you download the venerable wxPython Demo from wxPython.org, you can
check out other related widgets such as wx.ImageBrowser or the
wx.BitmapComboBox.

HTH

Mike
Feb 11 '08 #6

P: n/a
2008/2/11, Mike Driscoll <ky******@gmail.com>:
On Feb 10, 6:41 am, Janwillem <jwevd...@xs4all.nlwrote:
Guilherme Polo wrote:
2008/2/10, Janwillem <jwevd...@xs4all.nl>:
>Guilherme Polo wrote:
> 2008/2/9, Janwillem <jwevd...@xs4all.nl>:
>>>Is there a way to force the wx.FileDialog to show as default the
> > thumbnails vie in stead of list view?
> > thanks, janwillem
> >--
> > http://mail.python.org/mailman/listinfo/python-list
>>You should be using wx.lib.imagebrowser.ImageDialog instead of
> wx.FileDialog for that purpose.
>Thanks for the hint, very neat widget. However, it seems not to support
> multiple selection. My application selects from a series of low light
> photographs of the same subject the sharpest one (like BSS on Nikon
> Coolpix). So I need multiple selection and thumbnails. It works with
> wx.FileDialog style=FD_MULTIPLE but I have to select thumbnail view
> every time.
>Janwillem
> --
> http://mail.python.org/mailman/listinfo/python-list
Unfortunately that is not possible with imagebrowser because it sets
the listbox for single selection in the code. A patch will fix this.
Now continuing on FileDialog.. I don't have the option to change to
thumbnail view here, I guess you are using Windows, so it is not
cross-platform. imagebrowser is cross-platform because it is all done
by wxPython.
The application is meant to become x-platform; prefarably linux osX and
win. I use:

dialog=wx.FileDialog(None,'Choose picture file',defDir,\
style=wx.OPEN | wx.FD_MULTIPLE,wildcard=wcard)

and supposed that the wx dialog would work on linux. I did not yet test
this because the app depends on a lib (dll) which I have not yet made to
work in Linux (it's pascal and freepascal has a problem I have to dive
into).

What is your application supposed to do? In the meantime, I recommend
looking at this control:

http://xoomer.alice.it/infinity77/ma...bnailCtrl.html

You can probably get what you need from it. I also highly recommend
posting to the wxPython user's group where you'll get more wx-specific
help. See below:

http://wxpython.org/maillist.php

If you download the venerable wxPython Demo from wxPython.org, you can
check out other related widgets such as wx.ImageBrowser or the
wx.BitmapComboBox.
wx.ImageBrowser and wx.BitmapComboBox are non-existent widgets. There
are demos named like that but the actual widgets are
wx.lib.imagebrowser and wx.combo.BitmapComboBox
>
HTH

Mike
--
http://mail.python.org/mailman/listinfo/python-list

--
-- Guilherme H. Polo Goncalves
Feb 11 '08 #7

P: n/a
On Feb 11, 2008 12:14 PM, Guilherme Polo <gg****@gmail.comwrote:
2008/2/11, Mike Driscoll <ky******@gmail.com>:
On Feb 10, 6:41 am, Janwillem <jwevd...@xs4all.nlwrote:
Guilherme Polo wrote:
2008/2/10, Janwillem <jwevd...@xs4all.nl>:
Guilherme Polo wrote:
2008/2/9, Janwillem <jwevd...@xs4all.nl>:
>
>>Is there a way to force the wx.FileDialog to show as default the
> thumbnails vie in stead of list view?
> thanks, janwillem
>
<snip>

What is your application supposed to do? In the meantime, I recommend
looking at this control:

http://xoomer.alice.it/infinity77/ma...bnailCtrl.html

You can probably get what you need from it. I also highly recommend
posting to the wxPython user's group where you'll get more wx-specific
help. See below:

http://wxpython.org/maillist.php

If you download the venerable wxPython Demo from wxPython.org, you can
check out other related widgets such as wx.ImageBrowser or the
wx.BitmapComboBox.

wx.ImageBrowser and wx.BitmapComboBox are non-existent widgets. There
are demos named like that but the actual widgets are
wx.lib.imagebrowser and wx.combo.BitmapComboBox

Whoops! My bad! Still, I think the OP might find them useful for
creating his own custom image dialog.

Cheers,

Mike

>

HTH

Mike
--
http://mail.python.org/mailman/listinfo/python-list


--
-- Guilherme H. Polo Goncalves
Feb 11 '08 #8

P: n/a
2008/2/11, Mike Driscoll <ky******@gmail.com>:
On Feb 11, 2008 12:14 PM, Guilherme Polo <gg****@gmail.comwrote:
2008/2/11, Mike Driscoll <ky******@gmail.com>:
On Feb 10, 6:41 am, Janwillem <jwevd...@xs4all.nlwrote:
Guilherme Polo wrote:
2008/2/10, Janwillem <jwevd...@xs4all.nl>:
>Guilherme Polo wrote:
> 2008/2/9, Janwillem <jwevd...@xs4all.nl>:

>>>Is there a way to force the wx.FileDialog to show as default the
> > thumbnails vie in stead of list view?
> > thanks, janwillem

<snip>
>
What is your application supposed to do? In the meantime, I recommend
looking at this control:
>
http://xoomer.alice.it/infinity77/ma...bnailCtrl.html
>
You can probably get what you need from it. I also highly recommend
posting to the wxPython user's group where you'll get more wx-specific
help. See below:
>
http://wxpython.org/maillist.php
>
If you download the venerable wxPython Demo from wxPython.org, you can
check out other related widgets such as wx.ImageBrowser or the
wx.BitmapComboBox.
wx.ImageBrowser and wx.BitmapComboBox are non-existent widgets. There
are demos named like that but the actual widgets are
wx.lib.imagebrowser and wx.combo.BitmapComboBox


Whoops! My bad! Still, I think the OP might find them useful for
creating his own custom image dialog.

Cheers,

Mike
It is ok ;) I mentioned imagebrowser on my first email, but he needs
to selection several images at once and imagebrowser lacks this right
now. An easy patch fix this, the widget would take another argument to
specify the style of the listbox it uses and it needs to store all the
selected images using listbox.GetSelections() if the user opts for
multiple selection.
I suggest posting this at wx maillist as feature request so you don't
need to wait for me to submit a patch.
>
>
HTH
>
Mike
--
http://mail.python.org/mailman/listinfo/python-list
>

--
-- Guilherme H. Polo Goncalves

--
-- Guilherme H. Polo Goncalves
Feb 11 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.