Re: [Tutor] Query about using Pmw entry widget...

2007-01-07 Thread Alan Gauld
"Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote > The dialog box, what I think is better than a 'visual warning' ; > because it > forces the user to correct the input error that he has made. A > visual > warning might be omitted by the user. I disagree. A dialog box in this situation has two bad

Re: [Tutor] Query about using Pmw entry widget...

2007-01-07 Thread Asrarahmed Kadri
Hey Luke, The dialog box, what I think is better than a 'visual warning' ; because it forces the user to correct the input error that he has made. A visual warning might be omitted by the user. REgards, Asrarahmed On 1/7/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Alan Gauld wrote: > "Luk

Re: [Tutor] Query about using Pmw entry widget...

2007-01-07 Thread John Fouhy
On 07/01/07, Alan Gauld <[EMAIL PROTECTED]> wrote: > I don;t have PMW installed. I tend to use Tix now that its part > of standard Python. However Grayson says this: Does Tix work with py2exe? That's why I gave up on it, a while ago.. > So it seems you need > > def numeric(val): > try: float

Re: [Tutor] Query about using Pmw entry widget...

2007-01-07 Thread Alan Gauld
"Luke Paireepinart" <[EMAIL PROTECTED]> wrote >> Its easier for the programmer but much worse for the user. >> We should always catch erroneous input as early as possible. > > The difference between a webpage and an application here is that if > the > user enters something incorrectly, he'll know

Re: [Tutor] Query about using Pmw entry widget...

2007-01-07 Thread Luke Paireepinart
Alan Gauld wrote: > "Luke Paireepinart" <[EMAIL PROTECTED]> wrote > > OP>> Can some one help me how to add validation : only integers are > allowed > OP>> and minimum value should be 1. > OP>> > OP>> timeInterval = Pmw.EntryField(label_text='Time Interval(in > OP>> sec.):',labelpos='w',validate =

Re: [Tutor] Query about using Pmw entry widget...

2007-01-07 Thread Alan Gauld
"Luke Paireepinart" <[EMAIL PROTECTED]> wrote OP>> Can some one help me how to add validation : only integers are allowed OP>> and minimum value should be 1. OP>> OP>> timeInterval = Pmw.EntryField(label_text='Time Interval(in OP>> sec.):',labelpos='w',validate = 'numeric') I don;t have PMW ins

Re: [Tutor] Query about using Pmw entry widget...

2007-01-06 Thread Luke Paireepinart
Asrarahmed Kadri wrote: > Hello Folks, > > I am using Pmw mdoule to develop a User interface and in that I am > using entry widget. > > Can some one help me how to add validation : only integers are allowed > and minimum value should be 1. > > timeInterval = Pmw.EntryField(label_text='Time

[Tutor] Query about using Pmw entry widget...

2007-01-06 Thread Asrarahmed Kadri
Hello Folks, I am using Pmw mdoule to develop a User interface and in that I am using entry widget. Can some one help me how to add validation : only integers are allowed and minimum value should be 1. timeInterval = Pmw.EntryField(label_text='Time Interval(in sec.):',labelpos='w',validate = 'n