Support resize event relaying from the god widget

windows_fixes_yo
Tyler Goodlet 2022-02-10 14:21:17 -05:00
parent c54c9ae3d3
commit 51d94a301a
1 changed files with 13 additions and 1 deletions

View File

@ -112,6 +112,9 @@ class GodWidget(QWidget):
# assigned in the startup func `_async_main()` # assigned in the startup func `_async_main()`
self._root_n: trio.Nursery = None self._root_n: trio.Nursery = None
self._widgets: dict[str, QWidget] = {}
self._resizing: bool = False
# def init_timeframes_ui(self): # def init_timeframes_ui(self):
# self.tf_layout = QHBoxLayout() # self.tf_layout = QHBoxLayout()
# self.tf_layout.setSpacing(0) # self.tf_layout.setSpacing(0)
@ -259,7 +262,16 @@ class GodWidget(QWidget):
Where we do UX magic to make things not suck B) Where we do UX magic to make things not suck B)
''' '''
log.debug('god widget resize') if self._resizing:
return
self._resizing = True
log.info('God widget resize')
for name, widget in self._widgets.items():
widget.on_resize()
self._resizing = False
class ChartnPane(QFrame): class ChartnPane(QFrame):