• uncleWalter120

    Hi all,
    trying to blend two images using UI module using the code below. But it seems that the blend mode is ignored and one image just being drawn on top of the other. It works if I draw e.g. a rect on top of the first image but not with two images. Any suggestions?

    img = ui.Image.named('Test_Lenna')
    with ui.ImageContext(200,200) as ctx:
        ui.set_color('red')
        ui.fill_rect(0,0,200,200)
        ui.set_blend_mode(ui.BLEND_MULTIPLY)
        img.draw(50,50,100,100)
    
        result = ctx.get_image()
        result.show()
    

    This is the resulting image:
    alt text

    posted in Pythonista read more
  • uncleWalter120

    Hi Ole,

    since iOS 7, on my iPhone 5, wrapped lines only display the part on the first line, the "wrapped" part isn't shown. Instead a funny character is displayed. It is not possible to see/edit the entire line anymore. The code still runs though, so it's obviously still there... Pls help!

    Frank

    posted in Pythonista read more
  • uncleWalter120

    I found that the "funny characters" are actually the missing lines' characters all printed on top of each other. Maybe that helps finding the issue... On the iPhone it's really annoying because there, landscape doesn't leave you a lot of visible lines and the error still occurs.

    posted in Pythonista read more
  • uncleWalter120

    Dave, that script uses an outdated authentification method. Use Westacular's script instead (worked for me).

    posted in Pythonista read more
  • uncleWalter120

    Ok, the import works but there's no documentation. Could you post a link?

    posted in Pythonista read more
  • uncleWalter120

    Update: in order to make it a bit more useful, the script now accepts subclasses of BaseHTTPRequestHandler as handlers. See example in module doc.

    posted in Pythonista read more
  • uncleWalter120

    Running this from the editor action menu will launch the script currently being edited as a request handler inside an http server:

    https://gist.github.com/5153629

    The server is then accessed via the built-in web browser. Useful for testing web applications. Any feedback is very much appreciated.

    Have fun
    Frank

    posted in Pythonista read more
  • uncleWalter120

    When I add my own scripts to the actions menu, whatever script comes first in the menu won't get executed but always leads to editing the current filename. I've tried this with different scripts - always the same problem. As a workaround, I've added a script called "z_dummy" that does nothing and comes first in the actions menu.
    (I couldn't figure out in which order the items appear, in the options dialog it is obviously reverse alphabetical, uppercase first, but in the menu the order is different...)
    Has anybody else experienced this behaviour?

    posted in Pythonista read more
  • uncleWalter120

    Forgot: the version is 1.3

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!