aboutsummaryrefslogtreecommitdiff
path: root/desiredata
diff options
context:
space:
mode:
Diffstat (limited to 'desiredata')
-rw-r--r--desiredata/src/desire.tk26
-rw-r--r--desiredata/src/unused.tcl27
2 files changed, 28 insertions, 25 deletions
diff --git a/desiredata/src/desire.tk b/desiredata/src/desire.tk
index 86efe50c..8aa6b0aa 100644
--- a/desiredata/src/desire.tk
+++ b/desiredata/src/desire.tk
@@ -8697,30 +8697,8 @@ def OopsDialogue damn {} {$self ok}
#----------------------------------------------------------------
-if {$tk} {
- set main [Client new]
- set window_list [list $main]
-} else {
- set cmdline(console) 0
- #foreach dir $auto_path {
- # set file $dir/libtclreadline[info sharedlibextension]
- # puts "trying $file"
- # if {![catch {load $file}]} {puts "found tclreadline !"}
- #}
- package require tclreadline
- proc ::tclreadline::prompt1 {} {return "desire> "}
- ::tclreadline::Loop
- #while {1} {
- # #set line [::tclreadline::readline read]
- # puts -nonewline "desire> "
- # flush stdout
- # set line [gets stdin]
- # if {[catch {puts [eval $line]}]} {
- # puts "error: $::errorInfo"
- # }
- #}
- #vwait foo
-}
+set main [Client new]
+set window_list [list $main]
def Canvas auto_test {} {
$self editmode= 1
diff --git a/desiredata/src/unused.tcl b/desiredata/src/unused.tcl
index 29f2b551..98601545 100644
--- a/desiredata/src/unused.tcl
+++ b/desiredata/src/unused.tcl
@@ -1,3 +1,29 @@
+if {$tk} {
+ set main [Client new]
+ set window_list [list $main]
+} else {
+ set cmdline(console) 0
+ #foreach dir $auto_path {
+ # set file $dir/libtclreadline[info sharedlibextension]
+ # puts "trying $file"
+ # if {![catch {load $file}]} {puts "found tclreadline !"}
+ #}
+ package require tclreadline
+ proc ::tclreadline::prompt1 {} {return "desire> "}
+ ::tclreadline::Loop
+ #while {1} {
+ # #set line [::tclreadline::readline read]
+ # puts -nonewline "desire> "
+ # flush stdout
+ # set line [gets stdin]
+ # if {[catch {puts [eval $line]}]} {
+ # puts "error: $::errorInfo"
+ # }
+ #}
+ #vwait foo
+}
+
+
#lappend ::auto_path /usr/local/lib/graphviz
catch {package require Tcldot}
def Canvas graphviz_sort {} {
@@ -50,4 +76,3 @@ def Canvas graphviz_sort {} {
}
}
}
-