• boo

    Thanks for the replies. It is becoming much clearer.

    posted in Pythonista read more
  • 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.

    posted in Pythonista read more
  • 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)

    posted in Pythonista read more
  • 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?

    posted in Pythonista read more
  • boo

    Worked on an ipad but not my friends iphone. This is maddeningly frustrating. This simple task should be much much easier.

    posted in Pythonista read more
  • boo

    Took me a while to understand it's based on THE BUTTON'S upper left corner. Thanks. The word "center" threw me off.

    posted in Pythonista read more
  • 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?

    posted in Pythonista read more
  • 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)```

    posted in Pythonista read more
  • boo

    Thanks very much. Will let you know how it goes.

    posted in Pythonista read more
  • 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

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!