File size: 1,311 Bytes
b2fbb41 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
from qtpy.QtCore import Qt
from qtpy.QtGui import QPixmap, QPixmap
from qtpy.QtGui import QCursor
from functools import cached_property
class RotateCursorList:
@cached_property
def Cursor0(self):
return QCursor(QPixmap(r'icons/rotate_cursor0.png'))
@cached_property
def Cursor1(self):
return QCursor(QPixmap(r'icons/rotate_cursor1.png'))
@cached_property
def Cursor2(self):
return QCursor(QPixmap(r'icons/rotate_cursor2.png'))
@cached_property
def Cursor3(self):
return QCursor(QPixmap(r'icons/rotate_cursor3.png'))
@cached_property
def Cursor4(self):
return QCursor(QPixmap(r'icons/rotate_cursor4.png'))
@cached_property
def Cursor5(self):
return QCursor(QPixmap(r'icons/rotate_cursor5.png'))
@cached_property
def Cursor6(self):
return QCursor(QPixmap(r'icons/rotate_cursor6.png'))
@cached_property
def Cursor7(self):
return QCursor(QPixmap(r'icons/rotate_cursor7.png'))
def __getitem__(self, idx):
return self.__getattribute__('Cursor' + str(idx))
resizeCursorList = [
Qt.CursorShape.SizeFDiagCursor,
Qt.CursorShape.SizeVerCursor,
Qt.CursorShape.SizeBDiagCursor,
Qt.CursorShape.SizeHorCursor
]
rotateCursorList = RotateCursorList() |