.controllers.GifBrowser
- class controllers.gifbrowser.GifBrowser
Controller responsible for the GIF file browser popup.
Initializer
- controllers.GifBrowser.__init__(self)
Initializes a new GifBrowser object.
Location
/controllers/gifbrowser.py
Instance function
- controllers.GifBrowser.get_file(self) str | None
Reads the file browser window events and returns:
GIF file path if selected
“close” if user closes window
None if the browser is still open
- Return type
str | None
Internal instance property
- property GifBrowser._valid: bool
Returns True if user selected a valid GIF file.
Internal instance function
- controllers.GifBrowser._change_state(self, valid: bool) None
Enables and disables FileBrowser controls according to validation state.
- Parameters
valid (bool) – State of file validation