2019-01-16 13:04:51 +01:00
|
|
|
# This Python file uses the following encoding: utf-8
|
|
|
|
|
@if '%{Module}' === 'PySide2'
|
|
|
|
|
@if '%{ImportQtCore}'
|
|
|
|
|
from PySide2 import QtCore
|
|
|
|
|
@endif
|
|
|
|
|
@if '%{ImportQtWidgets}'
|
|
|
|
|
from PySide2 import QtWidgets
|
|
|
|
|
@endif
|
|
|
|
|
@if '%{ImportQtQuick}'
|
|
|
|
|
from PySide2 import QtQuick
|
|
|
|
|
@endif
|
|
|
|
|
@else
|
|
|
|
|
@if '%{ImportQtCore}'
|
|
|
|
|
from PyQt5 import QtCore
|
|
|
|
|
@endif
|
|
|
|
|
@if '%{ImportQtWidgets}'
|
|
|
|
|
from PyQt5 import QtWidgets
|
|
|
|
|
@endif
|
|
|
|
|
@if '%{ImportQtQuick}'
|
|
|
|
|
from PyQt5 import QtQuick
|
|
|
|
|
@endif
|
2014-10-22 12:24:55 +02:00
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if '%{Base}'
|
|
|
|
|
class %{Class}(%{Base}):
|
|
|
|
|
@else
|
|
|
|
|
class %{Class}:
|
|
|
|
|
@endif
|
|
|
|
|
def __init__(self):
|
|
|
|
|
@if '%{Base}' === 'QWidget'
|
|
|
|
|
QtWidgets.QWidget.__init__(self)
|
|
|
|
|
@endif
|
|
|
|
|
@if '%{Base}' === 'QMainWindow'
|
|
|
|
|
QtWidgets.QMainWindow.__init__(self)
|
|
|
|
|
@if '%{Base}' === 'QQuickItem'
|
|
|
|
|
QtQuick.QQuickItem.__init__(self)
|
|
|
|
|
@endif
|
|
|
|
|
pass
|
|
|
|
|
|