diff options
author | Kai Huuhko <kai.huuhko@gmail.com> | 2015-05-04 05:53:20 +0300 |
---|---|---|
committer | Kai Huuhko <kai.huuhko@gmail.com> | 2015-05-04 06:10:45 +0300 |
commit | 59b2e1ee598d6c412dc496dd96e0bb529c4dd88f (patch) | |
tree | aa32d5683b9c6d521a6c92b35f71e1e449e03d1e | |
parent | c03464e343508aeee7c36f09d475fdfac1c50707 (diff) |
elm.Toolbar: Note earlier changes to events and update example
See commit 61b53f24774de8690c6f1e4a8a6e55e30e514714
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | examples/elementary/test_toolbar.py | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -20,6 +20,8 @@ Changes: | |||
20 | 20 | ||
21 | * elm.List.callback_highlighted_add: Added item param to func | 21 | * elm.List.callback_highlighted_add: Added item param to func |
22 | * elm.List.callback_unhighlighted_add: Added item param to func | 22 | * elm.List.callback_unhighlighted_add: Added item param to func |
23 | * elm.Toolbar.callback_clicked_add: Added item param to func | ||
24 | * elm.Toolbar.callback_longpressed_add: Added item param to func | ||
23 | * elm.Slideshow: item_data are now a single value, instead of args/kargs, | 25 | * elm.Slideshow: item_data are now a single value, instead of args/kargs, |
24 | like is implemented in Gengrid/Genlist | 26 | like is implemented in Gengrid/Genlist |
25 | 27 | ||
diff --git a/examples/elementary/test_toolbar.py b/examples/elementary/test_toolbar.py index 28568dd..932d8ad 100644 --- a/examples/elementary/test_toolbar.py +++ b/examples/elementary/test_toolbar.py | |||
@@ -46,9 +46,10 @@ def tb_4a(obj, it, ph): | |||
46 | def tb_5(obj, it, ph): | 46 | def tb_5(obj, it, ph): |
47 | ph.file = None | 47 | ph.file = None |
48 | 48 | ||
49 | def cb_clicked(tb): | 49 | def cb_clicked(tb, it): |
50 | print("CLICKED") | 50 | print("CLICKED") |
51 | print(tb) | 51 | print(tb) |
52 | print(it) | ||
52 | 53 | ||
53 | def cb_item_focused(tb, item): | 54 | def cb_item_focused(tb, item): |
54 | print("ITEM FOCUSED") | 55 | print("ITEM FOCUSED") |