• brumm

    "TextField.action: A function or method that gets called when text field has finished editing."
    So you could check if all textfields have a valid value, insert them to your db and clear the textfield.text

    def textfield_action(self, textfield):
        # This is called after pressing RETURN
        if ...
            c.execute...
            self.tf_first.text = ''
            ...
    
    

    Btw. this is an example of a own view class.

    posted in Pythonista read more
  • brumm

    Don't know if it's still working... Workflow

    posted in Pythonista read more
  • brumm

    Have you read all the comments in the getting started section? Here Or do you create a pyui project with a separate pyui file? Then you could write e.g. button_tapped in the Action field in the button preferences.

    import ui
    
    def button_tapped(sender):
        sender.title = 'Hello'
    
    v = ui.load_view()
    v.present('sheet')
    

    posted in Pythonista read more
  • brumm

    length = len(self.view['tableview1'].data_source.items)
    r = []
    for i in range(1, length):
        t = tuple([0, i])
        r.append(t)
        self.view['tableview1'].selected_rows = r
    

    posted in Pythonista read more
  • brumm

    TableView.selected_rows needs a sequence of selected rows, each as a 2-tuple (section, row). try (0, row)

    posted in Pythonista read more
  • brumm

    PhoneManager
    Some fixes and now with photo multiselect

    posted in Pythonista read more
  • brumm

    How do you store your photos? New default format is HEIF and not JPEG. Maybe that‘s the reason, but I‘m not sure.

    posted in Pythonista read more
  • brumm

    Why do you want to close a site? Typically you close the app, change a site or stop loading...
    Here you find a small example look for "Webbrowser".

    posted in Pythonista read more
  • brumm

    ... or PhoneManager > Rename :)

    posted in Pythonista read more
  • brumm

    with open('file.csv', 'r', encoding='utf-8') as f:
    

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!