• frankL

    This is the portion of the code that is relevant. The main view (named "view") has a button named "AddNext" that when pressed opens a subview from the function "add_next". This all works fine but I would like the subview to be smaller than the main view.

    Here is the crux of the code:
    import ui

    def add_next(sender):
    add_view = ui.View(frame = (0, 100, 414, 736))
    sender.navigation_view.push_view (add_view)
    return

    w, h = ui.get_screen_size()
    view=ui.View(name='test', bg_color='#D98880', frame=(0, 0, w, h))

    add_button = ui.Button(title='AddNext', frame=(250,65,280,100),border_color='black', border_width=2, corner_radius = 10, tint_color = 'black', background_color='yellow', action=add_next, font=('Arial Rounded MT Bold',18))
    add_button.width=100
    add_button.height=40
    add_button.enabled=False
    view.add_subview(add_button)

    nav_view = ui.NavigationView(view)
    nav_view.present('sheet')

    posted in Pythonista read more
  • frankL

    I mean the size of the navigation window that is created when invoked. The one that is created is the same size as the primary view window. I create it using a view=ui.view() and sender.navigation_view.push(view)

    posted in Pythonista read more
  • frankL

    Is it possible to change the size of a navigation subview on an iphone? I have tried setting the frame parameters which hasn't worked. I have tried setting the bound parameters which will affect where the widgets are placed in the subview but not the size of the subview. Is there any way to resize the subview and, if so, how?

    posted in Pythonista read more
  • frankL

    That works! Thank you!

    posted in Pythonista read more
  • frankL

    I downloaded the Shortcuts app and have been trying to get it to open my pythonista script. When I run the shortcut, I keep getting a "file not found" error. I've tried various pathnames to the file and none seem to work. The script is in a subfolder in the "This iPhone" folder. I tried moving the script to the "This iPhone" folder and that doesn't work either. Any suggestions?

    posted in Pythonista read more
  • frankL

    Thank you

    posted in Pythonista read more
  • frankL

    I have written a few useful pythonista scripts for my iphone and I would like to be able to launch each script separately from its own home screen icon. I have searched but can't find any information on how to do this. Is there a way to do this?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!