• momorprods

    Thanks a lot, this seems to help a lot. 👍

    posted in Pythonista read more
  • momorprods

    Greetings incredible community!

    After migrating my iPhone to iOS15 I noticed a few issues with my Pythonista-made apps. Weird SceneView behaviours, but more critical - some random freeze when running some of the console functions.

    As a basic illustration, the code below freezes randomly (about 1 freeze every 3-4 attempts when I hit the « close » button (the popup does not display upon freeze)

    import ui
    import console
    
    def button_action(sender):
        global view
        #view.close()
        q=console.alert('Confirm Close ?','So you want to close this view? So you want to close this view?So you want to close this view? ','OK')
        if q==1:
            view.close()
        
    button = ui.Button(title='Close',action=button_action)
    button.y = 100
    
    view = ui.View()
    view.add_subview(button)
    view.present() 
    

    Of course this didn’t occur right before my iOS update. Do you also have this kind of random problem?

    Thks!

    posted in Pythonista read more
  • momorprods

    @cvp thanks a lot, this works great. You’re so fast! 👍🙏

    posted in Pythonista read more
  • momorprods

    Greetings, I’m currently experimenting CoreML using the template @omz made some while ago. I’m trying to run the DeepLabV3 model, which returns an image as an output. More precisely : a MLMultiArray Int32 513 x513 Matrix.

    And so far I didn’t manage to find a trick to transform this into a PIL image.

    Did someone already tried this?

    Thanks!

    posted in Pythonista read more
  • momorprods

    In a world where Pythonista would be actively maintained by @omz I would be 100% for it. But at this stage, even the XCode template is not up-to-date, and unfortunately we don’t know if Pythonista will still be available in the App Store in a few months. So, sadly, I think your audience might be disappointed at some point.

    Game creation is a hard and long process, I wouldn’t recommend anyone who would want to learn & invest time on that topic to use Pythonista, only because the app could vanish tomorrow. Or in 1 year. We don’t know. Sadly.

    That’s a pitty. I really think Pythonista would really do the job on game development. It’s far better than any alternative so far - including Codea. I’ve been working during my spare time on an adventure game generator, and found no limit in this task.

    posted in Pythonista read more
  • momorprods

    @RomSpy actually your template works well with today’s XCode & latest iOS 14. I only had to on/off the Workspace checking in the build settings, and that’s it. Thanks!

    posted in Pythonista read more
  • momorprods

    @cvp ah ah well looks like I’m screwed. Let’s hope @omz will at least maintain his iOS dev subscription - so that the app stays live on the store as long as possible.

    posted in Pythonista read more
  • momorprods

    @ccc any idea about how to convert ui-based app to Pyto ? it’s probably one of the worst case scenario no?

    posted in Pythonista read more
  • momorprods

    Nooo, seriously is that happening? @omz please let us know. Pythonista is a gem of the App Store, and one of the best learning tool I’ve used - perfect also for kids code learning. It should go into schools. I really hope you’ll find a way to maintain it. 🤞

    posted in Pythonista read more
  • momorprods

    thanks a lot!

    posted in Pythonista read more
  • momorprods

    Greetings,

    I’m having an issue with the following
    code, it simply crashes my Pythonista since the latest update. Does it work on your devices ?

    Thanks!

    import console
    
    console.set_idle_timer_disabled(True) 
    

    posted in Pythonista read more
  • momorprods

    And it’s back again, even with some fixes!

    posted in Pythonista read more
  • momorprods

    @mikael thank a lot, I’m happy your daughter likes it.

    At the end of the hunt, the score is displayed - when you touch the screen at this point it should restart the hunt.

    posted in Pythonista read more
  • momorprods

    Hi, when creating your adventure you will be asked to set, for each hint, the question itself, 4 possible replies and the correct reply.

    Very basic ;-)

    posted in Pythonista read more
  • momorprods

    Hi,

    I have just released on Github a Treasure Hunt / Scavenger creator application. In a few words, the app allows you to create your own scavenger hunts, play them and share them with your friends.

    Source is here :

    https://github.com/momorprods/TreasureHunt

    This was my very first experiment in Pythonista, started a few years ago. I just thought I should update it a bit and release it to the community.

    Pythonista is really a mind-blowing app. Treasure Hunt was designed & coded using my iPhone, and nothing else, which is so cool.

    Please be indulgent with the design & the code though, this was my very first app started in 2014!

    Feel free to share, use, comment, and even upgrade it!

    posted in Pythonista read more
  • momorprods

    great job @cvp ! currently working onto loading collada files, might take most of my upcoming oversea flight! I’ll keep you posted.

    posted in Pythonista read more
  • momorprods

    ah sorry my bad, In my tests I tweaked badly my SCNVector3 using c_double instead of c_float. Fixed and working now.

    posted in Pythonista read more
  • momorprods

    @cvp I think there is still something weird, as the coordinates of the vertices really don’t match what’s expected. The triangle totally disappear if I just scale the Z value of the 1st vertice, which is not normal.

    And overall the size of the triangle is not what it should be (confirmed this by overlapping a cube box and also by estimating through the ARKit rendering).

    Since it shows the triangle, the indexing part of the code must be ok - it probably deals with the SCNVector3 array. Perhaps I’m wrong, but SCNVector3 looks like an ObjC class, not a C record?

    posted in Pythonista read more
  • momorprods

    guys you are genius. Not sure why the vertex order did change something, probably it needs to be defined clockwise or something like that.

    Thanks for all of your help, you are awesome!

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!