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

Method initUI

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

Source from the content-addressed store, hash-verified

306 # self.zoom_speed: float = 1.0
307
308 def initUI(self):
309 self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
310 self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
311 self.setDragMode(QGraphicsView.ScrollHandDrag)
312 self.scene_map = myQGraphicsScene()
313 self.scene_map.setSceneRect(0, 0, 600, 600)
314 # self.scene_map.setBackgroundBrush(Qt.white)
315 self.setScene(self.scene_map)
316
317 def paintEvent(self, event: QPaintEvent):
318 super().paintEvent(event)

Callers 1

__init__Method · 0.95

Calls 1

myQGraphicsSceneClass · 0.85

Tested by

no test coverage detected