Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Undocumented function?
-
Module
scene
has a function calledsize
which seems to return the size of the display, but I can't seem to find it here: http://omz-software.com/pythonista/docs/ios/scene ? : ] -
-
Heh, no. This is a method of a class Scene, and I am talking about the scene module itself (
scene.size
notscene.Scene.size
) -
https://forum.omz-software.com/topic/1506/undocumented-functions-and-classes Gives you code for automatically finding in documented functions and classes... It needs a bit of workout it is a step in the right direction..
In scene, the thing that really drives me nuts is...
>>> import scene >>> scene.size() Size(1024.00, 768.00) >>> scene.Size() Size(0.00, 0.00) scene.Scene().size Size(1024.00, 768.00)
-
It's only there for backwards compatibility, and intentionally not documented, so it doesn't show up in code completion (which is partially based on the documentation index). I'd recommend using the equivalent
get_screen_size()
instead.