@@ -1213,7 +1213,7 @@ def convertEventString(self, tclstring):
1213
1213
foreach event [list " + tclstring + "] {\n \
1214
1214
append pythonlist \\ \" $event\\ \" , \n \
1215
1215
} \n \
1216
- return $pythonlist"
1216
+ puts $pythonlist"
1217
1217
#tclresult = self.tcl.eval(tclcode)
1218
1218
# This step is what converts the Tcl string to a list.
1219
1219
#listofstrings = ast.literal_eval(tclresult)
@@ -1226,7 +1226,7 @@ def convertEventString(self, tclstring):
1226
1226
tclcode = "set pythondict \{;"
1227
1227
tclcode += "foreach element [list " + event + "] {"
1228
1228
tclcode += " append pythondict \" \\ \" [lindex $element 0]\\ \" : \\ \" [lindex $element 1]\\ \" , \" "
1229
- tclcode += "}; append pythondict \}; return $pythondict"
1229
+ tclcode += "}; append pythondict \}; puts $pythondict"
1230
1230
1231
1231
#tclresult = self.tcl.eval(tclcode)
1232
1232
#eventdict = ast.literal_eval(tclresult)
@@ -1238,7 +1238,7 @@ def convertEventString(self, tclstring):
1238
1238
tclcode = "set pythondict \{;"
1239
1239
tclcode += "foreach element [list " + eventdict ["additional" ] + "] {"
1240
1240
tclcode += " append pythondict \" \\ \" [lindex $element 0]\\ \" : \\ \" [lindex $element 1]\\ \" , \" "
1241
- tclcode += "}; append pythondict \}; return $pythondict"
1241
+ tclcode += "}; append pythondict \}; puts $pythondict"
1242
1242
1243
1243
#tclresult = self.tcl.eval(tclcode)
1244
1244
#eventdict["additional"] = ast.literal_eval(tclresult)
0 commit comments