• PetervdKamp

    I'm investigating how easy it is to use workflows for data entry purposes. If you need multiple dropdown boxes, the only way to do so is to have multiple 'Select from list' entries. I wonder if it is possible to combine multiple Select from Lists so that the user can see all the lists at once instead of make a choice from one list, then the next one is presented and so on.

    posted in Editorial read more
  • PetervdKamp

    I can also confirm this behavior, iPod Touch, iOS8.4, with Bluetooth GPS unit. With Pythonista it works OK, but not in Editorial.

    posted in Editorial read more
  • PetervdKamp

    I have a scrollview to which I add textfields and a button dynamically. For the button I use the following code:

    insert_button = ui.Button(frame = (x, y, 120, 40), name = 'insertrecord', title = 'Add record')

    Running the code, the button has the wrong size. Changing the width and height values of the frame has no effect, even if I change them into unrealistic values like 600, 200.

    However, when I change my code into:

    insert_button = ui.Button(name = 'insertrecord', title = 'Add record')
    insert_button.frame = (x, y, 120, 40)

    then everything works fine.

    Is this a bug or do I miss something?

    Peter

    posted in Pythonista read more
  • PetervdKamp

    Ok, that's clear. Are there more widgets to which this apply? As they all inherits from ui.View I thought that I could use frame the way I did first.

    Peter

    posted in Pythonista read more
  • PetervdKamp

    Thanks JonB, your solution did the trick. It didn't come to my mind to call it on the TextField object, because I was convinced that it should be called from the delegate. Kind of tunnel vision…..
    Thanks again.

    posted in Pythonista read more
  • PetervdKamp

    How to set focus to a textfield was subject of an earlier forum discussion. The solution that was given is to call textfield.begin_editing() (as present in the delegate). This method is not implemented in the current version of Pythonista. Instead there are textfield_did_begin_editing and textfield_should_begin_editing. I used both methods to give focus to a textfield, without result. So, is it still possible to give focus to a textfield? If yes, what do I wrong?

    posted in Pythonista read more
  • PetervdKamp

    OK, thanks, this makes things more clear to me. Yes, I've created a custom data source with the necessary methods, however tableview_number_of_sections does not return 1 and that's what I need.

    posted in Pythonista read more
  • PetervdKamp

    I'm trying to understand the difference between a section and a row in a TableView. When a create a datasource with e.g. 3 items and query the tableview_number_of_sections the answer is three. When I query the tableview_number_of_rows, then the answer is one, so one row in each section. My expectation however was: one section, 3 rows. So, can someone explain the difference between section and row and how they can be used within a TableView?

    Thanks,

    Peter

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!