You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to _make sure the Qt Designer widgets are already built_ before we try to add to them. +
579
-
For this, we add a call to `self.make_corner_widgets()` function to build our extra widgets at the right time,
580
-
i.e. under the `initialized__()` function:
570
+
We need to _make sure the Qt Designer widgets are already built_ before we try to add to them.
571
+
For this, we add a call to `self.make_corner_widgets()` function to build our extra widgets at the right time, i.e. under the `initialized__()` function:
581
572
582
573
[source,python]
583
574
----
@@ -593,7 +584,7 @@ def initialized__(self):
593
584
----
594
585
595
586
.Create the widgets building functions
596
-
Ok let's code the function to build the widgets and add them in the tab widget. +
587
+
Ok let's code the function to build the widgets and add them in the tab widget.
597
588
We are assuming there is a tab widget built with Designer called 'rightTab'.
598
589
599
590
We are assuming there is a tab widget built with Qt Designer called `rightTab`.
Notice we sometimes compare to `widget`, sometimes to `widget.parent()`.
979
969
980
-
This is because _some QtVCP widgets are built from multiple_ *_sub-widgets_*
981
-
and the latter actually get the focus; so we need to *check the parent* of those sub-widgets.
970
+
This is because _some QtVCP widgets are built from multiple_ *_sub-widgets_* and the latter actually get the focus; so we need to *check the parent* of those sub-widgets.
982
971
983
-
Other times the main widget is what gets the focus,
984
-
e.g., the G-code display widget can be set to accept the focus.
985
-
In that case there are no sub-widgets in it,
986
-
so comparing to the `widget.parent()` would get you the container that holds the G-code widget.
972
+
Other times the main widget is what gets the focus, e.g., the G-code display widget can be set to accept the focus.
973
+
In that case there are no sub-widgets in it, so comparing to the `widget.parent()` would get you the container that holds the G-code widget.
0 commit comments