EditorWindow
Module¶
This module contains the editor window.
-
class
kniteditor.EditorWindow.
EditorWindow
(**kwargs)[source]¶ Bases:
kivy.app.App
The editor window.
-
build_config
(config)[source]¶ Build the configuration.
Parameters: config¶ (kivy.config.ConfigParser) – the configuration parser See also
-
build_settings
(settings)[source]¶ Create the applications settings dialog.
Parameters: settings¶ (kivy.uix.settings.Settings) – the settings for this app
-
config_change_in_section_language_key_current
(new_language)[source]¶ Set the new language of the application.
-
get_application_config
()[source]¶ Return the application’s configuration directory.
Returns: the path to the configuration file Return type: str
-
on_config_change
(config, section, key, value)[source]¶ The configuration was changed.
Parameters: When this method is called, it issued calls to change methods if they exist in this order:
config_change_in_section_{section}_key_{key}(value)
config_change_in_section_{section}(key, value)
-
-
class
kniteditor.EditorWindow.
Root
(**kwargs)[source]¶ Bases:
kivy.uix.pagelayout.PageLayout
This is the root of the application.
-
kniteditor.EditorWindow.
LANGUAGE_CODE
= 'current'¶ the language code name
-
kniteditor.EditorWindow.
LANGUAGE_SECTION
= 'language'¶ the language section name