Traceback (most recent call last):
File "C:\Users\Desmoke\Desktop\5.py", line 23, in <module>
wind = p_main()
File "C:\Users\Desmoke\Desktop\5.py", line 12, in __init__
loadUi("uno.ui", self)
File "E:\Apps\Python\lib\site-packages\PyQt5\uic\__init__.py", line 238, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "E:\Apps\Python\lib\site-packages\PyQt5\uic\Loader\loader.py", line 66, in loadUi
return self.parse(filename, resource_suffix)
File "E:\Apps\Python\lib\site-packages\PyQt5\uic\uiparser.py", line 1037, in parse
actor(elem)
File "E:\Apps\Python\lib\site-packages\PyQt5\uic\uiparser.py", line 822, in createUserInterface
self.toplevelWidget = self.createToplevelWidget(cname, wname)
File "E:\Apps\Python\lib\site-packages\PyQt5\uic\Loader\loader.py", line 57, in createToplevelWidget
raise TypeError(
TypeError: ('Wrong base class of toplevel widget', (<class '__main__.p_main'>, 'QMainWindow'))
[Finished in 1.6s]