/[ascend]/branches/adrian/pygtk/unitsdialog.py
ViewVC logotype

Diff of /branches/adrian/pygtk/unitsdialog.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2975 by adrian, Wed Apr 1 10:57:31 2015 UTC revision 2976 by adrian, Sat Jun 20 12:06:24 2015 UTC
# Line 51  class UnitsDialog: Line 51  class UnitsDialog:
51          self.T = T          self.T = T
52          if T is not None:          if T is not None:
53              if T.isRefinedReal():              if T.isRefinedReal():
54                  self.typecombo.get_child().set_text(str(T.getName()))                  self.typecombo.append_text(str(T.getName()))
55          self.update_typecombo()          self.update_typecombo()
56    
57      def unitsview_row_toggled(self,widget,path,*args):      def unitsview_row_toggled(self,widget,path,*args):
# Line 120  class UnitsDialog: Line 120  class UnitsDialog:
120          self.update_typecombo(s)          self.update_typecombo(s)
121          #self.browser.reporter.reportNote("value changed to '%s'" % s)          #self.browser.reporter.reportNote("value changed to '%s'" % s)
122          try:          try:
123              T = self.browser.library.findType(widget.get_active_text())              T = self.browser.library.findType(s)
124              dt = str(T.getDimensions())              dt = str(T.getDimensions())
125              self.dimensionlabel.set_text(dt)              self.dimensionlabel.set_text(dt)
126          except:          except:

Legend:
Removed from v.2975  
changed lines
  Added in v.2976

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