[wxPython] wxDatePicker

Has anyone created a wxDatePicker that has a popup date picker, or
allows you to enter a date manually (and formats it properly)? I have
something semi-functional, but thought I should check before I do any
more work. If no one has, I will be glad to contribute what I have
created so far (once I get it working that is). Attached is a
screenshot of what I currently have working (the buttons are a bit big
for now, but that will be fixed).

Aside from this, has anyone ever been able to create a composite control
that looks like a wxComboBox, but has customizable behavior when the
button is clicked? I have created something like that for my DatePicker
but it would be much nicer if there was something a little more generic
(like a CustomDlg ComboBox from Delphi InfoPower tools, I think), so
that you could hit that drop down button and you could call an event
instead of dropping down the combo box. I can do it as a wxPython
composite control, but it just doesn't look right. Any suggestions?

Thanks for your time.

DatePickerShot.jpg

···

--
Jade Meskill <jade.meskill@libertydistribution.com>

Has anyone created a wxDatePicker that has a popup date picker, or
allows you to enter a date manually (and formats it properly)? I have
something semi-functional, but thought I should check before I do any
more work.

No, this is something that has been needed for a while.

If no one has, I will be glad to contribute what I have
created so far (once I get it working that is). Attached is a
screenshot of what I currently have working (the buttons are a bit big
for now, but that will be fixed).

Is this using the wxCalendarCtrl or the wxCalendar in wxPython.lib.calendar?
Or did you make your own calendar? If so you should probably switch to
using one of the others so we don't end up with yet another calendar in the
library.

Also, I assume you are using a wxPopupWindow?

Aside from this, has anyone ever been able to create a composite control
that looks like a wxComboBox, but has customizable behavior when the
button is clicked?

There is one in the wxUniversal port (the non-native wxWindows) but it isn't
accessible to the other ports yet. You may be able to get some ideas from
it's sources though.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

> Has anyone created a wxDatePicker that has a popup date picker, or
> allows you to enter a date manually (and formats it properly)? I have
> something semi-functional, but thought I should check before I do any
> more work.

No, this is something that has been needed for a while.

OK, well I'll be glad to donate my efforts once I have it working (I
won't dare say finished =)

> If no one has, I will be glad to contribute what I have
> created so far (once I get it working that is). Attached is a
> screenshot of what I currently have working (the buttons are a bit big
> for now, but that will be fixed).

Is this using the wxCalendarCtrl or the wxCalendar in wxPython.lib.calendar?
Or did you make your own calendar? If so you should probably switch to
using one of the others so we don't end up with yet another calendar in the
library.

For now it is my own calendar, but I will switch it to use one of the
standard calendars (whichever one I can make look the nicest), I mostly
used my own to see if I could do it, and the style matched what my users
are used to, but I do prefer to use a standard calendar.

Also, I assume you are using a wxPopupWindow?

Yes. Do you forsee any problems with this approach?

> Aside from this, has anyone ever been able to create a composite control
> that looks like a wxComboBox, but has customizable behavior when the
> button is clicked?

There is one in the wxUniversal port (the non-native wxWindows) but it isn't
accessible to the other ports yet. You may be able to get some ideas from
it's sources though.

OK. I'll have a look and see. Thanks!

···

On Tue, 2002-03-26 at 14:30, Robin Dunn wrote:

--
Jade Meskill <jade.meskill@libertydistribution.com>

> Also, I assume you are using a wxPopupWindow?
>
Yes. Do you forsee any problems with this approach?

It should be fine. It was for things like this that the wxPopupWindow was
created.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!