URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [tabset] - Rev 1782
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