Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/m/o/modrana-HEAD/modules/gui_modules/gui_qml/gui_qml.py   modrana(Download)
        self.modrana.watch('locationUpdated', self._posChangedCB)
 
        pos = self.modrana.get('pos', constants.DEFAULT_COORDINATES)
        speed = self.modrana.get('speed', 0)
        bearing = self.modrana.get('bearing', 0)

src/m/o/modrana-HEAD/modules/mod_projection.py   modrana(Download)
from core.tilenames import *
from core import geo
from core.constants import DEFAULT_COORDINATES
from math import *
import math
        else: # use default position
            self.set("pos", DEFAULT_COORDINATES) # Brno
            (lat, lon) = DEFAULT_COORDINATES
 
        self.recentre(lat, lon)