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

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

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

revision 250 by johnpye, Wed Feb 1 04:01:10 2006 UTC revision 251 by johnpye, Wed Feb 1 04:33:46 2006 UTC
# Line 56  class Browser: Line 56  class Browser:
56          #print "OPTIONS_______________:",options          #print "OPTIONS_______________:",options
57                    
58          self.observers = []          self.observers = []
59            self.clip = None
60    
61          #--------          #--------
62          # load up the preferences ini file          # load up the preferences ini file
# Line 500  class Browser: Line 501  class Browser:
501          self.observers[0].do_add_row()          self.observers[0].do_add_row()
502    
503      def on_copy_observer_matrix_click(self,*args):      def on_copy_observer_matrix_click(self,*args):
504            if self.clip == None:
505                self.clip = gtk.Clipboard()
506    
507          if len(self.observers) > 1:          if len(self.observers) > 1:
508              self.reporter.reportError("Not supported: multiple observers")              self.reporter.reportError("Not supported: multiple observers")
509              return              return
510          if len(self.observers) <= 0:          if len(self.observers) <= 0:
511              self.reporter.reportError("No observer defined!")              self.reporter.reportError("No observer defined!")
512              return              return
513          self.observers[0].copy_to_clipboard()          self.observers[0].copy_to_clipboard(self.clip)
514  #   --------------------------------------------  #   --------------------------------------------
515  #   MODULE LIST  #   MODULE LIST
516    

Legend:
Removed from v.250  
changed lines
  Added in v.251

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