Ed Leafe wrote: > On Feb 15, 2008, at 8:46 PM, Ed Leafe wrote: > >>> The question is, >>> is there a way to enter None from the Keys Editor? >> >> I don't know; I've never tried it. >> >> I'm sure it is a matter of properly parsing the XML, but I'l have to >> dig a bit. > > > Hmm... it doesn't appear to be that simple. Apparently the > wx.gizmos.EditableListBox, which is the basis for the Dabo > dEditableListBox used in the Keys editor, only works with string > values. It isn't None that's the problem; try entering the integer 33, > and you get u'33' in the property. > > I don't know of a quick solution. I have confirmed that if you edit > the .cdxml file manually, the values are preserved upon saving the > design, and are the correct type when the design is run. However, if > you try to edit them in the Class Designer, you will get errors, as > the control can only handle lists of strings.
I haven't caught up yet with this thread, but I solved similar issues in the report designer by eval()ing the property values. So, even though the following are all strings as far as wx is concerned: None "Paul" 33 After they are eval()'d, they persist as the proper types. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
