def _get_widgets():
 widgets = QApplication.instance().allWidgets()
 widgets.sort(key=repr)
 return [repr(w) for w in widgets]

def _get_widgets ( ) : widgets = QApplication . instance ( ) . allWidgets ( ) widgets . sort ( key = repr ) return [ repr ( w ) for w in widgets ]
get a string list of all widgets .