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.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by BGKirkham
-
RE: TableView Selected Row
-
TableView Selected Row
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?
-
RE: Closing a view from a TextField Delegate
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.
-
RE: Closing a view from a TextField Delegate
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?
-
RE: Closing a view from a TextField Delegate
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.
-
RE: Closing a view from a TextField Delegate
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.
-
RE: Closing a view from a TextField Delegate
@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
-
Publish to iPad
Is there a way to "publish" a stand-alone app to my personal iPad and not go through the regular Apple publishing process?
-
RE: Closing a view from a TextField Delegate
Well, that was so obvious it didn’t occur to me. In my defense, I’m only on my second cup of coffee.
Thanks
-
Closing a view from a TextField Delegate
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.
-
RE: Horizontal scroll TableView
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.
-
RE: Horizontal scroll TableView
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?
-
RE: Horizontal scroll TableView
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.
-
RE: Horizontal scroll TableView
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.
-
RE: Horizontal scroll TableView
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.
-
RE: Horizontal scroll TableView
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.