Пример #1
0
class Absolum():
    def __init__(self):
        self.welcome()

    def welcome(self):
        print "Welcome to Absolum!\n \
        * Always remember *Absolutely* Nothing is Impossible!"

# =====================================
# User Interface

    def load_gui(self):
        self._gui = Main()

    def start_gui(self):
        self._gui.start()

# =====================================
# Gerber Viewer

    def load_gerber(self):
        self._gerber_viewer = GerberViewer()
        self._gerber_viewer.create_project()
        self._gerber_viewer.open_layer_from_filename()

# =====================================
# Databases

    def load_db(self):
        pass

# =====================================
# Projects

    def create_aslan(self):
        self.aslan = Aslan()

# =====================================
# Networking

    def create_handler(self):
        self._atomic_handler = AtomicHandler()
Пример #2
0
class Absolum():
    def __init__(self):
        self.welcome()
        
    def welcome(self):
        print "Welcome to Absolum!\n \
        * Always remember *Absolutely* Nothing is Impossible!"
        
# =====================================
# User Interface 
    def load_gui(self):
        self._gui = Main()
        
    def start_gui(self):
        self._gui.start()
        
# =====================================
# Gerber Viewer
    def load_gerber(self):
        self._gerber_viewer = GerberViewer()
        self._gerber_viewer.create_project()
        self._gerber_viewer.open_layer_from_filename() 
        
# =====================================       
# Databases
    def load_db(self):
        pass
        
# =====================================
# Projects
    def create_aslan(self):
        self.aslan = Aslan()

# =====================================
# Networking
    def create_handler(self):
        self._atomic_handler = AtomicHandler()
Пример #3
0
from gui.render import CanvasRenderer

if __name__ == '__main__':
    """
    Application start sequence
    """

    logging.basicConfig(filename='debug.log', level=logging.DEBUG)
    log('Starting application ...')

    root = Tk()
    root.wm_title('Project 1')
    root.wm_protocol('WM_DELETE_WINDOW', root.quit)

    # Render the main window
    main = Main(root, MainController(), name='main')
    main.controller.set_window(main)

    # Set the initial renderer
    renderer = CanvasRenderer(main.content_area)
    renderer.set_controller(main.controller)
    main.set_renderer(renderer)

    # Register menubar components
    generate_menus(main)

    # Generate stats and options pane
    generate_options(main.options_area)
    generate_stats(main.stats_area)

    # Fill the window with main frame
Пример #4
0
 def load_gui(self):
     self._gui = Main()
Пример #5
0

if __name__ == '__main__':
    """
    Application start sequence
    """

    logging.basicConfig(filename='debug.log', level=logging.DEBUG)
    log('Starting application ...')

    root = Tk()
    root.wm_title('Project 1')
    root.wm_protocol('WM_DELETE_WINDOW', root.quit)

    # Render the main window
    main = Main(root, MainController(), name='main')
    main.controller.set_window(main)

    # Set the initial renderer
    renderer = CanvasRenderer(main.content_area)
    renderer.set_controller(main.controller)
    main.set_renderer(renderer)

    # Register menubar components
    generate_menus(main)

    # Generate stats and options pane
    generate_options(main.options_area)
    generate_stats(main.stats_area)

    # Fill the window with main frame
Пример #6
0
 def load_gui(self):
     self._gui = Main()