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

Diff of /trunk/pygtk/interface/diagnose.py

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

revision 287 by johnpye, Thu Feb 9 23:56:11 2006 UTC revision 290 by johnpye, Fri Feb 10 03:30:05 2006 UTC
# Line 246  class DiagnoseWindow: Line 246  class DiagnoseWindow:
246          self.set_block(self.block + 1)          self.set_block(self.block + 1)
247    
248      def on_prevbutton_clicked(self,*args):      def on_prevbutton_clicked(self,*args):
249          self.set_block(self.block - 1)                self.set_block(self.block - 1)  
250    
251        def on_prevbigbutton_clicked(self,*args):
252            b = self.block - 1
253            while b > 0:
254                rl,cl,rh,ch = self.im.getBlockLocation(b)
255                if rh-rl > 0 or ch-cl>0:
256                    self.set_block(b)
257                b = b - 1
258            print "NO PRECEDING 'BIG' BLOCKS"
259            
260        def on_nextbigbutton_clicked(self,*args):
261            b = self.block + 1
262            n = self.im.getNumBlocks()
263            while b < n:
264                rl,cl,rh,ch = self.im.getBlockLocation(b)
265                if rh-rl > 0 or ch-cl>0:
266                    self.set_block(b)
267                b = b + 1
268            print "NO FOLLOWING 'BIG' BLOCKS"
269        
270      def on_blockentry_key_press_event(self,widget,event):      def on_blockentry_key_press_event(self,widget,event):
271          keyname = gtk.gdk.keyval_name(event.keyval)          keyname = gtk.gdk.keyval_name(event.keyval)
272          print "KEY ",keyname          print "KEY ",keyname

Legend:
Removed from v.287  
changed lines
  Added in v.290

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