• brumm

    Have you tried this?

    posted in Pythonista read more
  • brumm

    Yes, there is a workaround. Select the video in the Files app and run the import file script. Don't know if there's a size limit, just tested it with a small one.

    posted in Pythonista read more
  • brumm

    When you set .bordered to False you can change the settings (workaround)

            self['textfield1'].enabled = False
            self['textfield1'].bordered = False
            self['textfield1'].border_width = 0
            self['textfield1'].background_color = 'blue'
            self['textfield1'].text_color = 'white'
    

    posted in Pythonista read more
  • 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

Internal error.

Oops! Looks like something went wrong!