-
michael_recchione
Is there a way to tell which of the iOS location services are being used, and what the source of the location measurement is, i.e. GPS, WiFi, cell? Also, if GPS, is there a way to tell how many satellites were seen to get the measurement?
Trying to identify sources of systematic location errors...
Thanks!
-
michael_recchione
I just got an iPhone, and have a bunch of scripts with UIs that I developed on the iPad. When I brought them over to the iPhone, they don't resize or scroll, so many of the entry fields and buttons are not accessible. Is there a way to fix this without recreating the pyui file from scratch?
Thanks!
-
michael_recchione
That would let me FTP directly from my iPad to my iPhone? Sure!
-
michael_recchione
I'm sorry for what's probably a stupid question, but I've been struggling with this for a while, and can't find the answer...
I'm using dropbox to copy files from my pythonista scripts directory on my iPad to my iPhone. When I open a .py file in the editor, the wrench gets me menu that allows me to export the file to dropbox. There doesn't appear to be anything like that when I open the .pyui file. How can I export that file to dropbox?
Thanks!
-
-
michael_recchione
I just spent an hour moving controls around, changing font sizes, resizing things so the UI would fit on the phone. As porting an app goes, an hour isn't that bad, I guess. But still - it would be nice if there were a more elegant way to do this, and I'll bet their probably is...
For example, the phone I got was an iPhone6. Would I need to mess around with the UI for each different screen size?
-
michael_recchione
I figured out a workaround, by putting the .pyui file into a folder, and exporting the whole folder, using Dropbox File Picker to get the folder, and zipfile.extract() to get the files. Very cumbersome, though. Is there an easier way?
-
michael_recchione
I've been trying the following:
import canvas
from PIL import Imageim = Image.open("./myfile.jpg")
image = im.tobitmap()
canvas.draw_image(image,0,0,600,600)
I keep getting the error on the line calling tobitmp: "ValueError: Not a bitmap"
What am I doing wrong?
Thanks!
-
michael_recchione
Thanks, this worked!
I tried used one of the online converters to convert an image from jpg to bmp, but when I tried to use it with canvas.draw_image, it claimed that the bitmap compression wasn't supported. So, bottom line, I haven't yet been successful in getting draw_image() to work.
-
michael_recchione
I would like to build an app that keeps track of location, signal strength, data rates for data connections, information about drops, blocks, call quality, connection times, etc. Is there a way to access this information in the iPhone from pythonista? Or anywhere, for that matter? I know there are apps that do this (and sell the information to cellular service providers), but I'd like to create one myself...
Any ideas?