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:
24
mvc/main_window.py
Normal file
24
mvc/main_window.py
Normal 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
|
||||
Reference in New Issue
Block a user