def_init_ui_size(self): """ Travel all the widgets and resize according to the ratio """ self._resize_with_ratio(self) for q_widget in self.findChildren(QWidget): # print q_widget.objectName() self._resize_with_ratio(q_widget) self._move_with_ratio(q_widget)
# Don't deal with the text browser # for q_widget in self.findChildren(QAbstractScrollArea): # print q_widget.objectName() # self._resize_with_ratio(q_widget) # self._move_with_ratio(q_widget)