Re: Dynamic RadioButton creation with Python + Qt

2006-08-21 Thread Wagner Garcia Campagner
Thanks Fredrik, Your suggestion solved my problems! Thanks, Wagner. >From: Fredrik Lundh <[EMAIL PROTECTED]> >To: python-list@python.org >Subject: Re: Dynamic RadioButton creation with Python + Qt >Date: Mon, 21 Aug 2006 16:20:09 +0200 > >Wagner Garcia Campagner

Re: Dynamic RadioButton creation with Python + Qt

2006-08-21 Thread Fredrik Lundh
Wagner Garcia Campagner wrote: > I'm trying to create dynamic RadioButton as follows: > > for i in out.keys(): > msg = "radioButton_" + str(i) > msg2 = 20 * x > msg = QRadioButton(self.buttonGroup_interfaces, msg) > msg.setGeometry(QRect(30,msg2,121,23)) > msg.setTect(i) >

Dynamic RadioButton creation with Python + Qt

2006-08-21 Thread Wagner Garcia Campagner
Hello, I'm trying to create dynamic RadioButton as follows: for i in out.keys(): msg = "radioButton_" + str(i) msg2 = 20 * x msg = QRadioButton(self.buttonGroup_interfaces, msg) msg.setGeometry(QRect(30,msg2,121,23)) msg.setTect(i) x += 1 The problem is that Python is cre