this also works

pull/35003/head
Cameron Clough 1 week ago
parent e5850df37b
commit c2a2f353f7
  1. 10
      system/ui/lib/wrapper.py

@ -1,19 +1,13 @@
import threading
import time
from abc import ABC, abstractmethod
from typing import Generic, TypeVar
from openpilot.system.ui.lib.application import gui_app
class Renderer(ABC):
@abstractmethod
def render(self) -> None:
pass
class Renderer:
def render(self): ...
T = TypeVar("T", bound=Renderer)
class Wrapper(Generic[T]):
def __init__(self, title: str, renderer_cls: type[T], *args):
self._title = title

Loading…
Cancel
Save