[PyKDE] dir(QtObjectThing) -> give_me_all_attrs(QtObjectThing)?

Gerard Vermeulen gvermeul at grenoble.cnrs.fr
Sat May 31 12:31:01 BST 2003


On Sat, 31 May 2003 10:47:12 +0200
Gerard Vermeulen <gvermeul at grenoble.cnrs.fr> wrote:


> [packer at venus examples]$ python
> Python 2.2.2 (#1, Oct 23 2002, 12:12:09)
> [GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import iqt
> >>> import iqt.rlcompleter
> >>> iqt.[TAB]
> iqt.__class__         iqt.__hash__          iqt.__repr__
> iqt.__delattr__       iqt.__init__          iqt.__setattr__
> iqt.__dict__          iqt.__name__          iqt.__str__
> iqt.__doc__           iqt.__new__           iqt._iqt
> iqt.__file__          iqt.__path__          iqt.readline
> iqt.__getattribute__  iqt.__reduce__        iqt.rlcompleter
> >>> from qwt import *
> >>> w = QwtWheel()
> >>> w.d[TAB]
> w.darkBlue             w.darkRed              w.dragMoveEvent
> w.darkCyan             w.darkYellow           w.draw
> w.darkGray             w.destroy              w.drawWheel
> w.darkGreen            w.dragEnterEvent       w.drawWheelBackground
> w.darkMagenta          w.dragLeaveEvent       w.dropEvent
> >>> w.destroy
> <built-in method destroy of sip.wrapper object at 0x8125cb0>
> >>>

If anybody wants to play with this:
http://gerard.vermeulen.free.fr/PyQwt-20030531.tar.gz

Note: this is a snapshot, but I will fix bugs as fast as I can :-)
Note: iqt works only on systems with readline, thus not on Windows.

Gerard




More information about the PyQt mailing list