Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (20 sloc) 640 Bytes
from twisted.internet import reactor, protocol
import sys
import pygame
from handler import Handler
# this connects the protocol to a server runing on port 8000
def main():
addr = "localhost"
if len(sys.argv) > 1:
addr = sys.argv[1]
pygame.display.set_caption("Iron Trotter")
width, height = 0, 0
screen = pygame.display.set_mode((width, height))
h = Handler(screen)
reactor.connectTCP(addr, 8000, h.f)
# this only runs if the module was *not* imported
if __name__ == '__main__':
Something went wrong with that request. Please try again.