-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTK_TextRotate.tcl
More file actions
39 lines (33 loc) · 931 Bytes
/
Copy pathTK_TextRotate.tcl
File metadata and controls
39 lines (33 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# the next line restarts using tclsh \
exec $SPI_PATH/wish "$0" "$@"
#============================================================================
# Environnement Canada
# Centre Meteorologique Canadien
# 2100 Trans-Canadienne
# Dorval, Quebec
#
# Projet : Exemple de scripts.
# Fichier : TK_TextRotate.tcl
# Creation : Mars 2005 - J.P. Gauthier - CMC/CMOE
# Description: Demonstration de l'angle de rotation des textes
#
# Parametres :
#
# Retour:
#
# Remarques :
#
#============================================================================
puts \n[file tail [info script]]
package require TkglCanvas
font create FontX -family Courier -weight bold -size -12
glcanvas .cv
pack .cv -fill both -expand true
.cv create text 200 200 -text "ALLO\nMon\n\ttoi\nLLLLLOOOOOLLL" -angle 45 -tag TEXT -font FontX
set angle 0
while {1} {
.cv itemconf TEXT -angle [incr angle 1]
update idletasks
after 10
}