class cReportsSetting(QtGui.QDialog, Ui_setting): def __init__(self): QtGui.QDialog.__init__(self) self.ui = Ui_setting() self.ui.setupUi(self) def setSetting(self, name, layer, encoding): self.ui.nameTxt.setText(name) self.ui.layerTxt.setText(layer) self.ui.encodingTxt.setText(encoding) def getName(self): return self.ui.nameTxt.text() def getLayer(self): return self.ui.layerTxt.text() def getEncoding(self): return self.ui.encodingTxt.text()
def __init__(self): QtGui.QDialog.__init__(self) self.ui = Ui_setting() self.ui.setupUi(self)