fortrace.utility.applications.text_editor package
Submodules
fortrace.utility.applications.text_editor.gnome_text_editor module
- class fortrace.utility.applications.text_editor.gnome_text_editor.GEdit(qs: QEMUMonitorSession, parent_notifier: ParentNotifier)[source]
Bases:
GenericTextEditorGNOME text editor.
Warning
Please deactivate ‘Restore previous session’ before using G Edit.
fortrace.utility.applications.text_editor.notepad module
- class fortrace.utility.applications.text_editor.notepad.Notepad(qs: QEMUMonitorSession, parent_notifier: ParentNotifier)[source]
Bases:
GenericTextEditor
fortrace.utility.applications.text_editor.text_editor module
- class fortrace.utility.applications.text_editor.text_editor.GenericTextEditor(name: str, qs: QEMUMonitorSession, parent_notifier: ParentNotifier)[source]
Bases:
GenericApplicationOS-independent representation of a graphical text editor.
- abstractmethod open_file(path: PathLike)[source]
Open file in text editor.
- Parameters:
path – path of the file to be opened
- save()[source]
Save the currently active file.
Might open a ‘Save as…’ dialogue, if destination is unknown. This behavior is undefined, thus this method should not be used on newly created files without a name. Then use save_as
fortrace.utility.applications.text_editor.text_editor_factory module
- fortrace.utility.applications.text_editor.text_editor_factory.get_text_editor(name: str, qs: QEMUMonitorSession, parent_notifier: ParentNotifier) GenericTextEditor[source]
Factory to create a specific text editor application object.
- Parameters:
name – name of the application (if not included ValueError is thrown)
qs – handle to QEMUMonitor
parent_notifier – attribute of desktop environment to handle changes in windows
- Returns:
Application handle to opened text editor