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

raacampbell at gmail.com raacampbell at gmail.com
Sun Mar 18 16:12:20 EDT 2007



> 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.insertItem(a0)


I suppose my question now becomes whether or not editing the .py file
in this manner is good thing to be doing. What references do people
recomend I consult with regard to this sort of thing?

Thanks,
Rob




More information about the Python-list mailing list