nixoid
Jan 30, 2014 - 22:38
Hi!
Using pythonista i find many good classes: Button, TextLayer etc.
Where I can read documentation of this classes (without console)?
Hi!
Using pythonista i find many good classes: Button, TextLayer etc.
Where I can read documentation of this classes (without console)?
scene.Button and scene.TextLayer are "undocumented" classes so:
See OMZ's comments in: http://omz-forums.appspot.com/pythonista/post/5356769110917120
You can however read the source code for them...
import inspect, scene
print(inspect.getsource(scene.Button))
print(inspect.getsource(scene.TextLayer))
Thanks!
Fantastical app ))
And more: I don't find in docs about run() function for run scene subclasses.
@nixoid: It's here: http://omz-software.com/pythonista/docs/ios/scene.html#scene.run
KeyboardHack.py rebuilt to leverage scene.Button: https://gist.github.com/cclauss/8427853