示例#1
0
 def set_minimal_width(self):
     max_width = 200
     for p in self.preprocessors:
         widget = getattr(self, p.attribute)
         if widget.enabled:
             max_width = max(max_width, widget.sizeHint().width())
     self.scroll.setMinimumWidth(max_width + 20)  # + scroll bar
示例#2
0
 def set_minimal_width(self):
     max_width = 250
     for widget in self.stages:
         if widget.enabled:
             max_width = max(max_width, widget.sizeHint().width())
     self.scroll.setMinimumWidth(max_width + 20)
示例#3
0
 def set_minimal_width(self):
     max_width = 250
     for widget in self.stages:
         if widget.enabled:
             max_width = max(max_width, widget.sizeHint().width())
     self.scroll.setMinimumWidth(max_width + 20)