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/] [selectiondialog] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
# ----------------------------------------------------------------------
3
#  DEMO: selectiondialog in [incr Widgets]
4
# ----------------------------------------------------------------------
5
#\
6
exec itkwish "$0" ${1+"$@"}
7
package require Iwidgets 3.0
8
 
9
# itkwish interprets the rest...
10
# ----------------------------------------------------------------------
11
option add *textBackground seashell
12
 
13
iwidgets::selectiondialog .sd -modality application
14
.sd configure -selectionlabel "Font:"
15
 
16
.sd insert items end Ariel Courier Helvetica Knarly Lucida \
17
    Rumpus Symbol Times "Zapf Dingbats"
18
 
19
button .select -text "Font..." -command {
20
    if {[.sd activate]} {
21
        puts "selected: [.sd get]"
22
    } else {
23
        puts "cancelled"
24
    }
25
}
26
pack .select -side left
27
 

powered by: WebSVN 2.1.0

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