summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-04-15 00:35:30 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2015-04-15 00:35:30 +0300
commit144e28a2306377fa88a42938973fbf077c601186 (patch)
treee513813ceb05c737247cd241b2f9f71d8e41a2e1
parent0c170c5bb322ae33c981edb046043c9b411fb10e (diff)
Elm: Clarify init/shutdown change
With docs and test logging
-rw-r--r--efl/elementary/general.pyx12
-rwxr-xr-xexamples/elementary/test.py3
2 files changed, 15 insertions, 0 deletions
diff --git a/efl/elementary/general.pyx b/efl/elementary/general.pyx
index 8795e56..301d0d7 100644
--- a/efl/elementary/general.pyx
+++ b/efl/elementary/general.pyx
@@ -308,6 +308,12 @@ def init():
308 This function initializes Elementary and increments a counter of the number 308 This function initializes Elementary and increments a counter of the number
309 of calls to it. It returns the new counter's value. 309 of calls to it. It returns the new counter's value.
310 310
311 .. versionchanged:: 1.14
312
313 The Python module calls this function when it is imported so you
314 should no longer have any need to call this manually. Calling it does
315 not carry any penalty though.
316
311 """ 317 """
312 EINA_LOG_DOM_INFO(PY_EFL_ELM_LOG_DOMAIN, 318 EINA_LOG_DOM_INFO(PY_EFL_ELM_LOG_DOMAIN,
313 "Initializing efl.elementary", NULL) 319 "Initializing efl.elementary", NULL)
@@ -346,6 +352,12 @@ def shutdown():
346 is a possibility to call your ecore callbacks(timer, animator, event, 352 is a possibility to call your ecore callbacks(timer, animator, event,
347 job, and etc.) in shutdown() 353 job, and etc.) in shutdown()
348 354
355 .. versionchanged:: 1.14
356
357 The Python module calls this function when it is exiting so you
358 should no longer have any need to call this manually. Calling it does
359 not carry any penalty though.
360
349 """ 361 """
350 EINA_LOG_DOM_INFO(PY_EFL_ELM_LOG_DOMAIN, 362 EINA_LOG_DOM_INFO(PY_EFL_ELM_LOG_DOMAIN,
351 "Shutting down efl.elementary", NULL) 363 "Shutting down efl.elementary", NULL)
diff --git a/examples/elementary/test.py b/examples/elementary/test.py
index eebfc0f..72d8ee7 100755
--- a/examples/elementary/test.py
+++ b/examples/elementary/test.py
@@ -19,6 +19,9 @@ eolog.setLevel(logging.INFO)
19evaslog = logging.getLogger("efl.evas") 19evaslog = logging.getLogger("efl.evas")
20evaslog.setLevel(logging.INFO) 20evaslog.setLevel(logging.INFO)
21 21
22elmlog = logging.getLogger("efl.elementary")
23elmlog.setLevel(logging.INFO)
24
22from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH 25from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
23from efl import elementary 26from efl import elementary
24from efl.elementary.window import StandardWindow 27from efl.elementary.window import StandardWindow