/[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 270 by johnpye, Sat Feb 4 08:00:21 2006 UTC revision 271 by johnpye, Sat Feb 4 09:08:54 2006 UTC
# Line 862  class Browser: Line 862  class Browser:
862    
863      def on_treeview_event(self,widget,event):      def on_treeview_event(self,widget,event):
864          _contextmenu = False;          _contextmenu = False;
865          if event.type==gtk.gdk.KEY_PRESS:          if event.type==gtk.gdk.KEY_PRESS and gtk.gdk.keyval_name(event.keyval)=='Menu':
866              if gtk.gdk.keyval_name(event.keyval)=='Menu':              _contextmenu = True
867                  _contextmenu = True              _path, _col = self.treeview.get_cursor()
868                  _path, _col = self.treeview.get_cursor()              _button = 3;
                 _button = 3;  
869          elif event.type==gtk.gdk.BUTTON_PRESS:          elif event.type==gtk.gdk.BUTTON_PRESS:
870              if event.button == 3:              if event.button == 3:
871                  _contextmenu = True                  _contextmenu = True
# Line 957  class Browser: Line 956  class Browser:
956              _dia = VarPropsWin(GLADE_FILE,self,_instance);              _dia = VarPropsWin(GLADE_FILE,self,_instance);
957              _dia.run();              _dia.run();
958          else:          else:
959              self.reporter.reportWarning("props_activate not implemented")              self.reporter.reportWarning("Select a variable first...")
960    
961      def observe_activate(self,widget):      def observe_activate(self,widget):
962          _path,_col = self.treeview.get_cursor()          _path,_col = self.treeview.get_cursor()

Legend:
Removed from v.270  
changed lines
  Added in v.271

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