source: remote_control/puzzlebox_brainstorms_client_interface_network.py @ 103

Last change on this file since 103 was 87, checked in by sc, 11 years ago

remote_control/puzzlebox_brainstorms_network_client_thinkgear.py:

  • adjustment to debug output for clarity

remote_control/puzzlebox_brainstorms_network_client.py:

  • warning output on timeout waiting for server connections
  • adjustment to debug output for clarity

remote_control/puzzlebox_brainstorms_remote_control.py:

  • adjustment to debug output for clarity

remote_control/puzzlebox_brainstorms_client_interface.py:

  • forward driving halted when disconnected from ThinkGear? server
  • keyboard shortcuts added to direction buttons
  • virtual button presses drawn when driving activated by direction
  • better handling of speed changes in updateSpeed
  • speed dropped to 100 if NXT power threshold exceeded

remote_control/puzzlebox_brainstorms_configuration.ini:

  • ThinkGear? Connect Server Emulator configuration added
  • default Relaxation speed boosts tweaked

remote_control/interface/qt4_form.py:

  • faulty keyboard shortcuts removed

remote_control/puzzlebox_brainstorms_configuration.py:

  • ThinkGear? Connect Server Emulator configuration
  • default Relaxation speed boosts tweaked

remote_control/puzzlebox_brainstorms_client_interface_network.py:

  • initial checkin

remote_control/puzzlebox_brainstorms_client_interface_local.py:

  • initial checking
  • not properly establishing client/server communications

remote_control/puzzlebox_brainstorms_network_server_thinkgear.py

  • adjustment to debug output for clarity
  • some configuration settings moved to configuration module

remote_control/puzzlebox_brainstorms_network_server.py:

  • adjustment to debug output for clarity
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#
4# Puzzlebox - Brainstorms - Client Interface - Qt - Network
5#
6# Copyright Puzzlebox Productions, LLC (2010)
7#
8# This code is released under the GNU Pulic License (GPL) version 2
9# For more information please refer to http://www.gnu.org/copyleft/gpl.html
10#
11# Last Update: 2010.07.06
12#
13#####################################################################
14
15import os, sys
16
17#try:
18        #from PySide import QtGui
19#except:
20        #print "Using PyQt4 module"
21        #from PyQt4 import QtGui
22#else:
23        #print "Using PySide module"
24
25from PyQt4 import QtGui
26#from PySide import QtGui
27
28
29import puzzlebox_brainstorms_client_interface as client_interface
30#import puzzlebox_logger
31
32#####################################################################
33# Globals
34#####################################################################
35
36DEBUG = 1
37
38#####################################################################
39# Classes
40#####################################################################
41
42#####################################################################
43# Functions
44#####################################################################
45
46#####################################################################
47# Main
48#####################################################################
49
50if __name__ == '__main__':
51       
52        #log = puzzlebox_logger.puzzlebox_logger(logfile='client_interface')
53        log = None
54       
55        #for each in sys.argv:
56               
57                #if each.startswith("--host="):
58                        #server_host = each[ len("--host="): ]
59                #if each.startswith("--port="):
60                        #server_port = each[ len("--port="): ]
61       
62        app = QtGui.QApplication(sys.argv)
63       
64        window = client_interface.puzzlebox_brainstorms_client_interface(log, DEBUG)
65        window.show()
66       
67        sys.exit(app.exec_())
68
69
Note: See TracBrowser for help on using the repository browser.