ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
Re: [PHP-GTK] Usage of GtkCalendar with PHP-GTK2
by FOURTICQ Benjamin other posts by this author
Jun 15 2006 7:39AM messages near this date
Re: [PHP-GTK] Usage of GtkCalendar with PHP-GTK2 | [PHP-GTK] RES [PHP-GTK] Developing php-gtk under multiple monitors
Hello,

I had the same trouble... get_date() is implemented but in cvs, you can
get it at :

http://gnope.org/pearfront/index.php?package=Gnope_PHPGtk2_dll

I changed from php-gtk1 by making a gkdialog modal and get the response :

>      $dialog = new GtkDialog( null, null, Gtk::DIALOG_MODAL,
>                   array(Gtk::STOCK_OK, Gtk::RESPONSE_OK,
>                     Gtk::STOCK_CANCEL, Gtk::RESPONSE_CANCEL));
>      $dialog->vbox->add($calendar=new GtkCalendar ());
> 
>        $calendar->select_day($day);
>        $calendar->select_month($month, $year);
> 
>      $dialog->show_all();
>      if(Gtk::RESPONSE_OK == $dialog->run()){
>        $array=$calendar->get_date();
>      }
>      $dialog->destroy();
Regards,
Benjamin Fourticq.

Christian Michel a écrit :
>  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.
> 
> 
>  Christian Michel
> 
>    

-- 
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved