Thanks for the replies. It is becoming much clearer.
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.
Posts made by boo
-
RE: ui centering
Thanks again. Looks like the example provided in the docs had me using button.center, button.height and button.width, instead of just button.frame.
-
RE: ui centering
Thanks for your help.
It seems you use:
.frame
to position the button. On the website, the basic example for Pythonista ui used:
button.center
Can you explain differences between frame and center attributes, as relates to a subview (in this case a button)
-
RE: ui centering
I simply want to position a button at a predictable position on screen (x,y) and have it stay there. What am i doing wrong?
-
RE: How do I transfer code, such as PC to IPad?
Worked on an ipad but not my friends iphone. This is maddeningly frustrating. This simple task should be much much easier.
-
RE: ui centering
Took me a while to understand it's based on THE BUTTON'S upper left corner. Thanks. The word "center" threw me off.
-
RE: ui centering
Horribly worded question. Lets try again.
Why does:
button.center =(150,150) button.width = 200 button.heigth= 75
And
button.width = 200 button.heigth= 75 Button.center(150,150)
Result in markedly different button positions?
-
ui centering
Move the commented line to the second button.center and the button moves. Why?presumedly due the the .width and .height statements.....
import ui v = ui.View() v.present('full_screen') button = ui.Button (title='button') v.add_subview(button) button.background_color = 'white' #button.center =(100,100) button.width= 360 button.height=100 button.center=(100,100)```
-
RE: How do I transfer code, such as PC to IPad?
Thanks very much. Will let you know how it goes.
-
RE: How do I transfer code, such as PC to IPad?
I have a similar question. I built an app (iphone) for work. Coworkers loved it, so they bought pythonista, SIMPLY TO USE MY APP and now I can't figure out how to share the GUI with them.
HEEEEEEEEELLLLLLLLLPPPPPPPP