MNT: Should use the actual widget not 'widget'

This commit is contained in:
Eric Dill 2015-12-24 10:41:17 -05:00
parent 51e06c31a7
commit 21c79d1c4a

View File

@ -99,7 +99,7 @@ def createWidget():
widget = randItem(widgetTypes)() widget = randItem(widgetTypes)()
widget.setWindowTitle(widget.__class__.__name__) widget.setWindowTitle(widget.__class__.__name__)
widgets.append(widget) widgets.append(widget)
allWidgets['widget'] = 1 allWidgets[widget] = 1
p(" %s" % widget) p(" %s" % widget)
return widget return widget