<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def OnBorderChoice(self, event):
 """Change the borders that are affected by color and width changes"""


        choicelist = event.GetEventObject().GetItems()
        self.borderstate = choicelist[event.GetInt()]