示例#1
0
class MetamodelsResDialog(QDialog):
    def __init__(self):
        QDialog.__init__(self)
        self.ui = Ui_MetamodelsResDialog()
        self.ui.setupUi(self)

    def Load(self, v):
        self.ui.id.setText(v.id)
        self.ui.speed.setText(str(v.speed))
        self.ui.ram.setText(str(v.ram))

    def SetResult(self, v):
        v.id = self.ui.id.text()
        v.speed = int(self.ui.speed.text())
        v.ram = int(self.ui.ram.text())
示例#2
0
 def __init__(self):
     QDialog.__init__(self)
     self.ui = Ui_MetamodelsResDialog()
     self.ui.setupUi(self)