def loadGUI(self): """Load the GUI from the .py file that was generated by the .ui file using the pyside-uic tool.""" # import generated .py file here to prevent circular reference from sim.main_window import Ui_main_window self.main = Ui_main_window() self.main.setupUi(self) from sim.settings_dialog import Ui_settings_dialog self.settings = Ui_settings_dialog() self.dialog = QtGui.QDialog() self.settings.setupUi(self.dialog) self.connect_signals_to_slots() # Add items to pull down menus self.settings.laser_combo.addItems( ["Custom", "SICK LMS111", "Hokuyo URG-04LX"]) self.settings.robot_combo.addItems( ["Custom", "Clearpath Husky A200", "MobileRobots P3AT"])