We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b818b56 commit c5af9a5Copy full SHA for c5af9a5
src/Library/demos/Checkboxes/main.py
@@ -0,0 +1,16 @@
1
+import workbench
2
+
3
+checkbox_1 = workbench.builder.get_object("checkbox_1")
4
+checkbox_2 = workbench.builder.get_object("checkbox_2")
5
6
+checkbox_1.connect("toggled", lambda *_:
7
+ print("Notifications Enabled"
8
+ if checkbox_1.get_active()
9
+ else "Notifications Disabled")
10
+)
11
12
+checkbox_2.connect("toggled", lambda *_:
13
+ print("Changes will be auto-saved"
14
+ if checkbox_2.get_active()
15
+ else "Changes will not be auto-saved")
16
0 commit comments