[pygtk] How to get help of PyGTK methods?

Timo timomlists at gmail.com
Wed Dec 28 18:22:43 WST 2011


Op 27-12-11 22:03, Milad khajavi schreef:
> Hi Mohsen,
>
> It doesn't work for me:
> >>> print gtk.Label.get.__doc__
> None
>
> Any idea?
Maybe it hasn't a docstring? Have a look at the reference manual for 
documentation: http://developer.gnome.org/pygtk/stable/

Cheers,
Timo

PS: I didn't even know about the get() method, never seen it before.


>
> On Wednesday, December 28, 2011, Mohsen Dj <moshen212 at gmail.com 
> <mailto:moshen212 at gmail.com>> wrote:
> > hi
> > using :
> > print gtk.Label.get.__doc__
> >
> > On 12/27/11, Milad khajavi <khajavi at gmail.com 
> <mailto:khajavi at gmail.com>> wrote:
> >> Hi all,
> >> in pygtk when I set the label:
> >> mylabel = gtk.Label("Hello World!")
> >> I can get the string of label from it by mylabel.get() method. but in
> >> python interpreter I can get the docstring of this method:
> >> help(gtk.Label.get)
> >> Anyone know why?
> >>
> >> --
> >> Milad Khajavi
> >> http://lincafe.wordpress.com
> >> Having the source means you can do it yourself.
> >> I tried to change the world, but I couldn’t find the source code.
> >>
> >
>
> -- 
> Milad Khajavi
> http://lincafe.wordpress.com
> Having the source means you can do it yourself.
> I tried to change the world, but I couldn’t find the source code.
>
>
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/



More information about the pygtk mailing list