-
-
boo
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.
-
boo
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)
-
boo
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?
-
boo
Worked on an ipad but not my friends iphone. This is maddeningly frustrating. This simple task should be much much easier.
-
boo
Took me a while to understand it's based on THE BUTTON'S upper left corner. Thanks. The word "center" threw me off.
-
boo
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?
-
boo
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)```
-
-
boo
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