Joey Tsai <[EMAIL PROTECTED]> writes:

> What I actually is something like evolution's contact editor, where
> entering someone's birthday actually just consists of pushing a
> button, which causes a calendar widget to appear under it.

I don't use Evolution, but I think you want to use gnome.ui.DateEdit.
DateEdit looks like a combo box that pops up a calendar menu.  It's
pretty easy to use, but you have to be careful with show_all() because
it may show subwidget parts of DateEdit that should remain invisible.
(See the pygtk FAQ for a discussion of show() vs show_all().)

If you want to avoid using Gnome and need a pure gtk+ solution, it
would probably be easier to put the gtk.Calendar in a modal dialog and
run it when the button is pushed.  I think putting the calendar in a
menu and getting it to work well is more difficult.
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to