470,600 Members | 1,527 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,600 developers. It's quick & easy.

[PyQt] browse for a directory

Hi people,

I'm trying my first little app to create a small, simple application in
Python (just to see how PyQt works and all) and I seem to get stuck. I
want to make a front-end for ImageMagick's convert for my dad. He
usually wants to send people pictures he made with his digital camera
and he needs those smaller. So I want him to be able to select a
directory and click a button to have the python-script automagically
call convert to resize the images. (Maybe later I'll make it fully
python, but this is just a test.)

But I can't find any Qt widget that enables me to browse for a
directory! I'm using qt-designer v.3.2 (from Mandriva Linux 2005LE).
Can anyone tell me where how to add a directory-browser to my little

I've searched the Qt manual, but it's not in there. There doesn't seem
to be a reference for PyQt (none that I can find, any way), so I'm
stuck here...

Thanks in advance for your time.

Kind regards,
Tim Stoop

Jul 19 '05 #1
1 3058
On 10 May 2005 16:49:25 -0700,
"ti*******@gmail.com" <ti*******@gmail.com> wrote:
But I can't find any Qt widget that enables me to browse for a
directory! ...

Try QFileDialog.getExistingDirectory.


Dan Sommers
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by reh | last post: by
1 post views Thread by Michael Mossey | last post: by
1 post views Thread by Chump Wad | last post: by
10 posts views Thread by svenn.are | last post: by
17 posts views Thread by eholbroo | last post: by
5 posts views Thread by Eric Twietmeyer | last post: by
3 posts views Thread by baur79 | last post: by
2 posts views Thread by wd.jonsson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.