Can you develop apps for Pythonista iPad on a Mac then port across?
I guess the question I am asking is are all the modules available in Pythonista on the iPad available when scripting using a python IDE on the Mac? And then use iCloud to port the .py file to the iPad once finished (or mainly finished)?
I appreciate (now) that some modules such as pygame and tkinter are not able to be imported into Pythonista due to them containing elements of C code, but is this the same vice-versa - I am thinking of the scene and UI modules particularly. Is there a way to use those for iPad development on a Mac?
I'm working on a project to enable exactly this! See https://github.com/hbmartin/pythonista-stubs
However, I haven't implemented ui or scene yet, but would be happy to collaborate on those.
@hmartin I can’t participate because of my level sadly but keep up the good work, it is so nice to see such persons like you who help the community with their projects ! Good luck man !
I'd love to help, but alas my knowledge is a million miles away from yours, sir! This does indeed sound like a great project though, and I'd be very interested to see how it progresses.
My temporary solution to developing Pythonista code on my Mac is to simply use iCloud. I generate the main script on the iPad in the cloud, then open that file in PyCharm on the Mac, edit it using that, then when ready to test, I save it and after a few seconds the iPad version automatically updates and I use Pythonista breakpoints on the iPad to test and debug.
Yep, it sure is a cumbersome method for writing, scripting and debugging et al, but as I said... despite being in my mid 50's, I'm a total noobie to all this, but am totally loving the learning process.
Must admit @mikael - apologies but no, I have yet to try this. I just had a look at the GIT page, and I am not too sure of how to get this working and where exactly to place the files in the git repository!! Should they go on the iPad or in my Mac somewhere?
Not sure I have figured out what this actually is yet.... haha! I did say I was a noobie.
@themusicman, sorry, I have never used it, just thought it might be what you are looking for.
you need an apple developer account, and xcode. the template files are a XCode template
@themusicman Maybe you should try using UniPAGE then you may write and test your codes on all major platforms without modification (MS Windows, OS X, Linux, IOS [Pythonista], Android [Pydroid recommended]). For all the desktop environment you will need to install Kivy (already preinstalled in Pydroid). All the basic UI elements (Button, Text input, label etc…) are included. You do not have to install the module you can just add your code to it. I wanted to include TKinter to make it truly universal on most versions of Python with absolutely no installation necessary but I never got the chance to do it. I probably will try to spare some time in the coming weeks to do that. You may even use an extension to UniPAGE called Graphics Agnostic Python (GAP) which provides a visual interface designer that automatically generates a “.py” file with the complete interface.
@hmartin I might try adding the
scenestubs later as well. Got to admit I haven't used them so far, so that's going to be a bit of practice first before I can confidently stub them. (I'm boisei0 on github)