472,374 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

wxpython file dialog

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
8 3574
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: max4 | last post by:
hello i would like to know if there is a good tutorial about how to do this or if someone could explain thank you
1
by: Anand | last post by:
I am calling a python script from LabVIEW. This is achieved by making a dll call to python22.dll. It works perfectly well for most of my code. I now want to throwup dialog boxes from python. It...
2
by: Christoph Lehmann | last post by:
Hi I am a newbie and have a very simple python code, doing some calculations. maybe there is one already having a code snippet in wxPython for what I need: (i) simple dialog box, where the...
15
by: Grant Edwards | last post by:
Can anybody recommend a good book on wxPython? Are there any books on wxPython? I've been trying to learn wxPython and/or wax for a few weeks, and I'm just not getting it. wxWindows seems...
1
by: flupke | last post by:
Hi, i'm trying to convert my java console app to a python gui. Now, the only problem i seem to have at the moment are the resizers for the layout. It seems that for the purpose of what i'm...
2
by: Alain Paschoud | last post by:
Hi all, I made a small dialog in WxPython. I can run the python script with a double-click or through command line, and everything goes fine (dialog appears, which means that wx module has been...
0
by: Stefanie Wagner | last post by:
Hello, I am fighting with EVT_KILL_FOCUS for quite a time now and I don't succeed at all. Situation: If a user leaves a textfield the entered information should be checked and an additional...
9
by: Tyler | last post by:
Hello All: I am currently working on a project to create an FEM model for school. I was thinking about using wxPython to gather the 12 input variables from the user, then, after pressing the...
6
by: Iain King | last post by:
Hi. I have a modal dialog whcih has a "Browse..." button which pops up a file selector. This all works fine, but the first thing the user has to do when they open the dialog is select a file, so...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.