ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxPython-users
wxPython-users
RE: [wxPython-users] time control
by Will Sadkin other posts by this author
Mar 24 2003 3:14PM messages near this date
Re: [wxPython-users] MessageDialogs on linux | Re: [wxPython-users] time control
Roger Binns wrote:
>  I am looking for something like the wxTimeCtrl in the demo, but I need
>  two important changes.  One is that I don't want the seconds display.
>  The other is that I need to veto changes.  (I will be displaying
>  two of them - one is a start time and one is an end time.  I
>  need to prevent the end time from being before the start time).
 
As the author of wxTimeCtrl, it would fall to me to make the
changes you're suggesting, and they all seem like reasonable
complaints.  (BTW, I wrote wxTimeCtrl because I asked the same 
question you did over a year ago and there wasn't any to be found
at the time.  So, in the open source spirit, I decided to try my 
hand...)  I appreciate the feedback, as that's what open source
is all about; I want the control to be useful!  


>   - it has hard coded knowledge that seconds are being displayed

Good idea; should be another option.


>   - vetoing looks hard

I will look into this; it seems like a reasonable request that
I hadn't considered before. 


>   - clicking doesn't work well (it often selects one digit rather
>     than both.  The spin control then only updates the one digit)

This was intentional design; it depends on where you click.  If 
you click at the front of the field, the entire thing is selected;
if you click after the 1st digit, it selects just that digit.
You can also click at the front and then hit shift-left and
select just the 1st digit.  I wanted the user to be able to 
select one digit at a time and then spin through its logical 
values.  I take it this is not desired behavior?

>   - typing only changes one digit even if both are selected

Again, this was intentional design, but in hindsight, it was
a poor one; The idea was that selecting the whole field treats
it as a single value for the purposes of "spinning", but it
does badly interact with typing.  I will see if I can separate
the spinning control from the typing behavior to fix this, as 
I agree that it's really annoying.  If I fix this, is the
selection issue still a problem?

>   - you have to have only the 'A' or 'P' selected to use the
>     keyboard for A/P (it does nothing if the 'M' is also selected)

Hmmm.  This isn't the case under MSW; you can select either the 
whole field or just the A/P and type the opposite to change 
the field.  What OS/Python/wxPython are you using?

Regards,
/Will Sadkin
Parlance Corporation

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Thread:
Will Sadkin
Chuck Esterbrook
Roger Binns

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved