Thread
:
Simple PyQt help, please
View Single Post
08-16-2014, 10:38 AM
#
5
dundo
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2014
Device: Kindle 4
Quote:
Originally Posted by
jackie_w
if widget == 'QPushButton':
button = QPushButton()
elif widget == 'QCheckBox':
button = QCheckBox()
You can also do: button = eval(widget + '()')
dundo
View Public Profile
Find More Posts by dundo
Track Posts by dundo via RSS