Thomas Perl
289e5ed616
PyOtherSide 1.4.0
1.4.0
2015-02-19 15:50:51 +01:00
Thomas Perl
efdc4467a9
docs/index.rst: Minor formatting fixes
2015-02-19 15:49:51 +01:00
Thomas Perl
cb7cf698de
Merge pull request #38 from danvratil/master
...
Unbox QJSValue from QVariant in the GUI thread to prevent race condition...
2015-02-19 15:26:27 +01:00
Daniel Vrátil
1c0be92e41
Unbox QJSValue from QVariant in the GUI thread to prevent race condition in QML engine
...
Calling QJSValue::toVariant() can cause QJSValue to call into QML engine. Since
we perform this correction from QPythonWriter thread context, we end up calling
QML engine from non-GUI thread and causing race conditions and crashes.
This change performs the initial unboxing in QPython::call() and passes to
QPythonWriter the actual value of QJSValue in QVariant.
This fixes issue #36 .
2015-02-16 11:19:45 +01:00
Thomas Perl
5b76536332
Add test case for GI import issue ( Fixes #23 )
2015-01-11 13:47:50 +01:00
Thomas Perl
5c31bde3da
Don't register signal handlers ( fixes #33 )
2015-01-11 13:37:22 +01:00
Thomas Perl
a218e792c3
Merge pull request #31 from M4rtinK/master
...
PyOtherSide for Android build instructions
2014-11-16 12:42:53 +01:00
Martin Kolman
9d292e2f3a
PyOtherSide for Android build instructions
2014-11-15 17:58:55 +01:00
Thomas Perl
26612b02ae
Merge pull request #29 from greenaddress/qt5.4
...
Fixed compile errors after last Qt 5.4 patch
2014-11-11 12:20:53 +01:00
GreenAddress
a113f51db4
Fixed compile errors after last Qt 5.4 patch
2014-11-11 11:32:21 +01:00
Thomas Perl
dc94842773
QVariantConverter: Handle Qt 5.4 QJSValue-in-QVariant ( Fixes #28 )
2014-11-10 21:20:43 +01:00
Thomas Perl
8e0f99002d
pythonlib_loader: Standard Library embedding
2014-11-07 23:02:01 +01:00
Thomas Perl
443dce1e54
Android compatibility fix
...
There's no need to load libpython globally on Android.
2014-11-07 23:01:31 +01:00
Thomas Perl
21b416a01e
Print unhandled errors to the console
2014-10-12 11:24:54 +02:00
Thomas Perl
eccdad94ee
Merge branch 'qobject-wrapper'
2014-10-11 19:35:12 +02:00
Thomas Perl
295ef81db1
Document pyotherside.QObject wrapper usage
2014-10-11 19:34:32 +02:00
Thomas Perl
78180ce840
Self-import pyotherside to prevent crashes
...
Otherwise pyotherside.QObject instances could not be used
if the same module didn't do a "import pyotherside".
2014-10-11 18:38:06 +02:00
Thomas Perl
65314f10a7
Free allocated resources
2014-10-10 13:53:47 +02:00
Thomas Perl
24cb511bc9
Avoid conversion of QObjectMethod objects
2014-10-10 13:14:09 +02:00
Thomas Perl
43f81e54e1
Implement proper Python wrapper objects
2014-10-10 13:05:45 +02:00
Thomas Perl
c24670ccd2
WIP QObject wrapper code
2014-10-09 11:30:18 +02:00
Thomas Perl
4ef3738805
Use PyObjectRef's automatic reference counting
...
Replace most Py_.*REF calls with PyObjectRef's automatic
memory management, with borrowed references.
2014-10-08 16:07:01 +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
9bfce212ff
Merge branch 'pyobject-wrapper'
2014-10-08 14:33:29 +02:00
Thomas Perl
df059cf5fe
Bump API version to 1.4, update documentation
2014-10-08 14:33:05 +02:00
Thomas Perl
bbe98ae3ec
Fix deadlock issues and GIL state handling
2014-10-08 14:05:25 +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
806400caeb
Consistent refcounting behaviour when converting object references.
2014-10-06 14:02:57 +02:00
Dennis Tomas
bc19707704
Test round-trip of PyObjectRef.
2014-10-06 13:53:56 +02:00
Dennis Tomas
d5dc5060c1
Fixed reference leaks in callMethod_sync() and getattr().
2014-10-01 13:11:07 +02:00
Dennis Tomas
4f5edd7247
Access attributes of Python objects.
2014-09-30 18:23:43 +02:00
Dennis Tomas
ff0d915cf2
Calling methods on Python objects.
2014-09-30 18:22:47 +02:00
Dennis Tomas
9ed645cb0d
Removed QMutex in QPythonPriv.
2014-09-30 18:16:43 +02:00
Thomas Perl
dce73ae75f
Merge pull request #25 from fkrull/refleaks
...
Fix some reference leaks.
2014-09-26 22:56:49 +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
Felix Krull
e61c6fac79
Use PyGILState_{Ensure,Release} to play well with recursive GIL acquisitions.
2014-08-16 22:28:15 +02:00
Felix Krull
68c5c5b95e
Use QMetaType::Type values instead of obsolete QVariant::Type.
2014-08-16 22:28:15 +02:00
Felix Krull
1404fc8b95
Fix some reference leaks.
2014-08-14 20:56:16 +02:00
Thomas Perl
f870396346
PyOtherSide 1.3.0
1.3.0
2014-07-24 14:49:13 +02:00
Thomas Perl
d070a172d7
Documentation: Show how to avoid callback hell in JS. Fixes #24
2014-07-19 09:53:41 +02:00
Thomas Perl
481400b53d
Convert Python set and iterable to JS Array
2014-06-10 18:06:22 +02:00
Thomas Perl
4548e7a2bd
Windows: Fix builds on Windows, build docs. Fixes #10
2014-02-24 19:39:27 +01:00
Thomas Perl
d3c739ad7a
Expose module version via Python module
2014-02-19 22:09:52 +01:00
Thomas Perl
87007e0b07
QRC code finally broke Python 2.x support, remove it
...
It was always scheduled to be removed once new features that use Python
3-only features are introduced (we could have written a separate
importer for Python 2, but it is explicitly a goal of the project).
2014-02-17 18:49:48 +01: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
ea0bc3433c
Access to the Qt Resource System from Python
2014-02-16 20:15:50 +01:00
Thomas Perl
87e5eaf470
PyOtherSide 1.2.0
1.2.0
2014-02-16 19:27:30 +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