summaryrefslogtreecommitdiff
path: root/itcl/iwidgets3.0.0/demos/checkbox
diff options
context:
space:
mode:
Diffstat (limited to 'itcl/iwidgets3.0.0/demos/checkbox')
-rwxr-xr-xitcl/iwidgets3.0.0/demos/checkbox18
1 files changed, 18 insertions, 0 deletions
diff --git a/itcl/iwidgets3.0.0/demos/checkbox b/itcl/iwidgets3.0.0/demos/checkbox
new file mode 100755
index 00000000000..fe3fa8adc53
--- /dev/null
+++ b/itcl/iwidgets3.0.0/demos/checkbox
@@ -0,0 +1,18 @@
+#!/bin/sh
+# ----------------------------------------------------------------------
+# DEMO: checkbox in [incr Widgets]
+# ----------------------------------------------------------------------
+#\
+exec itkwish "$0" ${1+"$@"}
+package require Iwidgets 3.0
+
+#
+# Demo script for the Checkbox class
+#
+iwidgets::checkbox .cb -labeltext Styles
+.cb add bold -text Bold
+.cb add italic -text Italic
+.cb add underline -text Underline
+.cb select underline
+
+pack .cb -padx 10 -pady 10 -fill both -expand yes