code: def _update_justification(self, justification):
          
  
          states = {"left": 2, "center": 0, "right": 1}
  
          self.justify_tb.state = states[justification]
  
          self.justify_tb.toggle(None)
          self.justify_tb.Refresh()
docs: Updates horizontal text justification button
  
          Parameters
          ----------
  
          justification: String in ["left", "center", "right"]
          \tSwitches button to untoggled if False and toggled if True