Changeset 2490d320 in tol
- Timestamp:
- Dec 9, 2008, 9:57:12 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 31db565
- Parents:
- 6019d02
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolmethods.tcl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolmethods.tcl
r6019d02 r2490d320 49 49 #///////////////////////////////////////////////////////////////////////////// 50 50 # cargamos la variable GCFFile de TOL 51 set fileGCF [ TclGetVar Text GCFFile]51 set fileGCF [::tol::info variable [list Text GCFFile] ] 52 52 if {![file exists $fileGCF]} { 53 53 set fileGCF {} … … 94 94 # GCF 95 95 if {![string length $gcfFile]} { 96 set gcfFile [ TclGetVar Text GCFFile]96 set gcfFile [::tol::info variable [list Text GCFFile]] 97 97 if {[string length $gcfFile]} { 98 98 eval set gcfFile $gcfFile … … 110 110 111 111 # Create Group Series 112 set nsource [lindex [TclGetVar Set $source] 0] 112 # ::tol::info variable returns a list [Grammar VariableName [numofelements "Elementos"] ... ] 113 # so get the index 0 of the index 2 114 set nsource [lindex [lindex [::tol::info variable [list Set $source]] 2] 0] 113 115 set lstSerie {} 114 for {set i 1} {$i <= $nsource} {incr i} { 116 set i 1 117 while {$i <= $nsource && $i <= 32 } { 115 118 lappend lstSerie "$source $i" 119 set i [expr $i+1] 116 120 } 117 121 set sergrp tableserie[clock clicks] 122 118 123 set tl "" 119 124 if {[llength $lstSerie]} { 120 125 # MDI 126 121 127 set tl [::project::CreateForm \ 122 128 -title $wTitle -type Graphs -iniconfig SeriesGraph -geometry $geometry] 123 129 $tl setgeometry $geometry 124 set top [$tl getframe] 130 set top [$tl getframe] 125 131 eval ::tol::seriegrp create $sergrp $lstSerie 126 132 # Create … … 159 165 set gramVar [GetGlobalUniqueName __tabser__] 160 166 ::tol::console eval "Text $gramVar = Grammar($source);" 161 set namGra [string trim [ TclGetVar Text $gramVar] {"}];#{"}167 set namGra [string trim [::tol::info variable [list Text $gramVar] ] {"}];#{"} 162 168 # destroy 163 169 ::tol::console stack release $gramVar … … 167 173 Serie { set lstSerie $source } 168 174 Set { 169 set nsource [lindex [ TclGetVar Set $source] 0]175 set nsource [lindex [::tol::info variable [list Set $source] ] 0] 170 176 for {set i 1} {$i <= $nsource} {incr i} { 171 177 lappend lstSerie "$source $i" … … 268 274 # GCF 269 275 if {![string length $gcfFile]} { 270 set gcfFile [ TclGetVar Text GCFFile]276 set gcfFile [::tol::info variable [list Text GCFFile] ] 271 277 } 272 278 if {![file exists $gcfFile]} {
Note: See TracChangeset
for help on using the changeset viewer.
