pylint and autopep8 all python files
This commit is contained in:
@@ -9,24 +9,27 @@
|
||||
# Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
#
|
||||
|
||||
import PyKDDockWidgets
|
||||
|
||||
from PySide2 import QtWidgets, QtGui, QtCore
|
||||
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
|
||||
|
||||
from PySide2 import QtGui, QtCore
|
||||
from MyWidget import MyWidget
|
||||
|
||||
|
||||
class MyWidget3(MyWidget):
|
||||
|
||||
def __init__(self, parent = None):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(":/assets/base.png", ":/assets/KDAB_bubble_fulcolor.png", parent)
|
||||
self.m_triangle = QtGui.QImage(":/assets/tri.png")
|
||||
self.triangle = QtGui.QImage(":/assets/tri.png")
|
||||
|
||||
def paintEvent(self, ev):
|
||||
def paintEvent(self, event):
|
||||
del event # unsed at this time
|
||||
p = QtGui.QPainter(self)
|
||||
p.fillRect(self.rect(), QtGui.QColor(0xD5, 0xD5, 0xD5))
|
||||
p.drawImage(self.m_background.rect(), self.m_background, self.m_background.rect())
|
||||
|
||||
targetRect = QtCore.QRect(QtCore.QPoint(self.width() - self.m_triangle.width(), self.height() - self.m_triangle.height()), self.m_triangle.size())
|
||||
p.drawImage(self.background.rect(),
|
||||
self.background, self.background.rect())
|
||||
|
||||
QtCore.QRect(QtCore.QPoint(self.width() - self.triangle.width(),
|
||||
self.height() - self.triangle.height()),
|
||||
self.triangle.size())
|
||||
|
||||
self.drawLogo(p)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user