code: def OnTextRotation0(self, event):
          
  
          with undo.group(_("Rotation 0°")):
              self.grid.actions.set_attr("angle", 0)
  
          self.grid.ForceRefresh()
  
          self.grid.update_attribute_toolbar()
docs: Text rotation dialog event handler