28 lines
811 B
Python
28 lines
811 B
Python
#
|
|
# This file is part of KDDockWidgets.
|
|
#
|
|
# SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
|
# Author: Renato Araujo Oliveira Filho <renato.araujo@kdab.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
|
#
|
|
# Contact KDAB at <info@kdab.com> for commercial licensing options.
|
|
#
|
|
|
|
from PySide2 import QtWidgets, QtGui
|
|
|
|
from MyWidget import MyWidget
|
|
|
|
|
|
class MyWidget1(MyWidget):
|
|
def __init__(self, parent = None):
|
|
super().__init__(":/assets/triangles.png", ":/assets/KDAB_bubble_white.png", parent)
|
|
|
|
|
|
def paintEvent(self, ev):
|
|
p = QtGui.QPainter(self)
|
|
p.fillRect(self.rect(), QtGui.QColor(0xCC, 0xCC, 0xCC))
|
|
p.drawImage(self.m_background.rect(), self.m_background, self.m_background.rect())
|
|
self.drawLogo(p)
|
|
|