/usr/share/doc/python-gtkmvc-doc/examples/userman/view.py is in python-gtkmvc-doc 1.99.1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import os.path
import _importer # this is an helper to import gtkmvc
from gtkmvc import View
GLADE_PATH = "./"
class ExampleView (View):
"""The application view. Contains only the main window1 tree."""
builder = os.path.join(GLADE_PATH, "example.glade")
top = "window1"
def set_msg(self, msg):
self['label_text'].set_text(msg)
self['label_text_len'].set_text(str(len(msg)))
return
pass # end of class
|