Exemple #1
0
    def __init__(self, parent):
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_nameServer()
        self.ui.setupUi(self)

        self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept)
        self.connect(self.ui.buttonBox, SIGNAL("rejected()"), self.reject)
Exemple #2
0
class NameServerDialog(QtGui.QDialog):

    def __init__(self, parent):
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_nameServer()
        self.ui.setupUi(self)

        self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept)
        self.connect(self.ui.buttonBox, SIGNAL("rejected()"), self.reject)

    def setNameservers(self, servers=[]):
        self.ui.listBox.clear()
        for server in servers:
            self.ui.listBox.insertItem(unicode(server))

    def setHostname(self, hostname):
        self.ui.lineMachineName.setText(unicode(hostname))

    def getHostname(self):
        return unicode(self.ui.lineMachineName.text())

    def getNameservers(self):
        servers = []
        for item in self.ui.listBox.items():
            servers.append(unicode(item))
        return servers
Exemple #3
0
class NameServerDialog(QtGui.QDialog):
    def __init__(self, parent):
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_nameServer()
        self.ui.setupUi(self)

        self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept)
        self.connect(self.ui.buttonBox, SIGNAL("rejected()"), self.reject)

    def setNameservers(self, servers=[]):
        self.ui.listBox.clear()
        for server in servers:
            self.ui.listBox.insertItem(unicode(server))

    def setHostname(self, hostname):
        self.ui.lineMachineName.setText(unicode(hostname))

    def getHostname(self):
        return unicode(self.ui.lineMachineName.text())

    def getNameservers(self):
        servers = []
        for item in self.ui.listBox.items():
            servers.append(unicode(item))
        return servers
Exemple #4
0
    def __init__(self, parent):
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_nameServer()
        self.ui.setupUi(self)

        self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept)
        self.connect(self.ui.buttonBox, SIGNAL("rejected()"), self.reject)