Module: global_vars¶
If flika is loaded using:
from flika import *
then all of the variables inside global_vars can be accessed as g.*
. For instance, to access the
image inside current window, simply run:
I = g.win.image
-
flika.global_vars.
m
= None¶ The main window.
-
class
flika.global_vars.
Settings
¶ All of flika’s settings are stored in this object, which is designed to act like a dictionary. When any value in this object is changed, this object is converted to json and saved in
~/.FLIKA/settings.json
. When flika is restarted, this settings object is populated with values from this file. Settings can be accessed using g.settings.-
load
(self)¶ Load settings file. The file is stored in
~/.FLIKA/settings.json
-
save
(self)¶ Save settings file. The file is stored in
~/.FLIKA/settings.json
-
-
flika.global_vars.
alert
(msg, title="flika - Alert')¶ Creates a popup that alerts the user.
Parameters: