1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-01-28 23:52:55 +08:00

3 Commits

Author SHA1 Message Date
Thomas Perl
5863efcfe9 Simplify API (remove callMethod again, merge into call)
callMethod(o, attr, ...) is just a special case of:
call(getattr(o, attr), ...)

Starting with import version 1.4, call() now accepts a
Python callable as alternative to the function name.
2014-10-08 15:13:54 +02:00
Thomas Perl
4619b95040 Add getattr() and callMethod() tests to test_wrapped 2014-10-08 13:00:08 +02:00
Thomas Perl
cc7bc11595 Converter: Only use PyObjectRef, add tests
The converter shouldn't need to deal with PyObject * itself, but use
only PyObjectRef, which takes care of reference already.

Make the GIL state management easier to read.

Add a small test that shows how to pass Python objects to/from QML.
2014-10-08 12:51:37 +02:00