示例#1
0
 def message_receiver(self, *message):
     message_type, contents = message
     if message_type == 'send_plug_id':
         self.plug_id = int(str(contents[1]))
         self.content_page.add_plug_id(self.plug_id)
         self.plug_status = True
         self.start_loading()
     elif message_type == 'loading_uri_finish':
         fetch_service.add_missions([self.download_task])
     elif message_type == 'enter_bottom':
         if self.show_bottom:
             self.paned_box.bottom_window.show()
     elif message_type == 'enter_top':
         if self.show_top:
             self.paned_box.top_window.show()
     elif message_type == 'onload_loading':
         self.start_download_swf()
     elif message_type == 'game_action':
         if contents == 'pause':
             self.command_pause_game()
示例#2
0
 def message_receiver(self, *message):
     message_type, contents = message
     if message_type == 'send_plug_id':
         self.plug_id = int(str(contents[1]))
         self.content_page.add_plug_id(self.plug_id)
         self.plug_status = True
         self.start_loading()
     elif message_type == 'loading_uri_finish':
         fetch_service.add_missions([self.download_task])
     elif message_type == 'enter_bottom':
         if self.show_bottom:
             self.paned_box.bottom_window.show()
     elif message_type == 'enter_top':
         if self.show_top:
             self.paned_box.top_window.show()
     elif message_type == 'onload_loading':
         self.start_download_swf()
     elif message_type == 'game_action':
         if contents == 'pause':
             self.command_pause_game()
 def start_download(self):
     fetch_service.add_missions([self.download_task])
 def start_download(self):    
     fetch_service.add_missions([self.download_task])