Re: Stuck with pyqt: can't get/read button IDs from a qbuttongroup

2007-03-18 Thread raacampbell
> which translates to this in the .py: > def getNumber(self,a0): > self.listBox1.insertItem(str(id)) > As is typically the way with these things, I've just solved it. I changed the text in the file generated by pyui. It now reads: def getNumber(self,a0): self.listBox1.ins

Stuck with pyqt: can't get/read button IDs from a qbuttongroup

2007-03-18 Thread raacampbell
Hi, I'm learning Python and QT and have set myself the task of writing a simple calculator applet. I'm using Qt3 and with the designer have made a button group which contains 10 buttons to allow the user to press the digits 0 to 9. The idea is that the button group is associated with a single slo