MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / __init__

Method __init__

hmi/routeEdit/gui.py:298–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

296
297class MainWidget(QGraphicsView):
298 def __init__(self):
299 super().__init__()
300 self.initUI()
301 self.scaleFactor = 1
302 self.setRenderHint(QPainter.Antialiasing, True)
303 self.ctf = CoordTF(240, self.scene_map.height())
304 self.selectableLanes: dict[str, myQGraphicsPolygonItem] = {}
305 self.isSimulation = False
306 # self.zoom_speed: float = 1.0
307
308 def initUI(self):
309 self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

initUIMethod · 0.95
CoordTFClass · 0.90

Tested by

no test coverage detected