예제 #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)