[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.10, Mon Aug 18 15:55:57 2003 UTC revision 1.11, Thu Sep 25 23:48:06 2003 UTC
# Line 38  Line 38 
38          EVT_TREE_SEL_CHANGED(self.parent.catalog_tree,          EVT_TREE_SEL_CHANGED(self.parent.catalog_tree,
39                               self.parent.catalog_treeId,                               self.parent.catalog_treeId,
40                               self.onLeftClick)                               self.onLeftClick)
41            EVT_LEFT_DCLICK (self.parent.catalog_tree, self.onLeftDClick)
42    
43          return          return
44    
# Line 92  Line 93 
93      def onLeftClick(self,treeEvent):      def onLeftClick(self,treeEvent):
94      #------------------------------------------------------------------------      #------------------------------------------------------------------------
95          item = treeEvent.GetItem()          item = treeEvent.GetItem()
96    
97          catEntryTuple = self.parent.tree_ctr.GetPyData(item)          catEntryTuple = self.parent.tree_ctr.GetPyData(item)
98          if (catEntryTuple == None ):          if (catEntryTuple == None ):
99              return              return
100          self.selected = catEntryTuple          self.selected = catEntryTuple
101    
102          return          return
103        #------------------------------------------------------------------------
104        def onLeftDClick(self,treeEvent):
105        #------------------------------------------------------------------------
106            pt = treeEvent.GetPosition()
107    
108            item = self.parent.tree_ctr.HitTest(pt)
109    
110            print item
111            catEntryTuple = self.parent.tree_ctr.GetPyData(item)
112            #print catEntryTuple, "catEntryTuple"
113            #self.selected = catEntryTuple
114    
115            #catEntryTuple = self.selected
116            #apply(catEntryTuple[0], [catEntryTuple[1]])
117    
118            return
119    
120    
121      #------------------------------------------------------------------------      #------------------------------------------------------------------------
122      def onLoadBtnPress(self, event):      def onLoadBtnPress(self, event):

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3