Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index

Hello, I'm having a problem with the docs. E.g. there's a method
"gotoRange" that takes "XTextRange" type. So, I need to find a method
in the class of opened document that returns that type. Well, easy:

    >>> type(file)
    <class 'pyuno'>

And… there isn't documentation for the class "pyuno". That's just the
name of the API itself! The problem is even deeper, just look at the

    >>> type(file)
    <class 'pyuno'>
    >>> file.getBookmarks()
    pyuno object
    >>> type(cursor)
    <class 'pyuno'>
    >>> cursor.getBookmarks()
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    AttributeError: getBookmarks

Huh, what? I couldn't call the same method of two objects of the single class?!

So, how am I supposed to work with documentation? I am totally
confused, the only solution I see is seeking for a working examples —
but how then these peoples found docs?

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.