示例#1
0
def qapplication():
    """
    Return QApplication instance
    Creates it if it doesn't already exist
    """
    from guidata.qt.QtGui import QApplication
    app = QApplication.instance()
    if not app:
        app = QApplication([])
    install_translator(app)
    return app
示例#2
0
文件: __init__.py 项目: gyenney/Tools
def qapplication():
    """
    Return QApplication instance
    Creates it if it doesn't already exist
    """
    from guidata.qt.QtGui import QApplication
    app = QApplication.instance()
    if not app:
        app = QApplication([])
    install_translator(app)
    return app
示例#3
0
        self.process()

    def update_remote_params(self):
        utils.Log("sequence parameters updated")
        self.process()

    def update_holder_params(self):
        utils.Log("focus parameter updated")
        self.process()

    def process(self):
        if self.db is None:
            self.db = SqliteDB.DBReader()
            self.db.ProductionNo = self.gb_dhm.dataset.MODB
            self.db.ParamFromChoice()


#        if self.stackDistance is None:
#            self.stackDistance = Tracking_process.stackDistance.from_dataset(
#            self.db, self.gb_dhm.dataset, None, None, None, None)

# main to run the application
if __name__ == '__main__':
    # create QApplication
    from guidata.qt.QtGui import QApplication
    app = QApplication.instance()
    if not app:
        app = QApplication(sys.argv)

    window = MainWindow()
    window.show()
示例#4
0
        
    def update_remote_params(self):
        utils.Log("sequence parameters updated")
        self.process()
      
    def update_holder_params(self):
        utils.Log("focus parameter updated")
        self.process()
        
        
        
    def process(self):
        if self.db is None:
            self.db = SqliteDB.DBReader()
            self.db.ProductionNo = self.gb_dhm.dataset.MODB
            self.db.ParamFromChoice()
        
#        if self.stackDistance is None:
#            self.stackDistance = Tracking_process.stackDistance.from_dataset(
#            self.db, self.gb_dhm.dataset, None, None, None, None)

# main to run the application
if __name__ == '__main__':
    # create QApplication
    from guidata.qt.QtGui import QApplication
    app = QApplication.instance()
    if not app:
        app = QApplication(sys.argv)
    
    window = MainWindow()
    window.show()