def __init__(self, mainWnd): QDialog.__init__(self) self.ui = Ui_SetRoad_dialog() self.ui.setupUi(self) self.mainWnd = mainWnd self.ui.Box_Existed_Roads.addItems(PATH.get_allroads()) self.ui.Box_Existed_Roads.setCurrentIndex(-1) self.ui.pushButton_ok.clicked.connect(self.set_road)
def __init__(self, mainWnd): QDialog.__init__(self) self.ui = Ui_Dialog_chooseRoad() self.ui.setupUi(self) self.ui.chooseRoad.addItems(PATH.get_allroads()) self.ui.chooseRoad.currentIndexChanged.connect(self.set_roadinfo) self.ui.pushButton_ok.clicked.connect(self.get_roadinfo) self.mainWnd = mainWnd self.ui.chooseRoad.setCurrentIndex(-1)