[PyQt] Configuration dialog

Roberto Alsina ralsina at kde.org
Thu Mar 5 10:20:24 GMT 2009


On Thursday 05 March 2009 07:24:31 Frédéric wrote:
> Hello,
>
> I'm pretty sure I have seen a configuration dialog, like the one
> Designer uses for the property editor... I can't remember if it was a
> standard Qt widget, an example, a tutorial or a external documentation,
> or even in a book, but I can't find it again :o(
>
> If someone see what I'm talking about...

I have written a "generic configuration dialog" that takes a description of 
the options and creates a dialog to configure them for one of my apps.

This is a screenshot:

http://www.flickr.com/photos/ralsina/2740390482/

Here is an explanation, slightly outdated, see the code below):

http://lateral.netmanagers.com.ar/weblog/2008/08/06.html#BB728

Here you can see how the options are defined:

http://code.google.com/p/urssus/source/browse/trunk/urssus/config.py

And here is the UI code for it (class ConfigDialog):

http://code.google.com/p/urssus/source/browse/trunk/urssus/urssus.py

And that uses this .ui file:

http://code.google.com/p/urssus/source/browse/trunk/urssus/ui/configdialog.ui






More information about the PyQt mailing list