URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [tabset] - Rev 1782
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/sh
# ----------------------------------------------------------------------
# DEMO: tabset in [incr Widgets]
# ----------------------------------------------------------------------
#\
exec itkwish "$0" ${1+"$@"}
package require Iwidgets 3.0
# itkwish interprets the rest...
# ----------------------------------------------------------------------
proc showTab {num} {
puts "selected: [.ts tabcget $num -label]"
}
iwidgets::tabset .ts -command showTab
pack .ts
for {set i 1} {$i <= 5} {incr i} {
.ts add -label "#$i"
}
.ts select 0
Go to most recent revision | Compare with Previous | Blame | View Log