/[ascend]/trunk/pygtk/unitsdialog.py
ViewVC logotype

Contents of /trunk/pygtk/unitsdialog.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1698 - (show annotations) (download) (as text)
Fri Jan 4 07:50:28 2008 UTC (12 years, 1 month ago) by jpye
File MIME type: text/x-python
File size: 380 byte(s)
some work in adding 'units dialog' for outputting available units of measurement.
1
2 import gtk, gtk.glade, pango
3
4 class UnitsDialog:
5
6 def __init__(self,browser,parent=None):
7 self.browser = browser;
8
9 # GUI config
10 _xml = gtk.glade.XML(browser.glade_file,"unitsdialog")
11 self.window = _xml.get_widget("unitsdialog")
12
13 self.parent = parent
14 if parent:
15 self.window.set_transient_for(self.parent)
16
17 def run(self):
18 self.window.run()
19 self.window.hide()
20

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22