Firebug Lite:
Titanium.API.debug(msg) to log to console
does this really work? have to do —console on app run?
target=“ti:systembrowser”
Importing modules <pre> class HelloWorld: def hello(self): import os, sys resources_dir = Titanium.App.appURLToPath("app://index.html") resources_dir = os.path.split(resources_dir)[0] sys.path.append(resources_dir) from gluon.sql import SQLDB db = SQLDB('sqlite://storage.db')
<pre> class HelloWorld: def hello(self): import os, sys resources_dir = Titanium.App.appURLToPath("app://index.html") resources_dir = os.path.split(resources_dir)[0] sys.path.append(resources_dir) from gluon.sql import SQLDB db = SQLDB('sqlite://storage.db')
Titanium.API.set(‘py.helloworld’, HelloWorld())
There was an error while loading. Please reload this page.