[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.18, Thu Nov 13 19:21:46 2003 UTC revision 1.21, Wed Feb 25 17:08:17 2004 UTC
# Line 4  Line 4 
4  from FaST.SeedDataFactory import SeedDataFactory  from FaST.SeedDataFactory import SeedDataFactory
5  from FaST.SeedDataFactory import SeedOrganism  from FaST.SeedDataFactory import SeedOrganism
6  from FaST.RecoElem import RecoElem  from FaST.RecoElem import RecoElem
7  from RecoElempanel import RecoElemWindow  from RecoElempanel import RecoElempanel
8    
9    
10    
11  class CatalogWindow:  class Catalogpanel:
12  #    def __init__(self, parent):  #    def __init__(self, parent):
13  #    def initCatEvents(self ):  #    def initCatEvents(self ):
14  #    def initCatData( self ):  #    def initCatData( self ):
# Line 50  Line 50 
50      #------------------------------------------------------------------------      #------------------------------------------------------------------------
51      def initCatEvents(self ):      def initCatEvents(self ):
52      #------------------------------------------------------------------------      #------------------------------------------------------------------------
53          button1= self.parent.OK_button          #button1= self.parent.OK_button
54            button1= self.parent.loadbtn
55          EVT_BUTTON(self.parent, self.parent.loadbtn.GetId(),          EVT_BUTTON(self.parent, self.parent.loadbtn.GetId(),
56                     self.onLoadBtnPress)                     self.onLoadBtnPress)
57          EVT_TREE_SEL_CHANGED(self.parent.catalog_tree,          EVT_TREE_SEL_CHANGED(self.parent.catalog_tree,
# Line 63  Line 64 
64          EVT_RIGHT_DOWN(self.parent.catalog_tree, self.onRightClickCatalogTree)          EVT_RIGHT_DOWN(self.parent.catalog_tree, self.onRightClickCatalogTree)
65    
66    
67          # doesn't work...          EVT_LEFT_DCLICK (self.parent.catalog_tree, self.onLoadBtnPress)
         # EVT_LEFT_DCLICK (self.parent.catalog_tree, self.onLeftDClick)  
68    
69          return          return
70    
# Line 141  Line 141 
141          seedFactory   = SeedDataFactory( seedServer )          seedFactory   = SeedDataFactory( seedServer )
142    
143          # add it to the list in the catalog          # add it to the list in the catalog
144            try:
145          self.parent.factoryMgr.addFactory( seedServer, seedFactory )          self.parent.factoryMgr.addFactory( seedServer, seedFactory )
146            except:
147                self.parent.error("loadSeedCatalog: %s already in foundry list." % seedServer)
148                wxEndBusyCursor()
149                return
150    
151          # make an entry in the tree for it          # make an entry in the tree for it
152          #          #

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.21

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3