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

Diff of /trunk/pygtk/diagnose.py

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

revision 2042 by jpye, Sat Jun 13 08:57:47 2009 UTC revision 2071 by jose, Fri Aug 28 02:42:47 2009 UTC
# Line 196  class DiagnoseWindow: Line 196  class DiagnoseWindow:
196    
197      def fill_selection_info(self):      def fill_selection_info(self):
198          if self.var:          if self.var:
199              self.varname.set_text(self.var.getName())              #self.varname.set_text(self.var.getName())
200              self.varval.set_text(str(self.var.getValue()))              self.varval.set_text(str(self.var.getValue()))
201              self.varinfobutton.set_sensitive(True)              self.varinfobutton.set_sensitive(True)
202          else:          else:
# Line 230  class DiagnoseWindow: Line 230  class DiagnoseWindow:
230              self.zoom = MAX_ZOOM_RATIO              self.zoom = MAX_ZOOM_RATIO
231    
232          if self.zoom * self.nc > MAX_ZOOM_SIZE or self.zoom * self.nr > MAX_ZOOM_SIZE:          if self.zoom * self.nc > MAX_ZOOM_SIZE or self.zoom * self.nr > MAX_ZOOM_SIZE:
233              self.browser.reporter.reportNode("image is too big, reducing to MAX_ZOOM_SIZE = %f" % MAX_ZOOM_SIZE);              self.browser.reporter.reportNote("image is too big, reducing to MAX_ZOOM_SIZE = %f" % MAX_ZOOM_SIZE);
234              self.zoom = MAX_ZOOM_SIZE / max(self.nc,self.nr)              self.zoom = MAX_ZOOM_SIZE / max(self.nc,self.nr)
235    
236          #self.browser.reporter.reportNote("Diagnose window: matrix zoom = %f" % self.zoom)          #self.browser.reporter.reportNote("Diagnose window: matrix zoom = %f" % self.zoom)

Legend:
Removed from v.2042  
changed lines
  Added in v.2071

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