Thomas Perl
43e2073429
Simplify test case, add debugging output
2015-06-13 21:15:14 +02:00
Thomas Perl
cf8620502c
Add test case for issue #46
2015-06-13 21:08:23 +02:00
Thomas Perl
5b76536332
Add test case for GI import issue ( Fixes #23 )
2015-01-11 13:47:50 +01:00
Thomas Perl
c24670ccd2
WIP QObject wrapper code
2014-10-09 11:30:18 +02:00
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
df059cf5fe
Bump API version to 1.4, update documentation
2014-10-08 14:33:05 +02:00
Thomas Perl
76bd73c370
Assignment operator for PyObjectRef + test
2014-10-08 13:34:38 +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
Dennis Tomas
bc19707704
Test round-trip of PyObjectRef.
2014-10-06 13:53:56 +02:00
Felix Krull
53a78e0097
Wrap generic PyObjects in an opaque value that can be passed to/from QML safely.
2014-08-16 23:36:14 +02:00
Thomas Perl
481400b53d
Convert Python set and iterable to JS Array
2014-06-10 18:06:22 +02:00
Thomas Perl
5c8d9cfe57
QML API 1.3: Add support for qrc:/ import paths. Fixes #2
2014-02-16 22:25:38 +01:00
Thomas Perl
e201eecfff
Converter: Support for date, time and datetime. Fixes #12
...
Python datetime.date <-> Qt QDate <-> QML date
Python datetime.time <-> Qt QTime <-> QML time
Python datetime.datetime <-> Qt QDateTime <-> JS Date
Python C API docs for those data types:
http://docs.python.org/3/c-api/datetime.html
QML docs for those data types:
http://qt-project.org/doc/qt-5.1/qtqml/qtqml-cppintegration-data.html#qdatetime-to-javascript-date
http://qt-project.org/doc/qt-5.1/qtqml/qml-date.html
http://qt-project.org/doc/qt-5.1/qtqml/qml-time.html
2014-02-13 00:04:48 +01:00
Thomas Perl
4028d4f3b8
QML API 1.2: Handle JS exceptions in callbacks from Python
...
Also improve error message in pyotherside.send() callback handler
to include filename and line number.
2014-02-12 23:02:57 +01:00
Thomas Perl
28d5e9289c
QML API 1.2: Fix importModule() behavior. Fixes #3
...
This changes the behavior of an existing function, so we need to
bump the QML import version to still support code that depends on
the old (broken) behavior of the importModule() function.
2014-02-08 15:29:02 +01:00
Thomas Perl
be1edb6b5c
New methods: pluginVersion() and pythonVersion()
2014-02-06 22:49:43 +01:00
Thomas Perl
71049fc5d7
Cleanup documentation, packaging and file structure
2014-02-06 21:17:04 +01:00
Thomas Perl
6567f9e8b9
Error handling when using call() without a parameter list
2014-01-20 19:57:01 +01:00
Thomas Perl
53273dad50
Check JS callback errors. Fixes #9
...
Thanks to Osmo Salomaa for the original report and test case.
2014-01-20 19:09:57 +01:00
Thomas Perl
defbab1467
Fix build, move worker code to qpython_worker
2013-08-08 18:06:19 +02:00
Thomas Perl
34ea420787
Initial commit
2013-08-07 21:47:24 +02:00