daboide Commit
Revision 181
Date: 2005-09-27 17:15:54 -0700 (Tue, 27 Sep 2005)
Author: ed
Changed:
U trunk/DesignerPropSheet.py
Log:
Changed the name of the method 'onGridSelectCell()' to 'onGridCellSelected()'
to match the corresponding changed event name. Added the call to set
self.ActivateEditorOnSelect = False because that change was completely hosing
the prop sheet. Now it only crashes (on Mac, at least) when you select an
editable cell.
I'm going to test this on Win/Lin now to see if it is possible to use the prop
sheet as it was written, given the grid class changes. If it is a Mac thing,
then we wait for the next build of wxPython to fix the Mac problems. If it
still crashes/misbehaves on those platforms, then it'll have to be re-written
as a list control.
Diff:
Modified: trunk/DesignerPropSheet.py
===================================================================
--- trunk/DesignerPropSheet.py 2005-09-22 17:29:46 UTC (rev 180)
+++ trunk/DesignerPropSheet.py 2005-09-28 00:15:54 UTC (rev 181)
@@ -17,6 +17,7 @@
self.propDict = {}
self.useCustomGetValue = self.useCustomSetValue = True
self.Editable = True
+ self.ActivateEditorOnSelect = False
# Create the property name column
col = dabo.ui.dColumn(self, Name="Name", Order=10,
DataField="prop",
@@ -134,7 +135,7 @@
return pd["type"] == typtyp
- def onGridSelectCell(self, evt):
+ def onGridCellSelected(self, evt):
if self.RowCount < 1:
return
row, col = evt.EventData["row"], evt.EventData["col"]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev