Skip to content
maciekgamma edited this page Jan 25, 2020 · 3 revisions

RocketMap

Main widget for maps. Uses Map class.

Import

Dependencies:

  • PyQt5
  • os
  • sys

Import

import RocketMaps

Methods

Methods Inherited from QWidget

Map

Dependencies:

  • PyQt5
  • os
  • sys

Import

from RocketMaps import Map

Methods

addPointToPath

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')

Other

Methods Inherited from QtWebEngineWidgets.QWebEngineView.

Clone this wiki locally