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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [promptdialog] - Rev 1770

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

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

# itkwish interprets the rest...
# ----------------------------------------------------------------------
option add *textBackground seashell

button .b -text "Get Password..." -command {
    if {[.pd activate]} {
        puts "password: [.pd get]"
    } else {
        puts "cancelled"
    }
}
pack .b

iwidgets::promptdialog .pd -title "Prompt Dialog" -modality application \
    -labeltext "Password:" -show "*"

.pd hide Apply
.pd hide Help

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.