ScheduleCommand
- class commands2.ScheduleCommand(*args, **kwargs)[source]
Bases:
Command
Schedules the given commands when this command is initialized. Useful for forking off from CommandGroups. Note that if run from a composition, the composition will not know about the status of the scheduled commands, and will treat this command as finishing instantly.
Creates a new ScheduleCommand that schedules the given commands when initialized.
- Parameters:
toSchedule – the commands to schedule
- initialize()[source]
The initial subroutine of a command. Called once when the command is initially scheduled.
- isFinished() bool [source]
Whether the command has finished. Once a command finishes, the scheduler will call its
commands2.Command.end()
method and un-schedule it.- Returns:
whether the command has finished.