help with add ribbon button menu in the ribbon code

hi i want to add a ribbon button menu has option in the source but i
dont know how add it in the left space in this line mid in the 610 -
620 on the file bar.py

tabs_rect = wx.Rect(self._tab_margin_left, 0,
self.GetClientSize().GetWidth() - self._tab_margin_left -
self._tab_margin_right, self._tab_height)

        if not self._showRibbonMenuButton:

            tabs_r = self.DrawRibbonMenuButton()

i want (if is possible) replace the self._tab_margin_left for the
self.DrawRibbonMenuButton and use that space for draw the button or
sume whit that