diff options
author | Kai Huuhko <kai.huuhko@gmail.com> | 2015-05-04 03:36:31 +0300 |
---|---|---|
committer | Kai Huuhko <kai.huuhko@gmail.com> | 2015-05-04 03:36:54 +0300 |
commit | e37026ec17f20fecf91145e43f9133a3131a59a1 (patch) | |
tree | acae02480a1e6482c6f67ad14af474bb98c5718f | |
parent | bc0f40e54c4790bd106b904eb0842fc46b42ee15 (diff) |
Remove init/shutdown from elm and emotion main tests
-rwxr-xr-x | examples/elementary/test.py | 2 | ||||
-rwxr-xr-x | examples/emotion/test_emotion.py | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/examples/elementary/test.py b/examples/elementary/test.py index e306cc0..0878178 100755 --- a/examples/elementary/test.py +++ b/examples/elementary/test.py | |||
@@ -309,7 +309,6 @@ def cb_filter(en, win): | |||
309 | menu_create(en.text_get(), win) | 309 | menu_create(en.text_get(), win) |
310 | 310 | ||
311 | if __name__ == "__main__": | 311 | if __name__ == "__main__": |
312 | elementary.init() | ||
313 | win = StandardWindow("test", "Python EFL test application") | 312 | win = StandardWindow("test", "Python EFL test application") |
314 | win.callback_delete_request_add(destroy, "test1", "test2", | 313 | win.callback_delete_request_add(destroy, "test1", "test2", |
315 | str3="test3", str4="test4") | 314 | str3="test3", str4="test4") |
@@ -364,4 +363,3 @@ if __name__ == "__main__": | |||
364 | win.resize(480, 480) | 363 | win.resize(480, 480) |
365 | win.show() | 364 | win.show() |
366 | elementary.run() | 365 | elementary.run() |
367 | elementary.shutdown() | ||
diff --git a/examples/emotion/test_emotion.py b/examples/emotion/test_emotion.py index 54d8cde..21ca635 100755 --- a/examples/emotion/test_emotion.py +++ b/examples/emotion/test_emotion.py | |||
@@ -48,7 +48,7 @@ class MovieWindow(edje.Edje): | |||
48 | self.part_text_set("video_alpha_txt", "alpha 255") | 48 | self.part_text_set("video_alpha_txt", "alpha 255") |
49 | self.part_drag_value_set("video_volume", 0.0, 0.5) | 49 | self.part_drag_value_set("video_volume", 0.0, 0.5) |
50 | self.part_text_set("video_volume_txt", "vol 0.50") | 50 | self.part_text_set("video_volume_txt", "vol 0.50") |
51 | 51 | ||
52 | self.part_swallow("video_swallow", self.vid) | 52 | self.part_swallow("video_swallow", self.vid) |
53 | self.data["moving"] = False | 53 | self.data["moving"] = False |
54 | self.data["resizing"] = False | 54 | self.data["resizing"] = False |
@@ -365,8 +365,6 @@ def cmdline_parse(): | |||
365 | if __name__ == "__main__"or True: | 365 | if __name__ == "__main__"or True: |
366 | options, args = cmdline_parse() | 366 | options, args = cmdline_parse() |
367 | 367 | ||
368 | elementary.init() | ||
369 | |||
370 | # elementary window | 368 | # elementary window |
371 | win = Window("test-emotion", ELM_WIN_BASIC) | 369 | win = Window("test-emotion", ELM_WIN_BASIC) |
372 | win.title_set("python-emotion test application") | 370 | win.title_set("python-emotion test application") |
@@ -414,9 +412,3 @@ if __name__ == "__main__"or True: | |||
414 | del win.data["movie_windows"] | 412 | del win.data["movie_windows"] |
415 | win.delete() | 413 | win.delete() |
416 | del scene | 414 | del scene |
417 | |||
418 | |||
419 | elementary.shutdown() | ||
420 | emotion.shutdown() | ||
421 | edje.shutdown() | ||
422 | evas.shutdown() | ||