• delphee

    I see you are on 15.2.1
    I was on 15.1
    I updated to 15.2.1 and the problem is gone!
    Thank you!

    posted in Pythonista read more
  • delphee

    First, I am an amateur, so this may be due to my own bad programming practices, but up until IOS 15 this has been working.
    The following script acts differently on IOS 15 than on previous versions. On IOS 15, when you press the 'add' button, you can see that 'done' is printed on the console immediately. The wait_modal() keeps the view from closing, but otherwise it is being ignored. I have an app our company has been using for years that won't work on IOS 15 unless I can figure this out. Can anyone help?

    import ui
    
    ww,hh = ui.get_screen_size()
    
    class Another_view(ui.View):
            
        def __init__(self):
            self.c =ui.Button(title='quit',action=self.quitit)
            self.add_subview(self.c)
        
        def quitit(self,sender):
            self.close()
    
    class One_view(ui.View):
            
        def __init__(self):
            self.bg_color='white'
            self.b=ui.Button(title='add',action=self.add_another_view)
            self.b.center=(int(ww/2),100)
            self.add_subview(self.b)
            
        def add_another_view(self,sender):
            av = Another_view()
            av.present()
            av.wait_modal()
            self.close()
            print('done')
    
    ov=One_view()   
    ov.present()
    ov.wait_modal()```

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!