On Tuesday 19 February 2008 11:12 am, Ed Leafe wrote: > On Feb 19, 2008, at 12:17 PM, Ed Leafe wrote: > > Confirmed. I'll have to look into the XML conversion process > > involved; it seems to be escaping the ampersand twice: first from '&' > > to '&', and then re-escaping that string's ampersand to > > '&&'. > > OK, I've reviewed the code, and now my memory is returning. ;-) > > wxPython hides single ampersands, and displays double ampersands as a > single. So if you want to set the title of your form to read "My AT&T > Phone Bill", you would have to write: > > self.Form.Caption = "My AT&&T Phone Bill" > > We felt that that was way too hack-ish, and too wxPython-specific, so > we modified the code to automatically convert this behind the scenes. > What you're trying to do, though, is something very different: include > an ampersand as a hidden character indicating a shortcut key. IOW, you > want the hackish behavior that we were trying to work around.
The reason I brought it up is that it is a fairly common method of creating a shortcut key. The wx controls seem to understand the convention and it would be nice to have. I like Malcolms suggestion of using \&. > > Let me think about this a bit more in order to come up with a > solution for both needs. Suggestions are welcome. > > -- Ed Leafe > > > > > [excessive quoting removed by server] _______________________________________________ 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]
