def main(): global main_window_msg global getHostByName_queue print sys.getdefaultencoding() ##reload(sys) ##sys.setdefaultencoding('utf8') getHostByName_queue = Queue.Queue(64) threading.Thread(target=getHostByName_main_thread, name='getHostByName_main_thread').start() app = QtGui.QApplication(sys.argv) ##MainWindow = QtGui.QMainWindow() MainWindow = myQMainWindow() ##style_str = u'Plastique' styleFactory = QtGui.QStyleFactory() style = styleFactory.create(u'Plastique') app.setStyle(style) ui = main_window.Ui_MainWindow() ui.setupUi(MainWindow, sys.modules['__main__']) main_window_msg = ui.MainWindow_message.signal_msg MainWindow.show() app.exec_() getHostByName_queue.put(('EXIT', ''))
def __init__(self): super(MyWindow, self).__init__() self.ui = main_window.Ui_MainWindow() self.ui.setupUi(self) self.ui.pushButton.pressed.connect(self.on_rename)
def __init__(self): ''' 画面表示 ''' # window self.app = QtWidgets.QApplication(sys.argv) self.MainWindow = QtWidgets.QMainWindow() self.ui = main_window.Ui_MainWindow() self.ui.setupUi(self.MainWindow) self.MainWindow.show()
def login(self): check = project_library.login( self.L_email_input.text(), hashlib.md5(self.L_pass_input.text().encode()).hexdigest()) if self.L_email_input.text() == '' or self.L_pass_input.text() == '' or check is None: self.setWarningText('Your Username or Password Not Correct!') else: print('>> go to HomePage') import main_window self.window = QtWidgets.QMainWindow() self.ui = main_window.Ui_MainWindow() self.ui.setupUi(self.window, check['_id']) self.window.show() self.LoginPage.hide()
def __init__(self): self.app = QtWidgets.QApplication(sys.argv) self.MainWindow = QtWidgets.QMainWindow() self.ui_main_window = main_window.Ui_MainWindow() self.ui_main_window.setupUi(self.MainWindow) self.ui_main_window.statusbar.showMessage('Start.') self.MainWindow.show() self.command = '' self.file_manager = FileManager() self.ui_main_window.listView_remote_first.setModel( self.file_manager.remote_first_list) self.ui_main_window.listView_remote_second.setModel( self.file_manager.remote_second_list) self.ui_main_window.listView_local.setModel( self.file_manager.local_list) self.reaction_to_menu_connect() self.define_reactions() self.refresh_editLine() self.file_manager.refresh_lists()
def __init__(self): QtWidgets.QDialog.__init__(self) self.reg = signup.Ui_Signup() self.main_window = main_window.Ui_MainWindow() self.setupUi(self)
# -*- coding: utf-8 -*- from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtGui import QIcon import sys import main_window __author__ = 'Jet CHEN' if __name__ == '__main__': sys.setrecursionlimit(10000) app = QApplication(sys.argv) app.setWindowIcon(QIcon('Application.icns')) mainWin = QMainWindow() ui = main_window.Ui_MainWindow() ui.setupUi(mainWin) mainWin.show() sys.exit(app.exec_())