omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. boo

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 10
    • Best 0
    • Controversial 0
    • Groups 0

    boo

    @boo

    0
    Reputation
    603
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    boo Unfollow Follow

    Latest posts made by boo

    • RE: ui centering

      Thanks for the replies. It is becoming much clearer.

      posted in Pythonista
      boo
      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.

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

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

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

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

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

      posted in Pythonista
      boo
      boo
    • 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)```
      posted in Pythonista
      boo
      boo
    • RE: How do I transfer code, such as PC to IPad?

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

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

      posted in Pythonista
      boo
      boo