self.exit_flag = True
self.lock.signal()
+ def update(self,subject=None):
+ """
+ Update the current view (e.g., make sure refresh is called). We
+ can't call it directly, since we're in another thread.
+ """
+ if self.lock:
+ self.lock.signal()
+
def refresh(self):
"""
- Update the gui after a change in model or some user interaction.
- Should be filled by subclasses.
+ Called when the current view must be updated. Never call
+ directly. Subclasses should extend this method, not update.
"""
appuifw.app.menu=self.get_menu_entries()
"""
pass
- def update(self,subject=None):
- #logger.log(u'Updated %s'%repr(self))
- if self.lock:
- self.lock.signal()
- #pass
-
def index_changed(self,adjustment=None):
if adjustment:
index = self.selected_index() + adjustment