Re: Howto use GDateTime



Is there any particular function you need to pass a GDateTime to? It
seems like this need to be fixed in GLib. The functions are being
parsed by the gir scanner correctly, but all of the g_date_time_new_*
functions are listed as instrospectable=0, which tells Python to
ignore them.

On Sat, Apr 9, 2011 at 8:37 AM, Thomas Bechtold
<thomasbechtold jpberlin de> wrote:
> Hi,
>
> i tried to use GDateTime with pygobject (ubuntu natty) and got this:
>
> $ python
> Python 2.7.1+ (r271:86832, Mar 24 2011, 00:39:14)
> [GCC 4.5.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import gi
>>>> from gi.repository import GLib
>>>> dt = GLib.DateTime()
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> MemoryError
>>>>
>
>
> How can i use GDateTime?
>
>
> Cheers,
>
> Tom
>
>
> _______________________________________________
> python-hackers-list mailing list
> python-hackers-list gnome org
> http://mail.gnome.org/mailman/listinfo/python-hackers-list
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]