Other sources¶
Controller¶
Uses to connect the UI with the Core
- class odin.source.controller.Controller(ui, parent=None)¶
UI Controller.
- Parameters
ui (callable(QMainWindow)) –
parent (Optional[QApplication]) –
- Return type
NoReturn
Common¶
Common methods used anywhere
Logger¶
Note
Logger is still in development and will be upgraded to be used like an API.
- class odin.source.logger.StreamToLogger(logger, stream=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, log_level=20)¶
Fake file-like stream object that redirects writes to a logger instance.
- Parameters
logger (logging.Logger) –
stream (TextIO) –
log_level (int) –
- Return type
None
- odin.source.logger.log(name)¶
.
- Parameters
name (
str) – name to the log- Return type
Logger- Returns
Logger object to interact with the logger