[pygtk] [ANN] MVC-0.3.0 released
Ionutz Borcoman
borco at go.ro
Thu Jan 15 10:29:46 WST 2004
Hi,
I think it would be nice if:
1. Put somewhere a 'road-map' of the project. This way it will be easier
for the end-user (me) to know if the framework is almost-useable or it
is far from that (to me it looks useable enough, so I wonder why is the
version 0.3.0). What will it take for this to go from an alfa version
(this is what I understand from 0.3.0) to something like a beta or even
final version.
2. Reorganize the directories and add a 'setup.py' file. I think the
dirs should look like this:
- docs (as it is now)
- html
- src
- mvc
- support
- example
- glade
setup.py
I've attached to this message a basic 'setup.py' and a modified
'example.py' that works with the above dir structure even when the 'mvc'
module is not installed.
Ionutz
Roberto Cavada wrote:
> MVC Framework version 0.3.0 released.
>
> MVC is an implementation of the Model-View-Controller and Observer
> patterns for the Pygtk2 toolkit. MVC is a pattern that can be
> successfully used to design and develop well structured GUI
> applications.
>
> The MVC pattern basically helps in separating sematics and data of the
> application, from their representation. The Observer pattern is also
> embedded here. This pattern allows making separated parts independent,
> but still connected each other.
>
> About this implementation:
> - easy to understand and to use
> - makes code extremely easy to write and read
> - fully documented
> - straightly runs under many platforms (unixes, windows, solaris,
> etc.)
> - essential, it does only what it was designed for
>
> Latest version and information can be found at this URL:
> http://sra.itc.it/people/cavada/mvc/index.html
>
> Rob
-------------- next part --------------
# test if the 'mvc' module is installed
# if not, then search for the module in '../' dir
import imp
try:
imp.find_module("mvc")
except ImportError, er:
import sys
import os.path
sys.path.append(os.path.abspath('../'))
imp.find_module("mvc")
from ex_model import ExampleModel
from ex_ctrl import ExampleController
from ex_view import ExampleView
from gtk import mainloop
def main():
model = ExampleModel()
ctrl = ExampleController(model)
view = ExampleView(ctrl)
# Starts the GTK toolkit:
mainloop()
return
if __name__ == '__main__':
main()
-------------- next part --------------
#!/usr/bin/env python
from distutils.core import setup
setup(name="MVC for PyGTK2",
version="0.3.0",
description="Model-View-Controler implementation for PyGTK2",
author="Roberto Cavada",
author_email="cavada at irst.itc.it",
url="http://sra.itc.it/people/cavada/mvc/index.html",
packages=['mvc', 'mvc.support'],
)
More information about the pygtk
mailing list