Attached is a simple test to demonstrate this.
I get this output:
Entry object is Entry(name=%r, geometry=(8, 192, 384, 30), color=(255,
255, 255, 255), layer=0, clip=True, visible=True)
We should have event_info here: ()
Wed, 4 Apr 2012 09:36:26 +0900
Daniel Juyung Seo <seojuyu...@gmail.com> kirjoitti:
> Thanks for the report but can you attach any test code?
> I can't reproduce it and at least I got event_info with
> "anchor,clicked" callback in entry.
> Thanks.
>
> Daniel Juyung Seo (SeoZ)
>
> On Wed, Apr 4, 2012 at 1:15 AM, Kai Huuhko <kai.huu...@gmail.com>
> wrote:
> > The event signal for "anchor, clicked" isn't passing event_info to
> > the callback. I believe callback_anchor_clicked_add should have a
> > conversion function and use it with _callback_add_full.
> >
> > This seems to be the case for the other anchor signals as well.
> >
#!/usr/bin/python
from elementary import *
class Test(Window):
def __init__(self):
Window.__init__(self, "entry-test", ELM_WIN_BASIC)
self.title_set("Entry test")
self.callback_destroy_add(self.quit)
bg = Background(self)
bg.size_hint_weight_set(1.0, 1.0)
self.resize_object_add(bg)
bg.show()
box = Box(self)
box.size_hint_weight_set(1.0, 1.0)
self.resize_object_add(box)
entry = Entry(self)
entry.text_set("<a href=url:http://www.enlightenment.org/>Enlightenment</a>")
entry.callback_anchor_clicked_add(self.anchor_clicked)
entry.show()
frame = Frame(self)
frame.size_hint_align_set(-1.0, -1.0)
frame.text_set("Entry test")
frame.content_set(entry)
frame.show()
box.pack_end(frame)
box.show()
self.resize(400, 400)
self.show()
def anchor_clicked(self, obj, *args):
print("Entry object is %s" % (obj))
print("We should have event_info here: %s" % (str(args)))
def quit(self, *args):
exit()
if __name__ == "__main__":
init()
test = Test()
run()
shutdown()
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel