Filers2 App
Filers2 App
The main module that provides the app that runs the GUI.
- class filers2.main.Filers2App(open_player_thread=True, **kwargs)
Bases:
BaseKivyApp
The app which runs the GUI.
- build()
Similar to App’s build, but it takes the root widget if provided and if
inspect
is True, it activates kivy’s inspector.- Parameters
root – The root widget instance.
- Returns
The root widget
- check_close()
Returns whether the app can close now. Otherwise, a message telling the user it cannot close now with message
_close_message
will be shown.
- clean_up()
Called by
run_app()
orrun_app_async()
after the app closes to clean up any remaining resources.By default, if
inspect
is enabled, it cleans up after it.
- on_start()
Event handler for the on_start event which is fired after initialization (after build() has been called) but before the application has started running.
- player_num_cols
The number of columns used by the grid displaying all the players.
If empty,
player_num_rows
must be set to a number, and then the columns will be auto-computed from the number of players added.
- player_num_rows
The number of rows used by the grid displaying all the players.
If empty,
player_num_cols
must be set to a number, and then the rows will be auto-computed from the number of players added.
- set_tittle(*largs)
Sets the title of the window.
- yesno_prompt
Stores a instance of
YesNoPrompt
that is automatically created by this app class. That class is described inbase_kivy_app/graphics.kv
.
- filers2.main.run_app()
The function that starts the GUI and the entry point for the main script.