Skip to content
Snippets Groups Projects
TofConverter.py 467 B
Newer Older
#pylint: disable=invalid-name
from __future__ import (absolute_import, division, print_function)
Nick Draper's avatar
Nick Draper committed
from TofConverter import converterGUI
from PyQt4 import QtGui
import sys

Nick Draper's avatar
Nick Draper committed
def qapp():
    if QtGui.QApplication.instance():
        _app = QtGui.QApplication.instance()
        _app = QtGui.QApplication(sys.argv)
    return _app
Nick Draper's avatar
Nick Draper committed
app = qapp()
reducer = converterGUI.MainWindow()#the main ui class in this file is called MainWindow
reducer.show()