class FredWindow(QtGui.QWidget): 'Create domain frame.' def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_FredWindow() self.ui.setupUi(self) for name in ('add_tech', 'rem_name', 'rem_tech'): widget = getattr(self.ui, name) widget.horizontalHeader().resizeSection(0, 320) self.__dict__[name] = QtCore.QString() self.dns_sets = add_dns_sets(self.ui.frame_add_dns, FredWindowDNS) def add_tech_value_changed(self, r, c): self.add_tech = table_value_changed(self.ui.add_admin, self.add_tech, r, c) def add_tech_current_changed(self, r, c, x, y): self.add_tech = table_current_changed(self.ui.add_admin, r, c) def rem_tech_value_changed(self, r, c): self.rem_tech = table_value_changed(self.ui.rem_tech, self.rem_tech, r, c) def rem_tech_current_changed(self, r, c, x, y): self.rem_tech = table_current_changed(self.ui.rem_tech, r, c) def rem_name_value_changed(self, r, c): self.rem_name = table_value_changed(self.ui.rem_name, self.rem_name, r, c, 9) def rem_name_current_changed(self, r, c, x, y): self.rem_name = table_current_changed(self.ui.rem_name, r, c)
def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_FredWindow() self.ui.setupUi(self) for name in ('add_tech', 'rem_name', 'rem_tech'): widget = getattr(self.ui, name) widget.horizontalHeader().resizeSection(0, 320) self.__dict__[name] = QtCore.QString() self.dns_sets = add_dns_sets(self.ui.frame_add_dns, FredWindowDNS)