def _init_toolbar(self):

        self._parent = self.canvas.GetParent()


        self.wx_ids = {}
        for text, tooltip_text, image_file, callback in self.toolitems:
            if text is None:
                self.AddSeparator()
                continue
            self.wx_ids[text] = wx.NewId()
            if text in ['Pan', 'Zoom', 'Select']:
               self.AddCheckTool(self.wx_ids[text], image_file.GetBitmap(),
                                 shortHelp=text, longHelp=tooltip_text)
            else:
               self.AddSimpleTool(self.wx_ids[text], image_file.GetBitmap(),
                                  text, tooltip_text)
            bind(self, wx.EVT_TOOL, getattr(self, callback), id=self.wx_ids[text])

        self.Realize()
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/gui/mnuPlotToolbar.py/MyCustomToolbar._init_toolbar/original