kuuko pushed a commit to branch master.
commit 82a3131a5abb98fc7c213adc33f7b5769d56c00d
Author: Kai Huuhko <[email protected]>
Date: Fri Aug 2 13:15:42 2013 +0000
elementary MultibuttonEntry: Add a print button to the example.
---
examples/elementary/test_multibuttonentry.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/examples/elementary/test_multibuttonentry.py
b/examples/elementary/test_multibuttonentry.py
index eb449f8..58a524e 100644
--- a/examples/elementary/test_multibuttonentry.py
+++ b/examples/elementary/test_multibuttonentry.py
@@ -52,6 +52,10 @@ def cb_filter1(mbe, text):
print(text)
return True
+def cb_print(btn, mbe):
+ for i in mbe.items:
+ print(i.text)
+
def multibuttonentry_clicked(obj, item=None):
win = Window("multibuttonentry", elementary.ELM_WIN_BASIC)
win.title_set("MultiButtonEntry test")
@@ -166,6 +170,14 @@ def multibuttonentry_clicked(obj, item=None):
hbox.pack_end(bt)
bt.show()
+ bt = Button(win)
+ bt.text = "print"
+ bt.size_hint_align = evas.EVAS_HINT_FILL, 0.0
+ bt.size_hint_weight = evas.EVAS_HINT_EXPAND, 0.0
+ bt.callback_clicked_add(cb_print, mbe)
+ hbox.pack_end(bt)
+ bt.show()
+
mbe.focus = True
win.resize(320, 320)
win.show()
--
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk