[PyKDE] Looping over QLabels

2004-03-23 Thread GuineaPig
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: QLabe

Re: [PyKDE] QComboBox question...

2003-11-05 Thread GuineaPig
E- Hash: SHA1 On Wednesday 05 November 2003 11:52, GuineaPig wrote: Hello, I'm new to pyqt and I'm having a question about QComboBox. I have one on a form that I would like to populate with data from a db-table. The table is very simple, it has only two columns, an id and a descri

[PyKDE] QComboBox question...

2003-11-05 Thread GuineaPig
Hello, I'm new to pyqt and I'm having a question about QComboBox. I have one on a form that I would like to populate with data from a db-table. The table is very simple, it has only two columns, an id and a description. I would like to add the descriptions as items to the combobox with the

Re: [PyKDE] QPushButton

2003-09-02 Thread GuineaPig
Fredrik Juhlin wrote: Hi, GuineaPig wrote: I'm working with pyQt and I have a widget with 40 QPushButtons (toggles). On 'toggled()' the buttons emit a signal to a function. In this function I'd like to find out wich button was pressed. I'm thinking about iterating t

[PyKDE] QPushButton

2003-09-02 Thread GuineaPig
Hello, Situation is as follows: I'm working with pyQt and I have a widget with 40 QPushButtons (toggles). On 'toggled()' the buttons emit a signal to a function. In this function I'd like to find out wich button was pressed. I'm thinking about iterating through all the buttons to check thei