<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def X_length(self, new_window_length):
 """Use presets for length of the window."""

        self.parent.value('window_length', new_window_length)
        self.parent.overview.update_position()