Thanks for all the help guys. See, I am still trying to figure this out. All students get their own iPad mini with Pythonista on it. They are locked into Pythonista, but I want them coding without using webbrowser. I wish I could just access the internals of Pythonista and simply delete the module. In the meantime, I would settle for some parental restrictions in the module. I don't want the students randomly surfing the web, but sites like this one and stackoverflow might be fine. Any ideas?
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 jbap
-
RE: Delete Module
-
RE: Delete Module
I am teaching a classroom full of 14 year olds; their skill set might surprise you.
-
RE: Delete Module
I want to remove it from the app. I want to delete webbrowser.py. I want to never be able to import webbrowser again, not only in the same program, but appwide.
-
RE: Delete Module
I just want to get rid of the webbrowser module completely. So it is not on the app anymore.
-
In-App Purchases
Hello, I was wondering if I can add in-app purchases into my app. I read through apple's manual, but it is all in objc and swift. I was curious as to whether this can be accessed, maybe through objc-util. Is this possible? I want to release a free app and still make some money.
-
RE: NavigationView does not like being presented as a panel
just curious, why cant you add it as a subview and present the mainview?
-
RE: UI launching a scene
You might be able to use a SceneView. Maybe it's just me, but I couldn't understand your question clearly. So this might not be the answer. But oh well.
You can create a SceneView:
sv = ui.SceneView()
Add your scene as a parameter of "sv", then use
main_view.add_subview(sv)
in your function.
Your button calls the function, the just clear the main_view and call the line above. -
Apple Advertisments
Say I wanted to release a very simple game on the app store FOR FREE. This might be a bit ambiguous, but how would I add advertisements to it? Would I get paid if I advertised other apps through mine? How does this work? I figured this was the right place to ask this question since I am making the app in Pythonista.
-
RE: Loading images into gui.
Try using ui.ImageView; it takes an image from PIL.Image.open() and if presented, displays it
-
Apple Mail Objc_Util
How can I send an email with Apple mail through an app that I make?
I assume this will use the objc_util module... -
Ui exit button trouble
I'm having a bit of ui trouble. I want to remove the X button from the top left corner of the ui screen. I know about the hide_title_bar argument in view.present, but I have buttons in the title bar, and I don't want to remove them. Is there just a way to get rid of the x?
P.S. This is going to XCode, so if I can edit a piece of the template to erase the X, that would be just as great.
Thanks ahead of time!
-
RE: Change the View (without NavigationBar)
Try this:
def openMail(sender): global View View.close() View.wait_modal() #VERY IMPORTANT, waits for view to close completely View = ui.loadview('mail.pyui') View.present('sheet') View = ui.loadview('intro.pyui') mail_button = ui.ButtonItem(action=openMail, title = 'Open Mail') View.right_button_items =[mail_button] View.present('sheet')
-
RE: Help on url scheme, qr codes
You know what, never mind. I was using OMZ's Barcode/QR Code Scanner that uses ui. I just had to use the wait_modal function. Sorry!
-
Help on url scheme, qr codes
Hello, I am looking to run separate Pythonista scripts from a qr code. I was using the url scheme, but realized that Pythonista couldn't close the program in time to open the other. Pythonista apparently can only run one program at a time. Can somebody help me out on this?
-
RE: Change syntax
I figured that manually parsing the language through Pythonista would be the best way to go. I wanted to use the custom modules too.
-
RE: Change syntax
I tried writing a module that defined the functions. This way, you pass a txt file with changed Python script through the module, and it would convert the changed syntax to normal syntax. Then exec it.
Am I on the right path? I aim overall to create a Python split-off language. -
RE: Change syntax
bind(obj1, obj2)
print obj1.value #prints obj2
print obj2.value #prints obj1Syntax would be:
bind(object1, object2)
-
Change syntax
How can I change Python syntax in Pythonista? I wish to create some sort of module that changes the syntax when imported and changes it back with a module.quit() function. I specifically want to create bind(obj1, obj2) where obj1.value =obj2 and vice versa. Any ideas?