-
Notifications
You must be signed in to change notification settings - Fork 0
Maps
maciekgamma edited this page Jan 25, 2020
·
3 revisions
Main widget for maps. Uses Map class.
- PyQt5
- os
- sys
import RocketMaps
Methods Inherited from QWidget
- PyQt5
- os
- sys
from RocketMaps import Map
Implementation:
def addPointToPath(self, x, y, color):
comand = 'addPointToPath("{}", "{}", "{}");'.format(x, y, color)
print(comand)
self.page().runJavaScript(comand)
Parameters:
- x - first coordinate for point (float)
- y - second coordinate for point (float)
- color - color of the point (string, Hex color)
Usage:
addPoint(51, 23, '#123123')
Methods Inherited from QtWebEngineWidgets.QWebEngineView.