|
|
|
@ -1041,7 +1041,6 @@ class MultipleChoice(qt.QWidget):
|
|
|
|
|
# multiple-choice widget displayed in the table
|
|
|
|
|
def __init__(self, parent, Available_list, Selected, comments, \
|
|
|
|
|
add_ability = False, expert = False):
|
|
|
|
|
print("DEBUG multichoice")
|
|
|
|
|
super().__init__(parent)
|
|
|
|
|
''' Available_list is string list, Selected_list is string,
|
|
|
|
|
add_ability is boolean'''
|
|
|
|
@ -1131,6 +1130,8 @@ class MultipleChoice(qt.QWidget):
|
|
|
|
|
return self.lbl.text()
|
|
|
|
|
|
|
|
|
|
def values(self):
|
|
|
|
|
print("++++++++++++++++++++++++")
|
|
|
|
|
print("DEBUG")
|
|
|
|
|
res_dict = {}
|
|
|
|
|
for key in self.value_dict:
|
|
|
|
|
res_dict[self.value_dict[key]] = key
|
|
|
|
@ -1712,7 +1713,6 @@ class PlusRow (qt.QWidget):
|
|
|
|
|
""" Widget opens a dialog multiple select """
|
|
|
|
|
def __init__(self, parent, table, field, changed = False, num_row = None):
|
|
|
|
|
super().__init__()
|
|
|
|
|
print("DEBUG PLUS ROW")
|
|
|
|
|
self.grid = qt.QGridLayout(self)
|
|
|
|
|
self.grid.setContentsMargins(24,8,24,8)
|
|
|
|
|
self.grid.setSpacing(6)
|
|
|
|
@ -2008,8 +2008,8 @@ class PlusRow (qt.QWidget):
|
|
|
|
|
return wrapper
|
|
|
|
|
|
|
|
|
|
def ok_pressed(self):
|
|
|
|
|
items = list(filter(lambda x: type(self.widget_dict[str(x)]) == \
|
|
|
|
|
SimplePasswordWidget, self.widget_dict.keys()))
|
|
|
|
|
items = filter(lambda x: type(self.widget_dict[str(x)]) == \
|
|
|
|
|
SimplePasswordWidget, self.widget_dict.keys())
|
|
|
|
|
if list(filter(lambda x: not self.widget_dict[str(x)].status(), items)):
|
|
|
|
|
return 1
|
|
|
|
|
if self.changed:
|
|
|
|
@ -2091,7 +2091,6 @@ class PlusRow (qt.QWidget):
|
|
|
|
|
self.table.horizontalHeader().resizeSections(
|
|
|
|
|
qt.QHeaderView.ResizeToContents)
|
|
|
|
|
self.table.setColor()
|
|
|
|
|
print("OK FINISH")
|
|
|
|
|
self.close()
|
|
|
|
|
|
|
|
|
|
class PasswordWgt(qt.QWidget):
|
|
|
|
|