/[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 293 by johnpye, Fri Feb 10 03:32:21 2006 UTC revision 294 by johnpye, Thu Feb 16 02:53:56 2006 UTC
# Line 41  class DiagnoseWindow: Line 41  class DiagnoseWindow:
41          self.relbuf = gtk.TextBuffer()          self.relbuf = gtk.TextBuffer()
42          self.relview.set_buffer(self.relbuf)          self.relview.set_buffer(self.relbuf)
43    
44            self.im = None
45          self.block = 0          self.block = 0
46            self.apply_prefs()
47    
48          self.prepare_data()          self.prepare_data()
49          self.fill_values(block) # block zero          self.fill_values(block) # block zero
50    
# Line 49  class DiagnoseWindow: Line 52  class DiagnoseWindow:
52          self.window.run()          self.window.run()
53          self.window.hide()          self.window.hide()
54    
55        def apply_prefs(self):
56            vc = self.browser.prefs.getBoolPref("Diagnose","varcollapsed")
57            print "VARCOLLAPSED =",vc
58            self.varcollapsed.set_active(vc)
59            self.relcollapsed.set_active(self.browser.prefs.getBoolPref("Diagnose","relcollapsed"))
60    
61      def prepare_data(self):      def prepare_data(self):
62          # convert incidence map to pylab numarray type:          # convert incidence map to pylab numarray type:
63          print "PREPARING DATA"          print "PREPARING DATA"
# Line 235  class DiagnoseWindow: Line 244  class DiagnoseWindow:
244      # GUI EVENT HOOKS-----------------------------------------------------------      # GUI EVENT HOOKS-----------------------------------------------------------
245    
246      def on_varcollapsed_toggled(self,*args):      def on_varcollapsed_toggled(self,*args):
247          print "COLLAPSED-TOGGLED"          vc = self.varcollapsed.get_active()
248          self.fill_var_names()          self.browser.prefs.setBoolPref("Diagnose","varcollapsed",vc)    
249            if self.im:
250                self.fill_var_names()
251    
252      def on_relcollapsed_toggled(self,*args):      def on_relcollapsed_toggled(self,*args):
253          print "COLLAPSED-TOGGLED"          rc = self.varcollapsed.get_active()
254          self.fill_rel_names()          self.browser.prefs.setBoolPref("Diagnose","relcollapsed",rc)    
255            if self.im:
256                self.fill_rel_names()
257    
258      def on_nextbutton_clicked(self,*args):      def on_nextbutton_clicked(self,*args):
259          self.set_block(self.block + 1)          self.set_block(self.block + 1)

Legend:
Removed from v.293  
changed lines
  Added in v.294

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