[pygtk] Calendar popup under an entry

Neil Dugan pygtk at butterflystitches.com.au
Mon Mar 23 14:46:10 WST 2009


Timo wrote:
> Hello, I would like to have a gtk.Calendar to popup under a gtk.Entry as 
> soon as the user clicks on the entry.
> So I use the focus-in-event to capture when the user clicks in the 
> entry. But I can't seem to find a way to popup a calendar.
> 
> Timo
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
> 
Here is a custom widget I use.  You can default the format of the date
to anything you like.   When you right click in the widget it pops up
a calendar dialog.

You can also type the date into the widget in a wide set of formats.

When the date changes it also sends a 'date_changed' signal.


Hope this helps.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: datewidget.py
Type: text/x-python
Size: 7348 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20090323/3902a870/attachment.py 


More information about the pygtk mailing list