Console interfaces is a python package that provides functions that are used in the exercises of Robotics Academy to manage the console.
In order to import the specific Gui interface follow the next pattern.
Being for general interfaces:
from console_interfaces.general.{INTERFACE} import ...
where {INTERFACE} needs to be substitued by the interface name.
And for specific interfaces:
from console_interfaces.specific.{EXERCISE}.{INTERFACE} import ...
where {EXERCISE} is the name of exercise being worked on and {INTERFACE} needs to be substitued by the interface name.
If the interface is only specific to one exercise add it as a specific interface, if not the add it to general. Also the naming scheme that needs to be followed when naming a new interface file is snake case or lower case with underlines.
For reference, please refer to the existing interfaces.
- Inside the general directory
- Create a directory named after the exercise name inside of the specific directory.
- Import each interface as stated in the How to use section.
- At the end of th exercise's GUI.py file call the start_console function.