diff --git a/pym/consolegui/application/ConnectionTabs.py b/pym/consolegui/application/ConnectionTabs.py index d1254ae..689dab7 100644 --- a/pym/consolegui/application/ConnectionTabs.py +++ b/pym/consolegui/application/ConnectionTabs.py @@ -133,7 +133,7 @@ class SelectedMethodWgt(qt.QWidget): size = self.config.get('gui', 'size') except (ConfigParser.NoOptionError, ConfigParser.NoSectionError): return False - tup_size = map(lambda x: int(x), size.split(',')) + tup_size = list(map(lambda x: int(x), size.split(','))) self.resize(tup_size[0], tup_size[1]) return True diff --git a/pym/consolegui/application/LeftMenu.py b/pym/consolegui/application/LeftMenu.py index a5386f4..fae7c00 100644 --- a/pym/consolegui/application/LeftMenu.py +++ b/pym/consolegui/application/LeftMenu.py @@ -344,7 +344,6 @@ class LeftMenu(qt.QScrollArea): # self.verticalScrollBar().sizeHint().width()) if not self.isVisible(): - print("DEBUG create steps") self.show() # create helper signals diff --git a/pym/consolegui/application/SelectTable.py b/pym/consolegui/application/SelectTable.py index 46d5610..ae3900c 100644 --- a/pym/consolegui/application/SelectTable.py +++ b/pym/consolegui/application/SelectTable.py @@ -90,8 +90,6 @@ class SelectedTableWidget(qt.QTableWidget): item.setBackground(brush) def mousePressEvent(self, event): - print("DEBUG MOUSE PRESS EVENT") - print(event) if self.readonly: event.ignore() return diff --git a/pym/consolegui/application/mainframe.py b/pym/consolegui/application/mainframe.py index 14ef9a7..e9ff13a 100644 --- a/pym/consolegui/application/mainframe.py +++ b/pym/consolegui/application/mainframe.py @@ -1633,8 +1633,8 @@ class MainFrame(qt.QWidget): def add_element_table(self, field, x, y, brief=False, gb_layout=None): self.table_dict[field.name] = field table = field.tablevalue - debug(11, "DEBUG add element table") - debug(11, table) + # debug(11, "DEBUG add element table") + # debug(11, table) lenColumn = 0 lenBody = 0 if table.body and hasattr(table.body, 'stringArray'): @@ -1672,8 +1672,6 @@ class MainFrame(qt.QWidget): self.table_widget.setSizePolicy(minimum, expanding) self.view_dict[field.name] = self.table_widget - print("DEBUG view dict") - print(self.view_dict) self.label_dict[field.name] = LabelWordWrap(field.label, self) self.label_dict[field.name].setContentsMargins(0, 0, 0, 0) self.table_dict[field.name] = field diff --git a/pym/consolegui/application/more.py b/pym/consolegui/application/more.py index 5ea9977..3f85214 100644 --- a/pym/consolegui/application/more.py +++ b/pym/consolegui/application/more.py @@ -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):