• jbap

    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?

    posted in Pythonista read more
  • jbap

    I am teaching a classroom full of 14 year olds; their skill set might surprise you.

    posted in Pythonista read more
  • jbap

    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.

    posted in Pythonista read more
  • jbap

    I just want to get rid of the webbrowser module completely. So it is not on the app anymore.

    posted in Pythonista read more
  • jbap

    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.

    posted in Pythonista read more
  • jbap

    Does anybody else have ideas?

    posted in Pythonista read more
  • jbap

    just curious, why cant you add it as a subview and present the mainview?

    posted in Pythonista read more
  • jbap

    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.

    posted in Pythonista read more
  • jbap

    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.

    posted in Pythonista read more
  • jbap

    Try using ui.ImageView; it takes an image from PIL.Image.open() and if presented, displays it

    posted in Pythonista read more
  • jbap

    How can I send an email with Apple mail through an app that I make?
    I assume this will use the objc_util module...

    posted in Pythonista read more
  • jbap

    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!

    posted in Pythonista read more
  • jbap

    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')

    posted in Pythonista read more
  • jbap

    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!

    posted in Pythonista read more
  • jbap

    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?

    posted in Pythonista read more
  • jbap

    Neither is included

    posted in Pythonista read more
  • jbap

    I figured that manually parsing the language through Pythonista would be the best way to go. I wanted to use the custom modules too.

    posted in Pythonista read more
  • jbap

    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.

    posted in Pythonista read more
  • jbap

    bind(obj1, obj2)
    print obj1.value #prints obj2
    print obj2.value #prints obj1

    Syntax would be:

    bind(object1, object2)

    posted in Pythonista read more
  • jbap

    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?

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!