<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def change_max(self, no_tabs):
 """Updates to a new number of tables Fixes current table if out of bounds. Parameters no_tabs: Integer \tNumber of tables for choice """


        self.no_tabs = no_tabs

        if self.GetValue() >= no_tabs:
            self.SetValue(no_tabs - 1)