Skip to content
Snippets Groups Projects

Add scheduler GUI

Merged Oscar Gustafsson requested to merge scheduler-gui into master
6 files
+ 117
17
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -10,7 +10,7 @@ import sys
from typing import Any, Optional
from pprint import pprint
from typing import Any, Union, Optional, overload, Dict, List, TypeAlias
from typing_extensions import Self
# from typing_extensions import Self
import numpy as np
from copy import deepcopy
from math import cos, sin, pi
@@ -151,12 +151,12 @@ class GraphicsAxesItem(QGraphicsItemGroup):
"""Register an object that receives events."""
self._event_items.append(item)
def set_height(self, height: int) -> "Self":
def set_height(self, height: int) -> "GraphicsAxesItem":
# TODO: implement, docstring
raise NotImplemented
return self
def set_width(self, width: int) -> "Self":
def set_width(self, width: int) -> "GraphicsAxesItem":
# TODO: docstring
assert width >= 0, f"'width' greater or equal to 0 expected, got: {width}."
delta_width = width - self._width
Loading