Opened 14 years ago
Closed 14 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 |
Description
Add a way to define the order of the toolbar buttons.
Change History (3)
comment:1 Changed 14 years ago by asaf
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 14 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.
What will a good order be?
This can be achieved easily by replacing the contents of the http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/tools.py#line425 getAllTools function by this
of course, putting the desired order.