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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [labeledwidget] - Blame information for rev 1770

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

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
# ----------------------------------------------------------------------
3
#  DEMO: labeledwidget in [incr Widgets]
4
# ----------------------------------------------------------------------
5
#\
6
exec itkwish "$0" ${1+"$@"}
7
package require Iwidgets 3.0
8
 
9
# itkwish interprets the rest...
10
# ----------------------------------------------------------------------
11
. configure -background white
12
 
13
iwidgets::labeledwidget .lw -labeltext "Label Text:"
14
pack .lw -padx 4 -pady 4
15
 
16
set win [.lw childsite]
17
label $win.ex -text "(put your widgets here)" \
18
    -background black -foreground white \
19
    -width 30 -height 3
20
pack $win.ex -expand yes -fill both -padx 4 -pady 4
21
 
22
iwidgets::optionmenu .pos -labeltext "Position:" -command {
23
    .lw configure -labelpos [.pos get]
24
}
25
pack .pos -padx 4 -pady 4
26
 
27
.pos insert end e n ne nw s se sw w
28
.pos select w

powered by: WebSVN 2.1.0

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