next up previous contents
Next: The implementation without glade Up: The implementation glade-based Previous: The controller   Contents

The main code

Main code is pretty trivial:

   
# This is file main_glade.py
import gtk
from model import MyModel
from ctrl_glade import MyController
from view_glade import MyView

m = MyModel()
c = MyController(m)
v = MyView(c)

gtk.main()

A triple MVC is created, and main loop is started.



Roberto Cavada 2008-08-26