2019-01-16 13:04:51 +01:00
|
|
|
# This Python file uses the following encoding: utf-8
|
2020-05-19 16:44:15 +02:00
|
|
|
@if '%{Module}' !== '<None>'
|
|
|
|
|
@if '%{ImportQtCore}' !== ''
|
|
|
|
|
from %{Module} import QtCore
|
2019-01-16 13:04:51 +01:00
|
|
|
@endif
|
2020-05-19 16:44:15 +02:00
|
|
|
@if '%{ImportQtWidgets}' !== ''
|
|
|
|
|
from %{Module} import QtWidgets
|
2019-01-16 13:04:51 +01:00
|
|
|
@endif
|
2020-05-19 16:44:15 +02:00
|
|
|
@if '%{ImportQtQuick}' !== ''
|
|
|
|
|
from %{Module} import QtQuick
|
2019-01-16 13:04:51 +01:00
|
|
|
@endif
|
2014-10-22 12:24:55 +02:00
|
|
|
@endif
|
|
|
|
|
|
2020-02-17 20:13:35 +01:00
|
|
|
|
2014-10-22 12:24:55 +02:00
|
|
|
@if '%{Base}'
|
2020-05-19 16:44:15 +02:00
|
|
|
class %{Class}(%{FullBase}):
|
2014-10-22 12:24:55 +02:00
|
|
|
@else
|
|
|
|
|
class %{Class}:
|
|
|
|
|
@endif
|
|
|
|
|
def __init__(self):
|
2020-05-19 16:44:15 +02:00
|
|
|
@if %{JS: [ "QObject", "QWidget", "QMainWindow", "QQuickItem" ].indexOf("%Base")} >= 0
|
|
|
|
|
%{FullBase}.__init__(self)
|
2014-10-22 12:24:55 +02:00
|
|
|
@endif
|
|
|
|
|
pass
|