• cg-mag

    @JonB , Thank you!! I'll try.

    posted in Pythonista read more
  • cg-mag

    @Gerzer said:

    Patience is a virtue! Does the button partially appear only in landscape? Or does the problem occur in portrait as well?

    Start program at portrait. When rotate phone button was partially apearing.

    posted in Pythonista read more
  • cg-mag

    Any comment?

    posted in Pythonista read more
  • cg-mag

    I use this code.

    import ui
    
    def button_tapped(sender):
        v = ui.View()
        v.background_color = 'green'
        v.name = 'Pushed View'
        sender.navigation_view.push_view(v)
    
    root_view = ui.View()
    root_view.background_color = 'white'
    root_view.name = 'Root View'
    
    button = ui.Button(title='Tap me')
    button.action = button_tapped
    button.bring_to_front()
    button.background_color = 'gray'
    root_view.add_subview(button)
    nav_view = ui.NavigationView(root_view)
    nav_view.present()
    

    When I rotate my Iphone the button is cutting.
    https://pp.vk.me/c621928/v621928381/41dd5/LiEgFgmEZBo.jpg
    How to fix it? Thanks..

    And I have another questions. Can I run some script when user pressed the button 'back' at the navigation view? Thanks.

    posted in Pythonista read more
  • cg-mag

    Thank you).

    posted in Pythonista read more
  • cg-mag

    Thank you a lot! Problem was in that - button was created but in left upper conner - very high. I move scroll view down and now all works right!!
    Now I have new questions) - can i add 2 ui.label in each raw in table view?

    posted in Pythonista read more
  • cg-mag

    I start new script and do this. I have the same

    posted in Pythonista read more
  • cg-mag

    No Name - it is not control. It is standart title... Scroll view I move to back. There obly 2 objects - scroll view and buuuton. All in the center with standart sizes.
    Action from button have executed and I can change with this action for example content_size, but I can not add button!
    I can change in scrollView anything, but can`t add new ui element

    posted in Pythonista read more
  • cg-mag

    @Phuket2, Yes I have correct names.
    photos below.
    http://cs621927.vk.me/v621927381/398fc/AilzRGS9vNA.jpg
    http://cs621927.vk.me/v621927381/39905/ZCm19WhP38U.jpg
    It is a simple scene. Where can i mistake?((

    posted in Pythonista read more
  • cg-mag

    I'll think about tableView. Thanks. But it will be later..
    I touch the button, but nothing was heppend(.
    "action_butt" execute..

    # coding: utf-8
    
    import ui
    
    def action_butt(sender):
        v=sender.superview
        myScrollView=v['scrollview1']
        butt = ui.Button(title='test')
        myScrollView.add_subview(butt)
    
    v=ui.load_view('Untitled 5')
    v.present()
    

    I need to understend the principle of work with views..

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!