Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > User input masks - Access Style

Thread Tools

User input masks - Access Style

Posts: n/a
On Jan 1, 11:13*am, Tim Harig <(E-Mail Removed)> wrote:
> On 2010-12-31, flebber <(E-Mail Removed)> wrote:
> > On Dec 28 2010, 12:21 am, Adam Tauno Williams <(E-Mail Removed)>
> > wrote:
> >> On Sun, 2010-12-26 at 20:37 -0800, flebber wrote:
> >> > Is there anyay to use input masks in python? Similar to the function
> >> > found in access where a users input is limited to a type, length and
> >> > format.

> >> <>

> >> Typically this is handled by a callback on a keypress event.

> > Regarding 137 of the re module, relating to the code above.

> 137? I am not sure what you are referencing?
> > EDIT: I just needed to use raw_input rather than input to stop this
> > input error.

> Sorry, I used input() because that is what you had used in your example
> and it worked for my system. *Normally, I would have used window.getstr()
> from the curses module, or whatever the platform equivilant is, for
> getting line buffered input.

137 is the line number in the re module which refernces the match
string. In this example the timeinput.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating masks for photographs? john Computer Support 0 10-19-2005 07:27 PM
A technique for compile-time detection of erroneous bit-masks -opinionsrequested Gianni Mariani C++ 0 01-13-2005 07:24 AM
6500 MSFC and HSRP subnet masks GJP Cisco 1 12-09-2004 01:44 PM
Why Wildcard masks Prashant Varghese Cisco 3 11-08-2004 11:19 AM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM