def __init__(self): QtGui.QWidget.__init__(self) Ui_PreferencesCapture.setupUi(self, self) self.connect(self.CaptureWorkingDirectory_Browser, QtCore.SIGNAL('clicked()'), self.__setCaptureWorkdir) self.connect(self.pushButtonUsePresets, QtCore.SIGNAL('clicked()'), self.__setPresetsCmd) # TODO: implement named pipe method: http://wiki.wireshark.org/CaptureSetup/Pipes#Named_pipes for (name, cmd) in sorted(CAPTURE_PRESET_CMDS.iteritems()): self.comboBoxPresets.addItem(name, cmd) self.loadConf()
def __init__(self): QtGui.QWidget.__init__(self) Ui_PreferencesCapture.setupUi(self, self) self.connect(self.CaptureWorkingDirectory_Browser, QtCore.SIGNAL('clicked()'), self.__setCaptureWorkdir) self.loadConf()