<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_justification(self, justification):
 """Updates horizontal text justification button Parameters justification: String in ["left", "center", "right"] \tSwitches button to untoggled if False and toggled if True """


        states = {"left": 2, "center": 0, "right": 1}

        self.justify_tb.state = states[justification]

        self.justify_tb.toggle(None)
        self.justify_tb.Refresh()