hi all, Whether the edje.Edje.part_swallow() can't swallow a evas object , the code is :
self.meeting_menu = Meeting_ui(self.ee.evas) self.main_group.part_swallow("sub_menu_contents",self.meeting_menu) File "edje.c_edje_object.pxi", line 406, in edje.c_edje.Edje.part_swallow TypeError: Argument 'obj' has incorrect type (expected evas.c_evas.Object, got meeting_ui) I don't know why? the class as following: class Meeting_ui(object): def __init__(self, evas): self.evas = evas self.edje_file = os.path.join(os.path.dirname(sys.argv[0]), "default.edj") try: self.main_group = edje.Edje(self.evas, file=self.edje_file, group="sub_menu") except edje.EdjeLoadError, e: raise SystemExit("Error loading %s (%s)" % (self.edje_file, e)) self.history_item=edje.Edje(self.evas, file=self.edje_file, group="icon/main_item/history") self.today_item=edje.Edje(self.evas, file=self.edje_file, group="icon/main_item/today") self.future_item=edje.Edje(self.evas, file=self.edje_file, group="icon/main_item/future") ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel