|
|
|
@ -455,7 +455,7 @@ class ClearLineEdit(QtGui.QLineEdit):
|
|
|
|
|
except:
|
|
|
|
|
self.button.setText('clear')
|
|
|
|
|
self.button.setStyleSheet("border: none;")
|
|
|
|
|
self.editTextChanged.connect(self.changed)
|
|
|
|
|
self.textChanged.connect(self.changed)
|
|
|
|
|
self.button.clicked.connect(self.clear)
|
|
|
|
|
|
|
|
|
|
# for clear memory after closed this window
|
|
|
|
@ -478,7 +478,7 @@ class ClearLineEdit(QtGui.QLineEdit):
|
|
|
|
|
self.setText(self.def_text)
|
|
|
|
|
|
|
|
|
|
class FileOpenWgt(QtGui.QWidget):
|
|
|
|
|
editTextChanged = QtCore.Signal()
|
|
|
|
|
textChanged = QtCore.Signal()
|
|
|
|
|
def __init__(self, parent, type, caption=None, directory=None):
|
|
|
|
|
QtGui.QWidget.__init__(self,parent)
|
|
|
|
|
self.type = type
|
|
|
|
@ -490,7 +490,7 @@ class FileOpenWgt(QtGui.QWidget):
|
|
|
|
|
self.hlayout = QtGui.QHBoxLayout(self)
|
|
|
|
|
|
|
|
|
|
self.lineEdit = QtGui.QLineEdit(self)
|
|
|
|
|
self.lineEdit.editTextChanged.connect(self.textChanged)
|
|
|
|
|
self.lineEdit.textChanged.connect(self.textChanged)
|
|
|
|
|
|
|
|
|
|
self.button=QtGui.QToolButton(self)
|
|
|
|
|
self.button.setCursor(QtCore.Qt.ArrowCursor)
|
|
|
|
@ -540,7 +540,7 @@ class FileOpenWgt(QtGui.QWidget):
|
|
|
|
|
return self.lineEdit.setText(text)
|
|
|
|
|
|
|
|
|
|
class ComboFileWgt(QtGui.QWidget):
|
|
|
|
|
# editTextChanged = QtCore.Signal()
|
|
|
|
|
# textChanged = QtCore.Signal()
|
|
|
|
|
def __init__(self, parent, type, choice = None, caption=None, \
|
|
|
|
|
value=None, comments = None):
|
|
|
|
|
QtGui.QWidget.__init__(self,parent)
|
|
|
|
@ -1953,9 +1953,12 @@ class PlusRow (QtGui.QWidget):
|
|
|
|
|
if not find_flag:
|
|
|
|
|
self.widget_dict[str(i)] = ''
|
|
|
|
|
|
|
|
|
|
if type(index_widget) in [QtGui.QComboBox, QtGui.QLineEdit]:
|
|
|
|
|
if type(index_widget) in [QtGui.QComboBox]:
|
|
|
|
|
index_widget.editTextChanged.connect(self.change_readonly \
|
|
|
|
|
(i, values, comments, index_comment, index_values))
|
|
|
|
|
if type(index_widget) in [QtGui.QLineEdit]:
|
|
|
|
|
index_widget.textChanged.connect(self.change_readonly \
|
|
|
|
|
(i, values, comments, index_comment, index_values))
|
|
|
|
|
|
|
|
|
|
# add OK button
|
|
|
|
|
self.button_layout = QtGui.QHBoxLayout()
|
|
|
|
@ -2118,8 +2121,8 @@ class PasswordWgt(QtGui.QWidget):
|
|
|
|
|
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('Repeat'), self), 1, 0)
|
|
|
|
|
self.layout.addWidget(self.pass_edit2, 1, 1)
|
|
|
|
|
self.pass_edit.editTextChanged.connect(self.check_passwd)
|
|
|
|
|
self.pass_edit2.editTextChanged.connect(self.check_passwd)
|
|
|
|
|
self.pass_edit.textChanged.connect(self.check_passwd)
|
|
|
|
|
self.pass_edit2.textChanged.connect(self.check_passwd)
|
|
|
|
|
|
|
|
|
|
self.ok_button = QtGui.QPushButton(_('Ok'), self)
|
|
|
|
|
self.ok_button.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Return))
|
|
|
|
@ -2199,8 +2202,8 @@ class SimplePasswordWidget(QtGui.QWidget):
|
|
|
|
|
self.pass_edit2.setEchoMode(self.pass_edit2.Password)
|
|
|
|
|
|
|
|
|
|
self.layout.addWidget(self.pass_edit2)
|
|
|
|
|
self.pass_edit.editTextChanged.connect(self.check_passwd)
|
|
|
|
|
self.pass_edit2.editTextChanged.connect(self.check_passwd)
|
|
|
|
|
self.pass_edit.textChanged.connect(self.check_passwd)
|
|
|
|
|
self.pass_edit2.textChanged.connect(self.check_passwd)
|
|
|
|
|
|
|
|
|
|
def check_passwd(self):
|
|
|
|
|
if self.pass_edit.text() != self.pass_edit2.text():
|
|
|
|
|