[Bio] / PyGUI / Catalogpanel.py Repository:
ViewVC logotype

Diff of /PyGUI/Catalogpanel.py

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

revision 1.16, Wed Nov 12 22:56:33 2003 UTC revision 1.20, Fri Dec 19 15:46:52 2003 UTC
# Line 63  Line 63 
63          EVT_RIGHT_DOWN(self.parent.catalog_tree, self.onRightClickCatalogTree)          EVT_RIGHT_DOWN(self.parent.catalog_tree, self.onRightClickCatalogTree)
64    
65    
66          # doesn't work...          EVT_LEFT_DCLICK (self.parent.catalog_tree, self.onLoadBtnPress)
         # EVT_LEFT_DCLICK (self.parent.catalog_tree, self.onLeftDClick)  
67    
68          return          return
69    
# Line 84  Line 83 
83          self.loadWitCatalog( witItemId )          self.loadWitCatalog( witItemId )
84    
85          localSeedServer        = "http://localhost/FIG/"          localSeedServer        = "http://localhost/FIG/"
86          localSeedServer        = "http://float179.mcs.anl-external.org/FIG/"  #        localSeedServer        = "http://float179.mcs.anl-external.org/FIG/"
87          self.loadSeedCatalog( localSeedServer)          self.loadSeedCatalog( localSeedServer)
88    
89          self.parent.catalog_tree.Expand( self.parent.catalogRootId)          self.parent.catalog_tree.Expand( self.parent.catalogRootId)
# Line 141  Line 140 
140          seedFactory   = SeedDataFactory( seedServer )          seedFactory   = SeedDataFactory( seedServer )
141    
142          # add it to the list in the catalog          # add it to the list in the catalog
143            try:
144          self.parent.factoryMgr.addFactory( seedServer, seedFactory )          self.parent.factoryMgr.addFactory( seedServer, seedFactory )
145            except:
146                self.parent.error("loadSeedCatalog: %s already in foundry list." % seedServer)
147                wxEndBusyCursor()
148                return
149    
150          # make an entry in the tree for it          # make an entry in the tree for it
151          #          #
# Line 156  Line 160 
160              wxEndBusyCursor()              wxEndBusyCursor()
161              return              return
162    
163            itemName="Spontaneous Reactions"
164            spontaneousRxItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, itemName)
165            self.parent.catalog_tree.SetPyData(spontaneousRxItemId,
166                                               (self.seedRecoElemLoader,
167                                               (seedFactory.getRecoElemSpontaneousRx, None) ))
168    
169    
170          orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, "Organisms" )          orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, "Organisms" )
171          for org in orgList:          for org in orgList:
172              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )
173              self.parent.catalog_tree.SetPyData(id, (self.seedOrgLoader,              self.parent.catalog_tree.SetPyData(id, (self.seedRecoElemLoader,
174                                                     (seedFactory.getRecoElemByOrg, org) ))                                                     (seedFactory.getRecoElemByOrg, org) ))
175    
176    
# Line 267  Line 278 
278          return          return
279    
280      #------------------------------------------------------------------------      #------------------------------------------------------------------------
281      def seedOrgLoader(self,  argList ):      def seedRecoElemLoader(self,  argList ):
282      #------------------------------------------------------------------------      #------------------------------------------------------------------------
283          wxBeginBusyCursor()          wxBeginBusyCursor()
284    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.20

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3