code: def _create_textrotation_button(self):
          
  
          iconnames = ["TextRotate270", "TextRotate0", "TextRotate90",
                       "TextRotate180"]
          bmplist = [icons[iconname] for iconname in iconnames]
  
          self.rotation_tb = _widgets.BitmapToggleButton(self, bmplist)
          self.rotation_tb.SetToolTipString(_(u"Cell text rotation"))
          self.Bind(wx.EVT_BUTTON, self.OnRotate, self.rotation_tb)
          self.AddControl(self.rotation_tb)
docs: Create text rotation toggle button