OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [tags/] [start/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [pushbutton] - Rev 579

Go to most recent revision | Compare with Previous | Blame | View Log

#!/bin/sh
# ----------------------------------------------------------------------
#  DEMO: pushbutton in [incr Widgets]
# ----------------------------------------------------------------------
#\
exec itkwish "$0" ${1+"$@"}
package require Iwidgets 3.0

# itkwish interprets the rest...
# ----------------------------------------------------------------------
. configure -background white

iwidgets::pushbutton .pb -text "Push Me" -defaultring yes -command {
    puts "Hello, World!"
}
pack .pb -padx 4 -pady 4

checkbutton .default -text "Default ring" -variable defring \
    -command {.pb configure -defaultring $defring}
pack .default -padx 4 -pady 4

.default invoke

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.