1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-02-05 08:08:23 +08:00

39 Commits

Author SHA1 Message Date
Thomas Perl
160e3963ef PyOtherSide 1.5.0 2016-06-14 19:32:24 +02:00
Igor Malinovskiy
c581e4f700 Add link to VS 2010 SP1 in documentation
VS 2010 SP1 should be used to compile pyotherside on Windows, otherwise you will get error:
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
2015-12-11 09:11:31 -08:00
Martin Kolman
57a6699727 Add support for rendering SVG data to the image provider
The image provider can already render SVG images supplied
as format_data due to using QImage as backend.
This unfortunately only works correctly as long as the SVG image is
not scaled, as the image provider ignores the requested_size parameter
for format_data, causing the SVG image to be first rendered at its default size
and then scaled at the bitmap level, resulting in a very blurry image.

As there does not appear to be any easy fix for this when working with
the format_data type add a new data type called format_svg_data that
properly renders the SVG image at requested size with QtSvgRenderer.

Also the documentation has been updated to include format_svg_data
and an example has been added.
2015-10-28 01:51:08 +01:00
Thomas Perl
adb33c31c7 Minor: Typo fix in changelog 2015-02-21 20:43:07 +01:00
Thomas Perl
30c0247a80 pythonVersion: Return run-time Python version (Fixes #14) 2015-02-21 20:42:15 +01:00
Thomas Perl
84bc298b75 Fix documentation and OpenGL rendering support 2015-02-21 19:55:08 +01:00
Dennis Tomas
77ecb76492 Unified renderer interface for PyFBO and PyGLArea. 2015-02-21 13:15:49 +01:00
Dennis Tomas
1399072a9c Fixed API usage in PyGLArea example. 2015-02-21 13:14:32 +01:00
Dennis Tomas
873d168444 Improved PyGLArea documentation, added example. 2015-02-21 13:13:10 +01:00
Dennis Tomas
f08ab6be25 PyGLArea: Pass renderer object instead of function names. 2015-02-21 13:12:41 +01:00
Dennis Tomas
f8de71d449 OpenGL rendering in python. 2015-02-21 13:10:38 +01:00
Thomas Perl
289e5ed616 PyOtherSide 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
Martin Kolman
9d292e2f3a PyOtherSide for Android build instructions 2014-11-15 17:58:55 +01:00
Thomas Perl
21b416a01e Print unhandled errors to the console 2014-10-12 11:24:54 +02:00
Thomas Perl
295ef81db1 Document pyotherside.QObject wrapper usage 2014-10-11 19:34:32 +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
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
Thomas Perl
f870396346 PyOtherSide 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 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
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
b47ef00c02 Docs: QML import examples should always use latest API version 2014-02-09 17:01:11 +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
cb593f5980 PyOtherSide 1.1.0 2014-02-06 22:57:09 +01:00
Thomas Perl
aaecf7b195 Fix typos in the documentation 2014-02-06 22:53:51 +01:00
Thomas Perl
be1edb6b5c New methods: pluginVersion() and pythonVersion() 2014-02-06 22:49:43 +01:00
Thomas Perl
da02a1ce9b Update documentation with version changelog and markup fixes 2014-02-06 22:19:59 +01:00
Thomas Perl
71049fc5d7 Cleanup documentation, packaging and file structure 2014-02-06 21:17:04 +01:00
Thomas Perl
ae8145e5ef Add Sphinx-based Developer Guide documentation 2014-02-06 00:28:18 +01:00