bec_widgets.utils.bec_plugin_manager.edit_ui#

Classes#

RecompileHandler

Base file system event handler that you can override methods from.

Functions#

Module Contents#

class RecompileHandler(in_file: pathlib.Path, out_file: pathlib.Path)#

Bases: watchdog.events.FileSystemEventHandler

Base file system event handler that you can override methods from.

_add_comment_to_file()#
_recompile()#
_update_imports()#
on_created(event: watchdog.events.DirCreatedEvent | watchdog.events.FileCreatedEvent) None#

Called when a file or directory is created.

Parameters:

event (DirCreatedEvent or FileCreatedEvent) – Event representing file/directory creation.

on_modified(event: watchdog.events.DirModifiedEvent | watchdog.events.FileModifiedEvent) None#

Called when a file or directory is modified.

Parameters:

event (DirModifiedEvent or FileModifiedEvent) – Event representing file/directory modification.

on_moved(event: watchdog.events.DirMovedEvent | watchdog.events.FileMovedEvent) None#

Called when a file or a directory is moved or renamed.

Parameters:

event (DirMovedEvent or FileMovedEvent) – Event representing file/directory movement.

recompile(event: watchdog.events.FileSystemEvent) None#
in_file = ''#
out_file = ''#
open_and_watch_ui_editor(widget_name: str)#