Pythonista 3
Thanks for Your input. And cange my script to:
import ui
tel = 0
view=ui.View(frame=(0, 0, 300, 300), background_color=None, name='view')
def omdat(sender):
global tel
if tel==0:
view['Veer'].height = 120
tel = 1
elif tel == 1:
view['Veer'].height = 50
tel = 0
img = ui.ImageView(frame=(0, 100, 50, 50), background_color=(.54, .7, 1.0),name = 'Veer')
view.add_subview(img)
btn = ui.Button(frame=(200, 100, 50, 50), background_color=(.54, .3, 1.0),name = 'btn')
btn.action = omdat
view.add_subview(btn)
view.present(style='full_screen', animated=False, hide_title_bar=False, orientations='portrait')
Is my understanding good if u use style='full_screen' and orientations='portrait' your iPad screen stars in portrait?
r