Remove propertize

This commit is contained in:
adrienmalin
2018-08-20 23:06:11 +02:00
parent 6fe1537ee5
commit 8fdb2897b1
5 changed files with 3 additions and 141 deletions

View File

@ -4,16 +4,16 @@
from .consts import CLOCKWISE
from .qt5 import QtCore
from .propertize import propertize, rename_attributes, snake_case
@propertize("", "set_")
@rename_attributes(snake_case)
class Point(QtCore.QPoint):
"""
Point of coordinates (x, y)
"""
x = property(QtCore.QPoint.x, QtCore.QPoint.setX)
y = property(QtCore.QPoint.y, QtCore.QPoint.setY)
def rotate(self, center, direction=CLOCKWISE):
""" Returns the Point image of the rotation of self
through 90° CLOKWISE or COUNTERCLOCKWISE around center"""