davemds pushed a commit to branch master. http://git.enlightenment.org/apps/espionage.git/commit/?id=771f0616daf7cb5e2e71e2ad4bd11df00676d756
commit 771f0616daf7cb5e2e71e2ad4bd11df00676d756 Author: davemds <[email protected]> Date: Sat Aug 9 23:35:38 2014 +0200 Fix the signal popup to actually show up ...a scrollable Entry as Popup content... need the table+rect hack to respect minsize --- espionage/espionage.py | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/espionage/espionage.py b/espionage/espionage.py index 4afc3fb..7203620 100644 --- a/espionage/espionage.py +++ b/espionage/espionage.py @@ -48,6 +48,11 @@ from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass, \ from efl.dbus_mainloop import DBusEcoreMainLoop +EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND +EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0 +FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL +FILL_HORIZ = EVAS_HINT_FILL, 0.5 + class Options(object): """class to contain application options""" def __init__(self): @@ -751,13 +756,22 @@ class SignalReceiver(Frame): pp = Popup(self._parent) pp.part_text_set('title,text', 'Signal content') - en = Entry(self, text = prettify_if_needed(item.data['args'])) - en.size_hint_weight = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND - en.size_hint_align = EVAS_HINT_FILL, EVAS_HINT_FILL - en.size_hint_min = 800, 800 # TODO: this should be respected :/ - en.editable = False - en.scrollable = True - pp.content = en + # good'old table+rect trick to let the entry actually show up + from efl.evas import Rectangle + tb = Table(pp) + tb.show() + pp.content = tb + + rect = Rectangle(pp.evas, size_hint_min=(200, 200), + size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH) + tb.pack(rect, 0, 0, 1, 1) + + en = Entry(self, text=prettify_if_needed(item.data['args']), + editable=False, scrollable=True, + size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH) + # en.size_hint_min=(200, 200) # THIS SHOULD WORK... but dont :/ + tb.pack(en, 0, 0, 1, 1) + en.show() bt = Button(pp, text="Close") bt.callback_clicked_add(lambda b: pp.delete()) --
