From: Alex T. <al...@tw...> - 2004-07-08 15:05:18
|
At 20:04 06/07/2004 +1200, Selwyn McCracken wrote: >hi there, > >in the wxPython demo there is a nifty popup calendar (i.e. PopupControl.py). There are so many things in the wxDemo I'm not sure which one you mean (neither of the two calendar demos I saw seemed to use PopupControl.py) >Could someone please give me a few pointers on how I would go about >wrapping this and making it available in my pythoncard app. So I won't answer your question directly, but will answer another, hopefully related, one instead ... The easiest way to get a pop-up calendar is to create a Custom Dialog, and put a calendar control (along with the OK and Cancel) buttons in it. I've build a sample version, including a test program that uses it, - you can download it via http://www.tweedly.net/Python/index.html Note - I did one additional thing: the simple way to select a date is to click on the date (so it is highlighted), and then click on the OK button. I made it possible to also double-click on a date and that will immediately select that date and close the dialog. Hope that helps - but if not, can you say specifically what example in wxDemo you are looking at, and what you want from it that you don't get this way. Thanks -- Alex. |