[pygtk] gtk.Calendar: IN A DIALOG?

Darren Enns darethehair at gmail.com
Sun Apr 6 04:32:07 WST 2008


The example 'calendar' date-picker code page is here:

http://www.pygtk.org/pygtk2tutorial/sec-Calendar.html

For a newbie, like myself, this is great.  However, my abilities are 
still rather pathetic in taking 'standalone/demo' code like this, and 
*embedding* it into my own application.  Can anyone help me to use this 
code in the context of another module that *calls* it, and *sets* the 
current date?  I am not sure if this requires a 'dialog' or not (?).

The demo code doesn't 'set' the current date -- it just displays what 
the user has chosen as the date of interest.  I would like it to set the 
current 'date' when the 'close' button is pressed.

As well, for my own application, I do not need all the 'fancy' features 
of this demo app i.e. font changes, heading changes, etc..  Also, I want 
to have a 'time picker' as well, but I suppose that I can add 
'spinbuttons' or something to this class to handle that (I have not 
found any easy-to-use date-and-time combo widgets in PyGTK yet).

Thanks!

Dare


More information about the pygtk mailing list