Исправлен отступ от названия группы в списке методов

master-3.5 3.5.8.5
parent 1ac417abe6
commit 7fc05b7bbd

@ -42,6 +42,9 @@ class DisplayMethod(qt.QWidget):
# set new Title # set new Title
self.ClientObj._parent.setWindowTitle(self.ClientObj.Name) self.ClientObj._parent.setWindowTitle(self.ClientObj.Name)
groupbox_style = "QGroupBox { padding-top: 24px; padding-left: 10px;}"
# transform a list into the dictionary {'group': [methods], ...} # transform a list into the dictionary {'group': [methods], ...}
guiMethods = {} guiMethods = {}
if type(results) == int: if type(results) == int:
@ -69,11 +72,10 @@ class DisplayMethod(qt.QWidget):
group_name = group.split('.')[0].encode('utf-8') group_name = group.split('.')[0].encode('utf-8')
sub_group = group.split('.')[1].encode('utf-8') sub_group = group.split('.')[1].encode('utf-8')
if not self.groupbox_dict.has_key(group_name): if not self.groupbox_dict.has_key(group_name):
self.groupbox_dict[group_name] = \ gb = qt.QGroupBox(group_name.decode('utf-8'), self)
qt.QGroupBox(group_name.decode('utf-8'), self) gb.setStyleSheet(groupbox_style)
gb.setAlignment(qt.Qt.AlignLeft)
self.groupbox_dict[group_name].setAlignment \ self.groupbox_dict[group_name] = gb
(qt.Qt.AlignLeft)
if not self.layout_dict.has_key(group_name): if not self.layout_dict.has_key(group_name):
self.layout_dict[group_name] = \ self.layout_dict[group_name] = \
@ -105,9 +107,10 @@ class DisplayMethod(qt.QWidget):
continue continue
if not self.groupbox_dict.has_key(group): if not self.groupbox_dict.has_key(group):
self.groupbox_dict[group] = \ gb = qt.QGroupBox(group, self)
qt.QGroupBox(group, self) gb.setStyleSheet(groupbox_style)
self.groupbox_dict[group].setAlignment(qt.Qt.AlignLeft) self.groupbox_dict[group] = gb
gb.setAlignment(qt.Qt.AlignLeft)
if not self.layout_dict.has_key(group): if not self.layout_dict.has_key(group):
self.layout_dict[group] = FlowLayout(self.groupbox_dict[group]) self.layout_dict[group] = FlowLayout(self.groupbox_dict[group])

Loading…
Cancel
Save