コード例 #1
0
 def initCountly(self, thread_size):
     global countly
     countly = Countly("API_URL", "APP_KEY", thread_size, str(sp(Window.width)) + "+" + str(sp(Window.height)))
コード例 #2
0
 def initCountly(self, thread_size):
     global countly
     countly = Countly("API_URL", "APP_KEY", thread_size, str(screen_resolution.width()) + "x" + str(screen_resolution.height()))
コード例 #3
0
import sys
import os.path

sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))

from common.Countly import Countly

temperature = 30
light = 50

countly = Countly("SERVER_URL", "APP_KEY", 5)
countly.event('Temperature', temperature)
countly.event("Light", light)
コード例 #4
0
 def initCountly(self, thread_size):
     global countly
     countly = Countly(
         "API_URL", "APP_KEY", thread_size,
         str(gtk.gdk.screen_width()) + "x" + str(gtk.gdk.screen_height()))