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.
Old bugs
-
I'm seeing only one failure here with the latest P3 beta, but that's related to a Python 3 change –
f.write('a\n')
fails because the file is open in binary mode andwrite
expects a bytes object and not unicode.If you're still seeing other tests fail on your device, could you post the output here?
-
I just noticed that one
convert_point
test fails if the keyboard is visible when the test is started. -
I posted a simpler convert point doctest to the github repo.
In 1.5, the origin was wrong when converting fullscreen views using a None argument. i think it was lcked to the lower right corner. Now fullscreen has the origin priblem, and also all views have scaling problems, at least on ipad 3.
-
also, view.close() doesn't seem to work still for panel. I thought it did the first time, but now it doesn't. manually closing the view crashes P3.
-
I am having same issue on closing panel view as @JonB
The first time it worked (programmatically closed a panel view of stash). The I added some print statements in
will_close()
method to check whether it is fired. Somehow the print statements caused the system to issue aKeyboardInterrupt
exception and prevented it from working. Then I manually closed the panel view by tapping theX
button. This crashes the app and this becomes permanent. Now it crashes everytime I try to manually close a panel view. I have tried restart the app and even the device. It still persists ... -
In fact, manually closing a panel view just crashes the app no matter what. I installed the latest Pythonista 3 beta on my other device and it crashed straight away.
-
I can confirm that closing a panel view manually crashes the app. Closing the view programmatically works for me though (testing with
filenav
on Pythonista 3). -
I think the twitter module in pythonista 2 isn't quite right -> either that or I'm missing something.
No matter what I do, I can't get the results from this advanced twitter search:
https://twitter.com/search?q=Privacy OR Apple from%3ARepTedLieu&src=typdThe terms of the search being (( Privacy OR Apple ) from:RepTedLieu )
I tried passing it in as the regular search query parameter as well as {"q":"query"} parameter.
import twitter def performPrivacySearch(self): parameters = {'q':"Privacy%20OR%20Apple%20from%3ARepTedLieu&src=typd",'result_type':'mixed'} #Tried all these: #queryURL = "privacy, apple from:reptedlieu" #queryURL= "Privacy%20OR%20Apple%20from%3ARepTedLieu&src=typd" data = twitter.search(self.account,queryURL,count=2,parameters=parameters) for each in range(len(data["statuses"])): print("\n") print "=====> "+str(each) print(">user: "+str(data["statuses"][each]["user"]["screen_name"])) print data["statuses"][each]["text"] print("________________________>")
Thoughts anyone?
-
@JonB @dgelessus @ywangd I can confirm that closing panel views (both programmatically and manually) is still mostly broken, looking into it.
-
@Tizzy This works fine for me:
import twitter account = twitter.get_all_accounts()[0] def perform_search(): data = twitter.search(account, 'Privacy OR Apple from:RepTedLieu', parameters={'result_type': 'mixed'}) for status in data['statuses']: print '> user: ', status['user']['screen_name'] print status['text'] print("________________________>") perform_search()
(I've changed the structure a bit to make it work as a standalone example.)