On Wednesday, September 29, 2010 01:48:10 pm Jim Byrnes wrote: > Ed Leafe wrote: > > On Sep 29, 2010, at 4:03 PM, Jim Byrnes wrote: > >> I wanted to see how a Masked Textbox worked so I put together a > >> quick test app in the classdesigner. Now I see that a Masked > >> Textbox is not an option. > > > > Hmmm... I've never needed one, so I never wrapped it. Can you create > > a ticket so that I don't forget to add this to the Class Designer? > > Done. > > >> Hand coding in dabo is still a mystery to me so if I have a panel > >> with a vertical sizer with 3 slots in it and the first slot has a > >> grid in it. How would I add a Masked Textbox to the middle slot? > > > > You can't add one to the Class Designer and interact with it; the > > 'wrapping' I mention is the glue that lets the Class Designer > > interact with the control. > > > > You could do it in code, but it would be tricky, since you'd have to > > find the panel that would be created by the empty slot, get its > > parent, sizer position and settings, remove the panel, add the masked > > textbox to the parent, insert it into the sizer at the same position > > and apply the sizer settings. > > Wow, I'll just wait for the ClassDesigner version. :) > > > An easier way to play with the class is to simply run it. Every > > control class has self-test code which is run if you run the > > control's script directly. IOW, cd to the 'uiwx' directory, and run: > > > > > > > > python dMaskedTextBox.py > > > > Feel free to modify the code in the block beginning with: if __name__ > > == "__main__" if you want to try stuff out. > > > > -- Ed Leafe > > OK, thanks, I'll look at doing that. > > Regards, Jim
Jim, Just a little heads up: The masked controls in general do not always work correctly. That said all my work with them was with 2.8.10.x and not the latest version of wxPython 2.8.11.0. I had good success with the phone and SSAN. Johnf _______________________________________________ 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/[email protected]
