Пример #1
0
 def start_model_thread(self):
     """Launch the second thread where the model lives"""
     from camelot.view.model_thread import get_model_thread, construct_model_thread
     from camelot.view.remote_signals import construct_signal_handler
     construct_model_thread()
     construct_signal_handler()
     mt = get_model_thread()
     mt.setup_exception_signal.connect(self.setup_exception)
     mt.start()
Пример #2
0
    def start_model_thread(self):
        """Launch the second thread where the model lives"""
        from camelot.view.model_thread import get_model_thread, construct_model_thread
        from camelot.view.remote_signals import construct_signal_handler

        construct_model_thread()
        construct_signal_handler()
        mt = get_model_thread()
        mt.setup_exception_signal.connect(self.setup_exception)
        mt.start()
Пример #3
0
 def start_model_thread(self):
     """Launch the second thread where the model lives"""
     from camelot.view.model_thread import get_model_thread, construct_model_thread
     from camelot.view.remote_signals import construct_signal_handler
     from camelot.core.conf import settings
     from camelot.core.sql import metadata
     metadata.bind = settings.ENGINE()
     construct_model_thread()
     construct_signal_handler()
     mt = get_model_thread()
     mt.setup_exception_signal.connect( self.initialization_exception )
     mt.start()
Пример #4
0
 def start_model_thread(self):
     """Launch the second thread where the model lives"""
     from camelot.view.model_thread import get_model_thread, construct_model_thread
     from camelot.view.remote_signals import construct_signal_handler
     from camelot.core.conf import settings
     from camelot.core.sql import metadata
     metadata.bind = settings.ENGINE()
     construct_model_thread()
     construct_signal_handler()
     mt = get_model_thread()
     mt.setup_exception_signal.connect( self.initialization_exception )
     mt.start()
Пример #5
0
def launch_meta_camelot():
    import sys
    from camelot.view.model_thread import construct_model_thread, get_model_thread
    from camelot.admin.action import GuiContext
    from PyQt4 import QtGui
    app = QtGui.QApplication([a for a in sys.argv if a])
    construct_model_thread()
    mt = get_model_thread()
    mt.start()
    settings.append(MetaSettings())
    new_project = CreateNewProject()
    gui_context = GuiContext()
    admin = MetaCamelotAdmin()
    admin.get_stylesheet()
    gui_context.admin = admin
    new_project.gui_run(gui_context)
    # keep app alive during running of app
    return app
Пример #6
0
def launch_meta_camelot():
    import sys
    from camelot.view.model_thread import construct_model_thread, get_model_thread
    from camelot.admin.action import GuiContext
    from PyQt4 import QtGui
    app = QtGui.QApplication([a for a in sys.argv if a])
    construct_model_thread()
    mt = get_model_thread()
    mt.start()
    settings.append( MetaSettings() )
    new_project = CreateNewProject()
    gui_context = GuiContext()
    admin = MetaCamelotAdmin()
    admin.get_stylesheet()
    gui_context.admin = admin
    new_project.gui_run( gui_context )
    # keep app alive during running of app
    return app