small pattern and fix circle arc
This commit is contained in:
@@ -10,7 +10,7 @@ from PySide6.QtWidgets import (
|
||||
QWidget,
|
||||
)
|
||||
|
||||
from grid.ui.pattern import Pattern
|
||||
from grid.ui.pattern import LargeUltimaPattern, SmallZPattern
|
||||
|
||||
|
||||
class Window(QWidget):
|
||||
@@ -21,14 +21,10 @@ class Window(QWidget):
|
||||
|
||||
self.scene = QGraphicsScene(0, 0, 400, 400)
|
||||
|
||||
pp1 = Pattern(0, 0)
|
||||
pp2 = Pattern(401, 0)
|
||||
pp3 = Pattern(0, 401)
|
||||
pp4 = Pattern(401, 401)
|
||||
pp1 = LargeUltimaPattern(0, 0)
|
||||
pp2 = SmallZPattern(401, 0)
|
||||
self.scene.addItem(pp1)
|
||||
self.scene.addItem(pp2)
|
||||
self.scene.addItem(pp3)
|
||||
self.scene.addItem(pp4)
|
||||
|
||||
view = QGraphicsView(self.scene)
|
||||
view.setRenderHint(QPainter.RenderHint.Antialiasing)
|
||||
|
||||
Reference in New Issue
Block a user