def __init__(self): # Call superconstructor super(self.__class__, self).__init__() # Main application self.app = 0 # Model viewer self.model_viewer = 0 # Load configuration self.config = Config.getConfig() # Create application self.app = Main_Application() # Initialize GUI self.initUI() self._loadAllCities() # Show GUI self.show()
@author: Alex Kerzner """ import sys from PyQt5.QtWidgets import QApplication # Import the Graphical User Interface import User_Interface # Import config parser from lib import Config # Run the application # Don't run if loaded as module if (__name__ == "__main__"): config = Config.getConfig() # IPython override app = 0 app = QApplication(sys.argv) app.aboutToQuit.connect(app.deleteLater) mw = User_Interface.Main_Window() app.exec_()