1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 19:40:21 +01:00

* New version using pygtkmvc framework.

This commit is contained in:
2007-05-01 19:30:22 +00:00
parent 45859e1a3d
commit f695f82c1f
30 changed files with 2232 additions and 0 deletions

24
mvc/main_window.py Normal file
View File

@@ -0,0 +1,24 @@
# This Python file uses the following encoding: utf-8
def setup_path():
"""Sets up the python include paths to include src"""
import os.path; import sys
if sys.argv[0]:
top_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
sys.path = [os.path.join(top_dir, "src")] + sys.path
pass
return
if __name__ == "__main__":
setup_path()
from models.m_main import MainModel
from controllers.c_main import MainController
from views.v_main import MainView
m = MainModel()
c = MainController(m)
v = MainView(c)
import gtk
gtk.main()
pass