Esempio n. 1
0
 def __init__(self):
     app = QtWidgets.QApplication(sys.argv)
     
     MainWindow = QtWidgets.QMainWindow()
     self.ui = Ui_MainWindow()
     self.ui.setupUi(MainWindow)    
     
     self.update_tree()
     self.update_calendar()
     self.update_progressbar()
         
     MainWindow.show()
     sys.exit(app.exec_())        
Esempio n. 2
0
    def __init__(self):
        app = QtWidgets.QApplication(sys.argv)

        MainWindow = QtWidgets.QMainWindow()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(MainWindow)

        self.update_tree()
        self.update_calendar()
        self.update_progressbar()

        #         run_thread = Thread(target=self.update_progressbar)
        #         run_thread.setDaemon(True)
        #         run_thread.start()
        #         print(run_thread, run_thread.is_alive())

        MainWindow.show()
        sys.exit(app.exec_())
Esempio n. 3
0
    def __init__(self):
        app = QtWidgets.QApplication(sys.argv)

        self.MainWindow = QtWidgets.QMainWindow()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self.MainWindow)
        #--------------------------

        self.ui.button_stop_animation.clicked.connect(self.stop_animation)
        self.ui.button_start_animation.clicked.connect(self.animate)

        self.ui.toolButton.hide()
        #self.toolButton = QtWidgets.QToolButton(self.tab_animation)
        #self.move_toolbutton.setObjectName("toolButton")
        self.move_toolbutton = MoveToolButton(self.ui.tab_animation)
        self.move_toolbutton.setGeometry(QtCore.QRect(330, 20, 25, 19))
        self.move_toolbutton.setAutoFillBackground(True)
        self.move_toolbutton.setText("***")

        #-----------------------------------------------------------------------
        self.init_tabs()

        self.MainWindow.show()
        sys.exit(app.exec_())