looks fine to me, hard to say what is missing, but maybe it's a bug in elm_list.
On Thu, Jan 6, 2011 at 1:16 PM, S. Bonnegent <[email protected]> wrote: > Hi, > > I have a strange behaviour with an elementary list. In a case, new item > is not display. For example with script below, if you click on "Test2", > new item "newline 3" is not display. I have to click on "Test1" to > display it. I surely missed something ... > > > #!/usr/bin/env python > import elementary > import evas > > def bt_clicked_ok(li, item): > li.item_append("newline 1") > item.delete() > li.item_append("newline 2") > > def bt_clicked_ko(li, item): > item.delete() > li.item_append("newline 3") > > if __name__ == "__main__": > def destroy(obj): > elementary.exit() > > elementary.init() > win = elementary.Window("test", elementary.ELM_WIN_BASIC) > win.title_set("List") > win.callback_destroy_add(destroy) > > bg = elementary.Background(win) > win.resize_object_add(bg) > bg.show() > > box0 = elementary.Box(win) > win.resize_object_add(box0) > box0.show() > > li = elementary.List(win) > li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) > li.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) > box0.pack_end(li) > li.show() > > li.item_append("Test1", callback=bt_clicked_ok) > li.item_append("Test2", callback=bt_clicked_ko) > > li.go() > > win.resize(250,200) > win.show() > elementary.run() > elementary.shutdown() > > > > > > -- > GNU/Linux, il y a moins bien mais c'est plus cher :) > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > enlightenment-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
