class UserPage(TimeLineBasePage): def __init__(self): TimeLineBasePage.__init__(self) self.controller = UserController() self.icon = 'face-smile' self.description = 'User Tweets' def set_user(self, screen_name): self.controller.screen_name = screen_name def show_user_tweets(self): def pipeline_work(): self.controller.refresh() gtk.threads_enter() self.list.refresh(self.controller.items) TabManager().switch_to_if_current(self) gtk.threads_leave() Pipeline().add_handler(pipeline_work, 'fetching user timeline...') idx, page = TabManager().find_tab(UserPage) TabManager().switch_to(idx) def on_refresh(self): pass
def __init__(self): TimeLineBasePage.__init__(self) self.controller = UserController() self.icon = 'face-smile' self.description = 'User Tweets'