Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-08-18 23:06:24 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-08-18 23:06:24 (GMT)
commit57f59ae2aa2ec957b5e2234bf807593496bbe2a5 (patch)
treec78867c41adbcab532c798360606c5ed148666c5 /tools.py
parent9b89ba0adfe47c60eb9fe14427d554fe59eeb0a5 (diff)
Tools provided with some (new) order, new RollTool excluded for now.
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/tools.py b/tools.py
index e886f70..65eb9ff 100644
--- a/tools.py
+++ b/tools.py
@@ -450,12 +450,15 @@ class DestroyTool(Tool):
self.vertices = None
def getAllTools():
- this_mod = __import__(__name__)
- all = [val for val in this_mod.__dict__.values() if isinstance(val, type)]
- allTools = []
- for a in all:
- if getmro(a).__contains__(Tool) and a!= Tool: allTools.append(a)
- return allTools
+ return [MagicPenTool,
+ CircleTool,
+ TriangleTool,
+ BoxTool,
+ PolygonTool,
+ GrabTool,
+ MotorTool,
+ PinTool,
+ JointTool,
+ DestroyTool]
-
allTools = getAllTools()