[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Looping over QLabels
From: Jim Bublitz <jbublitz () nwinternet ! com>
Date: 2004-03-23 18:09:18
Message-ID: 200403231009.18597.jbublitz () nwinternet ! com
[Download RAW message or body]
On Tuesday March 23 2004 06:10, GuineaPig wrote:
> Hello,
>
> In my application I have a QDialog with a lot of QLabels.
> From time to time these labels need to be cleared (text set to
> ''). Is there a way to iterate over the labels ?
> I'm looking for something like this:
>
> for QLabel in self....
> QLabel.setText('')
>
> Instead of having to do this:
>
> QLabel1.setText('')
> QLabel2.setText('')
> QLabel3.setText('')
> ...
Put all the labels in a list or a dict, and then iterate over
that.
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic