- Timestamp:
- 02/01/10 21:17:02 (13 years ago)
- Location:
- rc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rc/puzzlebox_brainstorms_client.py
r16 r17 57 57 self.target_name = target_name 58 58 self.max_connection_attempts = max_connection_attempts 59 60 61 ##################################################################62 63 #def test_drive(self):64 65 #instruction = {}66 #instruction['command'] = 'test_drive'67 68 ##self.log.debug("Requesting to hide_all_components")69 70 #return self.send_instruction(instruction)71 59 72 60 … … 299 287 300 288 return (command, data) 301 302 303 ##################################################################304 305 #def run_blocking_mcc_command(self, instruction, \306 #component={}, \307 #max_connection_attempts = MAX_CONNECTION_ATTEMPTS):308 309 #command = 'puzzlebox_master_control_client.py'310 #command = '%s %s' % (command, instruction['command'])311 312 #if 'hostname' in component.keys() and \313 #component['hostname'] != None:314 #command = '%s %s' % (command, component['hostname'])315 316 #if 'port' in component.keys() and \317 #component['port'] != None:318 #command = '%s %s' % (command, component['port'])319 320 #if 'source' in component.keys() and \321 #component['source'] != None:322 #command = '%s %s' % (command, component['source'])323 324 #if 'target' in component.keys() and \325 #component['target'] != None:326 #command = '%s %s' % (command, component['target'])327 328 #if 'information' in instruction.keys() and \329 #'window_id' in instruction['information'].keys():330 #command = '%s %s' % (command, instruction['information']['window_id'])331 332 #self.log.info("Executing external command: [%s]" % command)333 334 #result = os.popen(command, 'r').read()335 #result = result.strip()336 337 #print "MCC-CL Result:",338 #print result339 340 #return result341 289 342 290 -
rc/puzzlebox_brainstorms_client_interface.py
r15 r17 227 227 228 228 elif (event.type == pygame.locals.KEYDOWN): 229 230 #print event.dict231 229 232 230 if 'key' in event.dict.keys():
Note: See TracChangeset
for help on using the changeset viewer.