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.

        Let me think about this a bit more in order to come up with a  
solution for both needs. Suggestions are welcome.

-- Ed Leafe





_______________________________________________
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]

Reply via email to