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/] [panedwindow] - Blame information for rev 578

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

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
# ----------------------------------------------------------------------
3
#  DEMO: panedwindow 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::panedwindow .pw -width 3i -height 3i
14
pack .pw -padx 4 -pady 4
15
 
16
.pw add "top"
17
set pane [.pw childsite "top"]
18
label $pane.l -text "(put some widgets here)" \
19
    -background black -foreground white
20
pack $pane.l -expand yes -fill both
21
 
22
.pw add "bottom"
23
set pane [.pw childsite "bottom"]
24
label $pane.l -text "(put other widgets here)" \
25
    -background black -foreground white
26
pack $pane.l -expand yes -fill both
27
 
28
.pw fraction 40 60
29
 
30
 
31
iwidgets::optionmenu .orient -labeltext "Orientation:" -command {
32
    .pw configure -orient [.orient get]
33
}
34
pack .orient -padx 4 -pady 4
35
.orient insert end horizontal vertical

powered by: WebSVN 2.1.0

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