.controllers.App

class controllers.app.App(gif_info: model.gif_info.GifInfo)

Controller responsible for displaying the loaded GIF file animation and allowing the user to crop it.

Initializer

controllers.App.__init__(self, gif_info: model.gif_info.GifInfo)

Initializes a new App object.

Parameters

gif_info (model.GifInfo) – Object containing the GIF file information


Location

/controllers/app.py

Instance function

controllers.App.read_events(self) str | None

Reads the application window events.

Returns

‘done’ if user closes the window, else None

Return type

str | None


Internal instance property

property App._cropper: controllers._gif.cropper.Cropper
Returns

A new Cropper object set with current selected values.

Return type

_ui.Cropper


Internal instance function

controllers.App._show_output(output: str) None

Displays a popup window showing the result of the export.

Parameters

output (str) – Output GIF file path

Source code (on GitHub)