summaryrefslogtreecommitdiff
path: root/math/py-gato/files/patch-Gato.py
blob: 0e26798a60ab50ce4dc7b9ee40a18a5fae54d16b (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- Gato.py	Fri Jan 20 15:15:55 2006
+++ Gato.py	Wed Mar  8 15:23:21 2006
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.3
+#!/usr/bin/env python
 ################################################################################
 #
 #       This file is part of Gato (Graph Animation Toolbox) 
@@ -48,22 +48,22 @@
 import tkFont
 import copy
 
-import Gred
+from Gato import Gred
 
 from Tkinter import *
 from tkFileDialog import askopenfilename, asksaveasfilename
 from tkMessageBox import askokcancel, showerror, askyesno
 from ScrolledText import ScrolledText
-from GatoConfiguration import GatoConfiguration
-from Graph import Graph
-from GraphUtil import *
-from GraphDisplay import GraphDisplayToplevel
-from GatoUtil import *
-from GatoGlobals import *
-from GatoDialogs import AboutBox, SplashScreen, HTMLViewer
-import GatoIcons
-import GatoSystemConfiguration
-from AnimationHistory import AnimationHistory
+from Gato.GatoConfiguration import GatoConfiguration
+from Gato.Graph import Graph
+from Gato.GraphUtil import *
+from Gato.GraphDisplay import GraphDisplayToplevel
+from Gato.GatoUtil import *
+from Gato.GatoGlobals import *
+from Gato.GatoDialogs import AboutBox, SplashScreen, HTMLViewer
+from Gato import GatoIcons
+from Gato import GatoSystemConfiguration
+from Gato.AnimationHistory import AnimationHistory
 
 # put someplace else
 def WMExtrasGeometry(window):
@@ -1419,11 +1419,11 @@
             self.algoGlobals['A'] = self.GUI.graphDisplay
             # XXX
             # explictely loading packages we want to make available to the algorithm
-        modules = ['DataStructures', 
-                   'AnimatedDataStructures', 
-                   'AnimatedAlgorithms',
-                   'GraphUtil',
-                   'GatoUtil']
+        modules = ['Gato.DataStructures', 
+                   'Gato.AnimatedDataStructures', 
+                   'Gato.AnimatedAlgorithms',
+                   'Gato.GraphUtil',
+                   'Gato.GatoUtil']
         
         for m in modules:
             exec("from %s import *" % m, self.algoGlobals, self.algoGlobals)