def set_cmdline_state(self, state_on):
    if (state_on != self.cmdline_on):
        self.cmdline_on = state_on
        self.set_cmdline_size((None if state_on else 0))
def set_cmdline_state(self, state_on):
    if (state_on != self.cmdline_on):
        self.cmdline_on = state_on
        self.set_cmdline_size((None if state_on else 0))