• BGKirkham

    @shinyformica

    Thanks for the explanation. I have been using the tuple as you indicated because I do manually fiddle with it at times, which is how I noticed the disconnect. It's now more of a curiosity.

    posted in Pythonista read more
  • BGKirkham

    I have a ListDataSource as the data_source and delegate for a TableView.

    What is the relationship between the TableView.selected_row and the TableView.data_source. selected_row? They don’t appear to talk to each other. You can set one without affecting the other, and vice versa. Is that by design, or am I missing something?

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Thank you for the info. I'll look into it when I have time. I've moved on to another project, but I will likely come back to this one soon. I also need to extract my scrolling tableview from this project and post the code.

    posted in Pythonista read more
  • BGKirkham

    I found this post that you did.

    posted in Pythonista read more
  • BGKirkham

    @cvp

    It looks like you did a great job. I wouldn’t necessarily want to get the code, but can you tell me how you handled the maps? Is it an imported image or are you using something like google maps interactively?

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Is this something you wrote? When I saw it I thought it would be cool to show that type of view for people I talk to.

    posted in Pythonista read more
  • BGKirkham

    @crazyfox

    Not a problem. I’m still learning Pythonista myself although I have a ton of experience with other languages. It’s always good to ask questions as it helps you and others with the same question.

    posted in Pythonista read more
  • BGKirkham

    @crazyfox

    @cvp nailed it. It’s a button that shows a TableView when it is clicked. The selected item in the TableView is extracted and placed in the TextField. Then the TableView is hidden again. Here is a pic of mine dropped down

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Thanks for the info

    posted in Pythonista read more
  • BGKirkham

    Is there a way to "publish" a stand-alone app to my personal iPad and not go through the regular Apple publishing process?

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Well, that was so obvious it didn’t occur to me. In my defense, I’m only on my second cup of coffee.

    Thanks

    posted in Pythonista read more
  • BGKirkham

    I load a view when the user presses the “Find” button as shown below.

    I have a TextField delegate and I want to be able to close the view from “textfield_did_end_editing”

    Is there a internal way that allows the delegate to call close() for the view it’s in. I know I can define a variable in the delegate that contains a reference to the view and a function to set it, but I was hoping for something more elegant.

    posted in Pythonista read more
  • BGKirkham

    I'd like to see Scipy included.

    posted in Pythonista read more
  • BGKirkham

    @mikael

    I understand. I have control over them now, I didn’t previously. They were going to be automatically deleted after a month on the Apple cloud site.

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Fixed in both posts

    posted in Pythonista read more
  • BGKirkham

    @mikael

    Will do.

    I’ve been including links to my screen shots, which will eventually disappear. Is there a way to directly embed the image in my post?

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Thank you for the suggestion.

    I ended up going a different way. I made the header a TableView above the Scrollview. I then added a scroll delegate to the scroll view which sets the header scroll position based on the scrollview position

    class MyScrollViewDelegate (object):
            def scrollview_did_scroll(self, scrollview):
                x = scrollview.content_offset[0]
                hv = scrollview.superview['headerView']
                hv.content_offset = (x, 0) 
    

    Shown scrolled a little

    This implementation doesn’t allow scrolling based on the user dragging the header. I decided it wasn’t that important to me.

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Yes, that gets the columns defined the same, but I’m not sure how that handles the scrollview scroll event to move the header table. Unless I’m not understanding something. But really it should be able to work both way. If I scroll the header to the right, then the scrollview needs to be scrolled to the right by the same amount. And vice versa. I hope that’s clear.

    posted in Pythonista read more
  • BGKirkham

    @cvp

    Thanks for the suggestion. That should work. I’ll have to provide a way to horizontally scroll the header table when the scrollview scrolls horizontally.

    posted in Pythonista read more
  • BGKirkham

    @mikael

    Thank you. That seemed to solve my problem. I had to (set sv.directional_lock_enabled = True) to get it to behave right.

    Now I need to work on always displaying the top row (header) of the table during a vertical scroll.

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!