31 from python_qt_binding.QtGui
import QIcon
38 """`DockWidget` containing a main window acting as a container for other dock widgets.""" 40 def __init__(self, container_manager, serial_number):
41 super(DockWidgetContainer, self).
__init__(container_manager)
47 self.setWindowIcon(QIcon.fromTheme(
'folder'))
54 self.main_window.setObjectName(name +
'__MainWindow')
57 mw_settings = settings.get_settings(
'mainwindow')
65 maximized = self.isMaximized()
68 settings.set_value(
'geometry', self.main_window.saveGeometry())
74 self._settings.set_value(
'state', self.main_window.saveState())
78 mw_settings = settings.get_settings(
'mainwindow')
84 if settings.contains(
'geometry'):
85 self.main_window.restoreGeometry(settings.value(
'geometry'))
88 if self._settings.contains(
'state'):
89 self.main_window.restoreState(self._settings.value(
'state'))