def __init__(self, parent): Widget.__init__(self) self.obj = elementary.Hoversel(parent) self.obj.hover_parent_set(parent) self.obj.style_set("editje") self.obj.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) self.obj.size_hint_align_set(evas.EVAS_HINT_FILL, 0.0) self.obj.show() self.items = []
def __init__(self, parent): Widget.__init__(self) self.parent = parent self.obj = elementary.Button(parent) self.obj.size_hint_weight_set(1.0, 0.0) self.obj.size_hint_align_set(-1.0, 0.0) self.obj.style_set("editje.details") self.obj.callback_clicked_add(self._clicked) self.obj.show() self._value = ""
def __init__(self, parent): Widget.__init__(self) WidgetEntryValidator.__init__(self) self._value = "" self.entry = elementary.ScrolledEntry(parent) self.entry.single_line_set(True) self.entry.style_set("editje.details") self.entry.size_hint_weight_set(1.0, 0.0) self.entry.size_hint_align_set(-1.0, -1.0) self.entry.context_menu_disabled_set(True) self.entry.callback_activated_add(self._entry_activate_cb) self.entry.callback_changed_add(self._entry_changed_cb) self.entry.callback_double_clicked_add(self._dblclick_cb) self.entry.callback_focused_add(self._focused_cb) self.entry.callback_unfocused_add(self._unfocused_cb) self.entry.show() self.obj = self.entry
def __init__(self, parent): Widget.__init__(self) WidgetEntryValidator.__init__(self) self._value = "" self.entry = elementary.Entry(parent) self.entry.scrollable_set(True) self.entry.single_line_set(True) self.entry.style_set("editje.details") self.entry.size_hint_weight_set(1.0, 0.0) self.entry.size_hint_align_set(-1.0, -1.0) self.entry.context_menu_disabled_set(True) self.entry.callback_activated_add(self._entry_activate_cb) self.entry.callback_changed_add(self._entry_changed_cb) self.entry.callback_double_clicked_add(self._dblclick_cb) self.entry.callback_focused_add(self._focused_cb) self.entry.callback_unfocused_add(self._unfocused_cb) self.entry.show() self.obj = self.entry