#! /usr/bin/env python from init.init import init from loop.loop import loop from init.state import state_entire from postProc.postProcess import postProcess #Run the rest of the program if the initialization is sucessful. print "Anod Board UI program running..." state = state_entire().progState state = init() if (state == False): print "Erorr: main.py did not recieve state from init.py" else: dFile = loop(state) postProcess(dFile)
# Copyright (c) 2007 Enough Project. # See LICENSE for details. from __future__ import with_statement import pygame import contextlib from gui import draw from gui.main import pygame_display from lib.graph import Node, Edge res = (800, 600) with pygame_display(res, pygame.DOUBLEBUF) as display: from loop import loop from GraphWidget import GraphWidget from BrowserWidget import BrowserWidget loop.browser = BrowserWidget(GraphWidget((800,400))) import pygame pygame.key.set_repeat(250,10) loop.loop(display, loop.browser)