On Wednesday, September 29, 2010 03:30:01 pm Jim Byrnes wrote:
> John Fabiani wrote:
> > 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
> 
> OK, thanks.  I have a functioning app now and was going to start writing
> some validation code.  Then I discovered the dMaskedTextBox and thought
> that maybe using them would be easier than a lot of validation.  I was
> going to use a test app so I wouldn't take a chance of messing up
> something that worked.
> 
> I will need the phone one.  Also will need  #{8} and something like
> AA|### . Actually until Ed has a chance to work his magic, it will give
> me an opportunity to learn to learn to hand code Dabo.
> 
> Regards,  Jim
I supplied someone on this list a framework of a simple form in the last 
couple days.  Check for it.

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]

Reply via email to