Exemplo n.º 1
0
    def run(self):
        QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
        mainapp = QApplication(sys.argv)  # 创建GUI应用程序
        mainform = QmyMainWindow(self.flog, self.hand)  # 创建窗体
        mainform.show()

        sys.exit(mainapp.exec_())
Exemplo n.º 2
0
# GUI interface

import sys
from PyQt5.QtWidgets import QStyleFactory
from PyQt5.QtWidgets import QApplication
from myMainWindow import QmyMainWindow

app = QApplication(sys.argv)
mainform = QmyMainWindow(dbFilename='battery.db')
mainform.show()
sys.exit(app.exec_())
Exemplo n.º 3
0
##  GUI应用程序主程序入口

import sys

from PyQt5.QtWidgets import QApplication

from myMainWindow import QmyMainWindow

app = QApplication(sys.argv)  #创建GUI应用程序
mainform = QmyMainWindow()  #创建主窗体
mainform.show()  #显示主窗体

sys.exit(app.exec_())
Exemplo n.º 4
0
# GUI main interface

import sys

from PyQt5.QtWidgets import QApplication

from myMainWindow import QmyMainWindow
from fbs_runtime.application_context.PyQt5 import ApplicationContext

appctxt = ApplicationContext()  # Create GUI Application
db = appctxt.get_resource('battery_revision.db')
form = QmyMainWindow(dbFilename=db)  # Create Window
form.show()
sys.exit(appctxt.app.exec_())
Exemplo n.º 5
0
#将myDialog.py中的窗体测试部分单独拿出来作为一个文件,在具有多个窗体的GUI项目里,appMain文件创建主窗体然后运行应用程序

import sys
from PyQt5.QtWidgets import QApplication
from myMainWindow import QmyMainWindow

app = QApplication(sys.argv)

mainform = QmyMainWindow()
mainform.show()
sys.exit(app.exec_())