Opened 14 years ago

Closed 13 years ago

#1076 closed enhancement (fixed)

Organize toolbar buttons

Reported by: asaf Owned by: garycmartin
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Physics Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: New


Add a way to define the order of the toolbar buttons.

Change History (3)

comment:1 Changed 14 years ago by asaf

What will a good order be?

This can be achieved easily by replacing the contents of the getAllTools function by this

def getAllTools():
    allTools = [BoxTool, TriangleTool, CircleTool, MagicPenTool, PolygonTool, JointTool, PinTool, MotorTool, GrabTool, DestroyTool]
    return allTools

of course, putting the desired order.

comment:2 Changed 14 years ago by garycmartin

Hi Asaf, thanks that's nice and simple to change :-) I don't have a very strong opinion, but the tool order I've been trying here is based on ordering the tools from simple to complex:

def getAllTools():
    allTools = [CircleTool, TriangleTool, BoxTool, PolygonTool, MagicPenTool, PinTool, JointTool, MotorTool, GrabTool, DestroyTool]
    return allTools

comment:3 Changed 13 years ago by garycmartin

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the code, done.

Note: See TracTickets for help on using tickets.