Slightly corrected about view
[findit] / src / mvc / views / about.py
1 from gtkmvc import View
2 import gtk
3
4
5 class AboutView(View):
6     """This is the view for the 'About' dialog"""
7
8     def __init__(self, ctrl):
9         View.__init__(self, ctrl, register=False)
10
11         self['dialog_about'] = gtk.AboutDialog()
12         ctrl.register_view(self)
13
14         return
15
16     def set_progname(self, text):
17         self['dialog_about'].set_name(text)
18         return
19
20     def set_version(self, text):
21         self['dialog_about'].set_version(text)
22         return
23
24     def set_authors(self, text):
25         self['dialog_about'].set_authors(text)
26         return
27
28     def set_comments(self, text):
29         self['dialog_about'].set_comments(text)
30         return
31
32     def set_license(self, text):
33         self['dialog_about'].set_license(text)
34         return
35
36     def run(self):
37         res = self['dialog_about'].run()
38         self['dialog_about'].destroy()
39         return res
40
41     pass # end of class