How to Convert 'Str' into a 'Qwidget'? (Initialize my dictionary outside the class method)
...
dict_link = {'11': 'self.container11', '12': 'self.container12', '13': 'self.container13',
'14': 'self.fcontainer14'}
kj = dict_link.get('11')
print(kj)
print('Kj Type :',type(kj))
self.stackitem_menubar2_right.setCurrentWidget(kj)
getting the following error:
TypeError: setCurrentWidget(self, QWidget): argument 1 has unexpected type 'str'