• PKHG

    It was not meant as a link, happened automatically?

    posted in General Discussion read more
  • PKHG

    the (not a link to be found in gist or so ) jumptooctopus (tge bane if the game) uses not declared bottom() top() right() left()
    replacing that by y h w x the script works.

    (rather new pythonista 3)

    nice game!

    posted in General Discussion read more
  • PKHG

    Hi,
    I have a zipfile at /Documents/testwww_resources/smokes.zip
    How to show the content, how to see if it is empty or not?
    stash shows it ...
    got from
    https://github.com/tjferry14/Cloud-Jump-2 trying to use see other thread with other problem

    posted in Pythonista read more
  • PKHG

    Hello
    How to get https://github.com/tjferry14/Cloud-Jump-2 running (Pythonista 3) ui-menu is for me a very big problem

    posted in Pythonista read more
  • PKHG

    OK, found, already available ;-), Thanks.

    posted in Pythonista read more
  • PKHG

    Hi,
    I like to play with the piano.py ==> it shows C3 until and including C4.
    On Github there ar C4# until A4 (and two more?!) ... to be found.
    How to make them available on Ipad for the piano.py script?

    And how to find out where the existing ones live (with stash e.g.)?

    posted in Pythonista read more
  • PKHG

    I indicated at GitHub a run-time error ;-) and my solution.
    Plus a wish to add more functionality
    E,g:
    Rand gives always a fraction so to have random numbers (1, ..6) you
    need to get rid of fraction part (after multiplication etc.)

    posted in Pythonista read more
  • PKHG

    thanks Mikael ,,, done meanwhile, as anonymous (next time as PKHG) but how will it be found now?
    Greets
    Peter

    posted in General Discussion read more
  • PKHG

    Pyrhonista 3 contains : import sympy as sp (or the like) , which can already partly what sage can do ;-)

    posted in General Discussion read more
  • PKHG

    Hi, lazy Peter:
    Screenshots on an Ipad are of size 2048x1536 pixel. On my website they have to be a width of 640 px . So it was downloading (email) downloading on PC , changing size , saving and then using a picture., possible but 'time-consuming. So use Pythonista, Peter! Done as follows:

    #! python3
    import photos as ph
    
    def scshnr(nr):
        sc = ph.get_screenshots_album() 
            img = sc.assets[-nr].get_image() #see minus, telling from last photo 
        return img
    
    def resizeimg(nw, von, bis):
            """
            resize photos from: von until: bis
            new width = nw
            """
        for i in range(von, bis + 1):
            img = scshnr(i)
            W = img.width
            H = img.height
            #print((W,H))
            hdw = round(1.0 * nw/ W, 3)
            #print(hdw) 
            nh = int(H * hdw)
            #print(nh)
            res = img.resize((nw,nh))
            #res.show()
            ph.save_image(res)
    
    resizeimg(640, 1, 1) #resize to widht 640 (from 1 to 1 : means only the last img)
    
    print('OK')  #message in the Console
    

    Pleas suggest a better way to show the code, if it does not show indented here ;-)

    Peter

    posted in General Discussion read more

Internal error.

Oops! Looks like something went wrong!