Re: [PHP-GTK] Usage of GtkCalendar with PHP-GTK2
by André Jansen other posts by this author
Jun 15 2006 12:35PM messages near this date
[PHP-GTK] Usage of GtkCalendar with PHP-GTK2
|
Re: [PHP-GTK] Usage of GtkCalendar with PHP-GTK2
On 15 Jun 2006 at 14:58, Christian Michel wrote:
> Hello,
>
> in an application, build with php-gtk1 I had a GtkCalendar in it.
> I was able to select month, day, year from it, request properties
> Widget->selected_day, Widget->year and Widget->month from it.
>
> Under PHP-Gtk2 these properties aren't available and get_date() isn't
> implemented yet.
>
> So without any possibility to get a date back, this Widget may be
> useless at the moment.
> Or is there a workaround, to get the date values from the widget, when
> "day-selected-double-click"- signal is emitted?
>
> Thanks for answers.
A few lines from a callback I wrote a few months ago (and works):
$m = $cal-> get_property('month') + 1; // months are numbered from 0 to 11
$y = $cal-> get_property('year');
$d = $cal-> get_property('day'); // 0 if no day selected
BTW, I am using the latest version of php-gtk2 from the Gnope site, the
Inspector tells me that GtkCalendar-> get_date() does exists - but I
haven't used it, I can't remember for what reason :).
Hope this helps.
Regards,
--
André
*** The Flying Dutchman's blog : http://fdpad.blogspot.com
===========================================================
Black Holes were created when God divided by zero.
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Christian Michel
André Jansen
FOURTICQ Benjamin
|