Skip to content

Commit fe89a1f

Browse files
VladyslavUsenkostevenlovegrove
authored andcommitted
Updated python example.
1 parent 8fb5167 commit fe89a1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/PythonExamples/SimpleDisplay.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def main():
3636
)
3737
var_ui = pango.Var("ui")
3838
var_ui.a_Button = False
39+
var_ui.a_Toggle = (False, pango.VarMeta(toggle=True))
3940
var_ui.a_double = (0.0, pango.VarMeta(0, 5))
4041
var_ui.an_int = (2, pango.VarMeta(0, 5))
4142
var_ui.a_double_log = (3.0, pango.VarMeta(1, 1e4, logscale=True))
@@ -52,7 +53,8 @@ def main():
5253
if var_ui.a_checkbox:
5354
var_ui.an_int = var_ui.a_double
5455

55-
var_ui.an_int_no_input = var_ui.an_int
56+
if var_ui.GuiChanged('an_int'):
57+
var_ui.an_int_no_input = var_ui.an_int
5658

5759
d_cam.Activate(s_cam)
5860
pango.glDrawColouredCube()

0 commit comments

Comments
 (0)