Ignore:
Timestamp:
06/29/10 11:31:19 (11 years ago)
Author:
sc
Message:

brainstorms:

  • comprehensive file and class renaming in response to conversions

from PyGame/Twisted? frameworks to Qt

File:
1 copied

Legend:

Unmodified
Added
Removed
  • remote_control/puzzlebox_brainstorms_client_interface_pygame.py

    r71 r73  
    22# -*- coding: utf-8 -*- 
    33# 
    4 # Puzzlebox - Brainstorms - Client Interface 
     4# Puzzlebox - Brainstorms - Client Interface - Pygame 
    55# 
    66# Copyright Puzzlebox Productions, LLC (2010) 
     
    99# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1010# 
    11 # Last Update: 2010.06.10 
     11# Last Update: 2010.06.28 
    1212# 
    1313##################################################################### 
     
    2323 
    2424import puzzlebox_brainstorms_configuration as configuration 
    25 import puzzlebox_brainstorms_client as client 
    26 import puzzlebox_brainstorms_client_interface_component as component 
    27 import puzzlebox_brainstorms_client_interface_button as interface_button 
     25import puzzlebox_brainstorms_client_twisted as client 
     26import puzzlebox_brainstorms_client_interface_pygame_component as component 
     27import puzzlebox_brainstorms_client_interface_pygame_button as interface_button 
    2828#import puzzlebox_logger 
    2929 
     
    3636FLIP = 1 
    3737 
    38 DISCRETE_CONTROL_COMMANDS = configuration.DISCRETE_CONTROL_COMMANDS 
    39  
    40 SERVER_HOST = configuration.SERVER_HOST 
    41 SERVER_PORT = configuration.SERVER_PORT 
    42  
    43 DISPLAY_WINDOW_X_COORDINATE = configuration.DISPLAY_WINDOW_X_COORDINATE 
    44 DISPLAY_WINDOW_Y_COORDINATE = configuration.DISPLAY_WINDOW_Y_COORDINATE 
    45 DISPLAY_WINDOW_X_DIMENSION = configuration.DISPLAY_WINDOW_X_DIMENSION 
    46 DISPLAY_WINDOW_Y_DIMENSION = configuration.DISPLAY_WINDOW_Y_DIMENSION 
    47  
    48 WINDOW_BACKGROUND_COLOR = configuration.WINDOW_BACKGROUND_COLOR 
    49  
    50 IMAGE_DIRECTORY = configuration.IMAGE_DIRECTORY 
    51  
    52 BUTTON_LAYOUT = configuration.BUTTON_LAYOUT 
     38DISCRETE_CONTROL_COMMANDS = configuration.BRAINSTORMS_DISCRETE_CONTROL_COMMANDS 
     39 
     40SERVER_HOST = configuration.BRAINSTORMS_SERVER_HOST 
     41SERVER_PORT = configuration.BRAINSTORMS_SERVER_PORT 
     42 
     43MAX_CONNECTION_ATTEMPTS = configuration.TWISTED_CLIENT_MAX_CONNECTION_ATTEMPTS 
     44 
     45DISPLAY_WINDOW_X_COORDINATE = configuration.CLIENT_PYGAME_DISPLAY_WINDOW_X_COORDINATE 
     46DISPLAY_WINDOW_Y_COORDINATE = configuration.CLIENT_PYGAME_DISPLAY_WINDOW_Y_COORDINATE 
     47DISPLAY_WINDOW_X_DIMENSION = configuration.CLIENT_PYGAME_DISPLAY_WINDOW_X_DIMENSION 
     48DISPLAY_WINDOW_Y_DIMENSION = configuration.CLIENT_PYGAME_DISPLAY_WINDOW_Y_DIMENSION 
     49 
     50WINDOW_BACKGROUND_COLOR = configuration.CLIENT_PYGAME_WINDOW_BACKGROUND_COLOR 
     51 
     52IMAGE_DIRECTORY = configuration.CLIENT_PYGAME_IMAGE_DIRECTORY 
     53 
     54BUTTON_LAYOUT = configuration.CLIENT_PYGAME_BUTTON_LAYOUT 
    5355 
    5456##################################################################### 
     
    5658##################################################################### 
    5759 
    58 class puzzlebox_brainstorms_client_interface( \ 
    59          component.puzzlebox_brainstorms_client_interface_component, \ 
    60          client.puzzlebox_brainstorms_client): 
     60class puzzlebox_brainstorms_client_interface_pygame( \ 
     61         component.puzzlebox_brainstorms_client_interface_pygame_component, \ 
     62         client.puzzlebox_brainstorms_client_twisted): 
    6163         
    6264        def __init__(self, log, \ 
     
    7779                self.window_background_color = window_background_color 
    7880                 
    79                 self.server_host = configuration.SERVER_HOST 
    80                 self.server_port = configuration.SERVER_PORT 
    81                 self.max_connection_attempts = configuration.MAX_CONNECTION_ATTEMPTS 
     81                self.server_host = SERVER_HOST 
     82                self.server_port = SERVER_PORT 
     83                self.max_connection_attempts = MAX_CONNECTION_ATTEMPTS 
    8284                 
    8385                if (os.name == "nt") or (os.name == "dos"): 
     
    208210                         
    209211                        new_button = \ 
    210                            interface_button.puzzlebox_brainstorms_client_interface_button( \ 
     212                           interface_button.puzzlebox_brainstorms_client_interface_pygame_button( \ 
    211213                                   self.pygame, \ 
    212214                                   self.screen, \ 
Note: See TracChangeset for help on using the changeset viewer.