
github 中的小部件通常专注于使联系人/文件在导入时快速访问。只有qt中才具备从core传输数据到visual和.exe的功能。
from pyqt5 import qtcore, qtgui, qtwidgets
class ui_mainwindow(object):
def setupui(self, mainwindow):
mainwindow.setobjectname("mainwindow")
mainwindow.resize(1126, 694)
mainwindow.setstylesheet("background-color: rgb(233, 255, 157);")
self.centralwidget = qtwidgets.qwidget(mainwindow)
self.centralwidget.setobjectname("centralwidget")
self.label = qtwidgets.qlabel(self.centralwidget)
self.label.setgeometry(qtcore.qrect(30, 30, 441, 31))
font = qtgui.qfont()
font.setpointsize(14)
self.label.setfont(font)
self.label.setobjectname("label")
self.label_2 = qtwidgets.qlabel(self.centralwidget)
self.label_2.setgeometry(qtcore.qrect(30, 100, 251, 21))
不幸的是,无论人工智能如何努力,都不可能人工创建这个。因为视觉不会从表单转移到操作系统,所以最好明确地编写函数。
30 30 441 31 14 Select Smart Home options
除了设置最佳选项外,还有许多功能:
- 最好将 gui 和 widgets 分成单独的块,因为...功能不会影响性能
- 连接数据库/标识符/库,在每一行代码中写入,引用如下:qtcore.qmetaobject.connectslotsbyname(mainwindow)
- 要求文件存储使用已经实现的mainwindow函数,因为这样可以节省时间










