From: Enlightenment S. <no-...@en...> - 2010-02-12 19:34:29
|
Log: Fix multiples popups Author: tiago Date: 2010-02-12 11:34:21 -0800 (Fri, 12 Feb 2010) New Revision: 46120 Modified: trunk/editje/editje/details_widget_partlist.py Modified: trunk/editje/editje/details_widget_partlist.py =================================================================== --- trunk/editje/editje/details_widget_partlist.py 2010-02-12 19:23:19 UTC (rev 46119) +++ trunk/editje/editje/details_widget_partlist.py 2010-02-12 19:34:21 UTC (rev 46120) @@ -30,6 +30,7 @@ WidgetButton.__init__(self, parent) self._value = None self.clicked = self._open + self._pop = None def show(self): for o in self.objs: @@ -64,6 +65,8 @@ self._pop.action_add("Cancel", self._cancel_clicked) def _open(self, bt, *args): + if self._pop: + self._pop.hide() self._pop = Floater(self.parent, self.obj) self._pop.size_min_set(self.pop_min_w, self.pop_min_h) list = elementary.List(self.parent) |