You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the setup_main_window.py file there is a function called setup_gui. I don't think the argument should be self, but a parameter of type MainWindow. I modified the program according to my idea and it still works well. After modification, the editor can recognize ui and other properties normally.
English is translated by software, hope it can convey my meaning, THANKS :)
def setup_gui(mainw: MainWindow):
The text was updated successfully, but these errors were encountered:
I don't think it's canonical to call the instance method directly in the code, the "self" passed to SetupMainWindow.setup_btns(self) should be "MainWindow", which could be This may cause misunderstanding. I don't know if I understand correctly. @Wanderson-Magalhaes
在setup_main_window.py文件中有一个名为setup_gui的函数. 我认为它的参数不应该是self,而是一个类型为MainWindow的参数.我按照我的想法修改后程序依旧良好运行,修改后编辑器能够正常识别ui等属性.
In the setup_main_window.py file there is a function called setup_gui. I don't think the argument should be self, but a parameter of type MainWindow. I modified the program according to my idea and it still works well. After modification, the editor can recognize ui and other properties normally.
English is translated by software, hope it can convey my meaning, THANKS :)
def setup_gui(mainw: MainWindow):
The text was updated successfully, but these errors were encountered: