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

Diff of /trunk/pygtk/gtkbrowser.py

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

revision 848 by johnpye, Fri Aug 4 07:45:18 2006 UTC revision 849 by johnpye, Mon Sep 18 15:10:48 2006 UTC
# Line 1088  class Browser: Line 1088  class Browser:
1088          _dialog.run()          _dialog.run()
1089    
1090      def create_observer(self,name=None):      def create_observer(self,name=None):
         if name==None:  
             name="New Observer"  
   
1091          _xml = gtk.glade.XML(self.glade_file,"observervbox");          _xml = gtk.glade.XML(self.glade_file,"observervbox");
1092          _label = gtk.Label();          _label = gtk.Label();
         _label.set_text(name)  
1093          _tab = self.maintabs.append_page(_xml.get_widget("observervbox"),_label);          _tab = self.maintabs.append_page(_xml.get_widget("observervbox"),_label);
1094          self.observers.append(ObserverTab(_xml, name, self, _tab))          _obs = ObserverTab(xml=_xml, name=name, browser=self, tab=_tab)
1095            _label.set_text(_obs.name)
1096            self.observers.append(_obs)
1097            return _obs
1098            
1099      def sync_observers(self):      def sync_observers(self):
1100          for _o in self.observers:          for _o in self.observers:

Legend:
Removed from v.848  
changed lines
  Added in v.849

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