[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src DataSourceEditor.py
From: |
Jason Cater |
Subject: |
gnue/designer/src DataSourceEditor.py |
Date: |
Wed, 16 Jan 2002 14:52:00 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/01/16 14:52:00
Modified files:
designer/src : DataSourceEditor.py
Log message:
worked around a bug in wx's wxListCtrl's wxListEvent code
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/DataSourceEditor.py.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: gnue/designer/src/DataSourceEditor.py
diff -c gnue/designer/src/DataSourceEditor.py:1.6
gnue/designer/src/DataSourceEditor.py:1.7
*** gnue/designer/src/DataSourceEditor.py:1.6 Wed Jan 16 14:12:51 2002
--- gnue/designer/src/DataSourceEditor.py Wed Jan 16 14:52:00 2002
***************
*** 394,408 ****
def OnBeginDrag(self, event):
! object = self.schemaMap[event.GetData()]
data = { "Type" : "entry",
! "Attributes": {
! "datasource": self.current.name,
! "name": "fld%s%s" % (
! string.upper(object.name[0]),
! string.lower(object.name[1:]))
! }
}
do = wxCustomDataObject(wxCustomDataFormat("GNUeDesVisualElement"))
--- 394,416 ----
def OnBeginDrag(self, event):
! #object = self.schemaMap[event.GetIndex()] # Bah! this always returns 0
! object = self.schemaMap[self.list.HitTest(event.GetPoint())[0]]
! attributes = {
! "datasource": self.current.name,
! "name": "fld%s%s" % (
! string.upper(object.name[0]),
! string.lower(object.name[1:])),
! "datatype": object.datatype,
! "required" : object.required,
! }
!
! if object.length:
! attributes['max_length'] = object.length
! attributes['width'] = object.length < 30 and object.length or 30
data = { "Type" : "entry",
! "Attributes": attributes
}
do = wxCustomDataObject(wxCustomDataFormat("GNUeDesVisualElement"))