From 43da01a538a5c6724505026b4a84b559d5e56219 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 3 May 2019 16:31:32 +0200 Subject: More ui refactoring --- src/ui_widgets.py | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'src/ui_widgets.py') diff --git a/src/ui_widgets.py b/src/ui_widgets.py index 384b948..42fda7c 100644 --- a/src/ui_widgets.py +++ b/src/ui_widgets.py @@ -3,7 +3,35 @@ from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * -from ui import GUI, Pens # the fuck +from ui import GUI + + + +class Pens: + axes = QPen(Qt.gray) + + ellipse = QPen(Qt.black) + ellipse.setWidth(2) + + axis_linear = QPen(QColor(201, 141, 0)) + axis_linear.setWidth(2) + axis_linear.setStyle(Qt.DashDotLine) + + axis_fast = QPen(QColor(51, 87, 123)) + axis_fast.setWidth(2) + axis_fast.setStyle(Qt.DashDotLine) + + axis_slow = QPen(QColor(55, 123, 51)) + axis_slow.setWidth(2) + axis_slow.setStyle(Qt.DashDotLine) + + alpha = QPen(Qt.red) + theta = QPen(Qt.blue) + + radii = QPen(Qt.black) + radii.setStyle(Qt.DashDotLine) + + class ExpandingSpacer(QSpacerItem): def __init__(self): -- cgit