class edit_commands.EditCommandScreen(CommandScreen)
EditCommandScreen is a subclass of CommandScreen that provides the following commands:
Title | Action Name | Keys |
Create Level Set... | create_level_set | |
New Level | new_level | Cmd-N |
Open Level... | open_level | Cmd-O |
Resume Editing | edit_level | ESC |
Test Level | test_level | Cmd-T |
Save Level | save_level | Cmd-S |
Save Level As... | save_level_as | |
Exit Editor | exit_level_editor | Cmd-Q |
You may want to base your level editing screen on EditCommandScreen so that it will respond to the keyboard equivalents of these commands.
Class Attributes
- title = "Level Editor"
- Title string for the menu.
- title_class = EditMenuTitle
- Widget class for the menu title. Should be a subclass of Label or something with a compatible constructor.
- button_class = EditMenuButton
- Widget class for the menu buttons. Should be a subclass of Button or something with a compatible constructor.
Themable Classes
You can customize the appearance of the title and menu by providing Albow themes for the following classes defined in the edit_commands module.
- class EditMenuTitle(MenuTitle)
- Default class for the menu title.
- class EditMenuButton(MenuButton)
- Default class for the menu buttons.
---