From 57f59ae2aa2ec957b5e2234bf807593496bbe2a5 Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Tue, 18 Aug 2009 23:06:24 +0000 Subject: Tools provided with some (new) order, new RollTool excluded for now. --- (limited to 'tools.py') 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() -- cgit v0.9.1