def _action_button_add(self, label, callback, state):
     btn = Button(self._pop)
     btn.text_set(label)
     btn.callback_clicked_add(callback, state)
     btn.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
     btn.size_hint_weight_set(0.0, 0.0)
     self.actions_box.pack_end(btn)
     btn.show()
     return btn
Beispiel #2
0
 def action_add(self, label, func_cb, data=None):
     btn = Button(self)
     btn.text_set(label)
     btn.data["clicked"] = (func_cb, data)
     btn.callback_clicked_add(self._action_btn_clicked)
     btn.size_hint_min_set(100, 30)
     btn.size_hint_max_set(100, 30)
     btn.show()
     self.box.pack_end(btn)
Beispiel #3
0
 def action_add(self, label, func_cb, data=None):
     btn = Button(self)
     btn.text_set(label)
     btn.data["clicked"] = (func_cb, data)
     btn.callback_clicked_add(self._action_btn_clicked)
     btn.size_hint_min_set(100, 30)
     btn.size_hint_max_set(100, 30)
     btn.show()
     self.box.pack_end(btn)
Beispiel #4
0
 def _action_button_add(self, label, callback, state):
     btn = Button(self._pop)
     btn.text_set(label)
     btn.callback_clicked_add(callback, state)
     btn.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
     btn.size_hint_weight_set(0.0, 0.0)
     self.actions_box.pack_end(btn)
     btn.show()
     return btn
Beispiel #5
0
 def action_add(self, label, func_cb, data=None):
     btn = Button(self._parent)
     self._action_btns.append(btn)
     btn.text_set(label)
     btn.callback_clicked_add(self._action_btn_clicked)
     btn.size_hint_weight_set(1.0, 1.0)
     btn.size_hint_align_set(-1.0, -1.0)
     btn.data["clicked"] = (func_cb, data)
     btn.show()
     self.edje_get().part_box_append("actions", btn)
Beispiel #6
0
 def action_add(self, label, func_cb, data=None):
     btn = Button(self._parent)
     self._action_btns.append(btn)
     btn.text_set(label)
     btn.callback_clicked_add(self._action_btn_clicked)
     btn.size_hint_weight_set(1.0, 1.0)
     btn.size_hint_align_set(-1.0, -1.0)
     btn.data["clicked"] = (func_cb, data)
     btn.show()
     self.edje_get().part_box_append("actions", btn)