Well we can give you a simple example. The view is an adaption of the Schema, and which then has its content set (see the last blog about this topic). The view can be built by adapting each of the schemas fields into a gui element, exactly as you would build a web form.
Say you have an attribute defined as a zope.schema.Text, and you wanted an editor field. Well simply, using pygtk:
from zope.interface import implements, Interface, Attribute
from zope.component import adapts, provideAdapter
from zope.schema import Text
"""display the value"""
def __init__(self, field):
self._field = field
def write(self, value):
Now everything is set up to adapt the field to a widget.
name = Text(title=u'The name of something')
<TextWidget object (GtkEntry) at 0xb715f16c>
Yay! Now you have everything you need to create a gui from a zope object.