| 1198 | _icon_extension = '.svg' |
| 1199 | |
| 1200 | def __init__(self, toolmanager, parent=None, style=wx.TB_BOTTOM): |
| 1201 | if parent is None: |
| 1202 | parent = toolmanager.canvas.GetParent() |
| 1203 | ToolContainerBase.__init__(self, toolmanager) |
| 1204 | wx.ToolBar.__init__(self, parent, -1, style=style) |
| 1205 | self._space = self.AddStretchableSpace() |
| 1206 | self._label_text = wx.StaticText(self, style=wx.ALIGN_RIGHT) |
| 1207 | self.AddControl(self._label_text) |
| 1208 | self._toolitems = {} |
| 1209 | self._groups = {} # Mapping of groups to the separator after them. |
| 1210 | |
| 1211 | def _get_tool_pos(self, tool): |
| 1212 | """ |