photon_platform.logger.logger
PHOTON logger
- class photon_platform.logger.logger.Logger(driver_class: Type[Driver] | None = None, css_path: str | PurePath | List[str | PurePath] | None = None, watch_css: bool = False)[source]
Bases:
App
- TITLE: str | None = 'PHOTON • logger'
A class variable to set the default title for the application.
To update the title while the app is running, you can set the [title][textual.app.App.title] attribute. See also [the Screen.TITLE attribute][textual.screen.Screen.TITLE].
- BINDINGS: ClassVar[list[BindingType]] = [('ctrl+s', 'save', 'save'), ('ctrl+p', 'screenshot', 'screenshot'), ('ctrl+q', 'quit', 'quit')]
- compose() Iterable[Widget] [source]
Yield child widgets for a container.
This method should be implemented in a subclass.
- action_screenshot(path: str = './') None [source]
Save an SVG “screenshot”. This action will save an SVG file containing the current contents of the screen.
Args: filename (str | None, optional): Filename of screenshot, or None to auto-generate. Defaults to None. path (str, optional): Path to directory. Defaults to “./”.