Example #1
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     # 1 is the widget version; change when widgets are added/removed
     MainWindow.apply_state(self, state)
     qtutils.apply_window_state(self, state, 1)
     for widget in self.dockwidgets:
         widget.titleBarWidget().update_tooltips()
Example #2
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     # 1 is the widget version; change when widgets are added/removed
     MainWindow.apply_state(self, state)
     qtutils.apply_window_state(self, state, 1)
     for widget in self.dockwidgets:
         widget.titleBarWidget().update_tooltips()
Example #3
0
 def apply_state(self, state):
     WidgetMixin.apply_state(self, state)
     result = qtutils.apply_window_state(self, state, self.widget_version)
     self.lock_layout = state.get('lock_layout', self.lock_layout)
     self.update_dockwidget_lock_state()
     self.update_dockwidget_tooltips()
     return result
Example #4
0
 def apply_state(self, state):
     WidgetMixin.apply_state(self, state)
     result = qtutils.apply_window_state(self, state, self.widget_version)
     self.lock_layout = state.get('lock_layout', self.lock_layout)
     self.update_dockwidget_lock_state()
     self.update_dockwidget_tooltips()
     return result
Example #5
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     # 1 is the widget version; change when widgets are added/removed
     MainWindow.apply_state(self, state)
     qtutils.apply_window_state(self, state, 1)
Example #6
0
 def apply_state(self, state):
     WidgetMixin.apply_state(self, state)
     result = qtutils.apply_window_state(self, state, self.widget_version)
     for widget in self.dockwidgets:
         widget.titleBarWidget().update_tooltips()
     return result
Example #7
0
 def apply_state(self, state):
     WidgetMixin.apply_state(self, state)
     result = qtutils.apply_window_state(self, state, self.widget_version)
     for widget in self.dockwidgets:
         widget.titleBarWidget().update_tooltips()
     return result