示例#1
0
 def serialize(self):
     d = dict(self.__dict__)
     place = d.pop("place")
     for k in d.keys():
         if k.startswith("_"):
             del d[k]
         if k in self.PROP_TUPLE_ATTRS:
             d[k] = list(d[k])  # store as list
     d["place"] = place.serialize()
     return d
示例#2
0
 def on_graph_place_motion_notify(self, canvas, event, place):
     self.statusbar.pop(self.statusbarctx)
     self.statusbar.push(self.statusbarctx, str(place.serialize()))