• You can thanks omz
    Pythonista is a marvelous mistress 😂

  • @Webmaster4o If you are having problems, please tell me. I need all the bug reports I can get.

  • Sorry, was stupid mistake not reading correctly. Is the section to create extensions :( was thinking about file extensions. Opps

  • Awesome.

  • Thanks! I think I wouldn't have noticed this myself because a German date picker looks pretty normal to me...

    The reason is a workaround for a bug in the iOS simulator – I'm faking a German locale because for some reason, the keyboard language can't be changed otherwise. This obviously should never have been in the version that's built for actual devices...

  • @Tizzy that's a question for someone else. I have no idea.

  • @wradcliffe , thanks for the info. I am still a long way with playing with the Native API. I struggle with simple stuff in Python at the moment. But when I was reasonable coder in c a million years ago, I loved the resource manager. If I am not mistaken, back in those days it was limited to a signed 16 bit int. but that's 32k++ entries per resource. Could also make your own custom resources, with a limited ui also. It as so convienient and easy to use. I made a whole product publishing suite based on it. Because the software was sponsored by big banks and corporations, in that time it was the largest distribution of software in Australia. Every line of code was C, but it was not portable. Only ran on macs. It was still good.

  • Ok here is a gist that just adds a class subclassed from OrderedDict to help assemble the OrderedDict. It also adds the section_key method. It's trivial, but I think helpful. Just building on @ccc idea. This one only works with py3

  • Thanks @omz The pattern seems reasonable to follow.

  • @dgelessus Thanks!

  • And sorry, I didn't get your first comment about changing it easily. I get it now. As long as It does not create more legacy code for you, Then would be nice to have it in the std API.

  • @omz, thanks. Nice to know. Is a nice feature. I know a small thing, but makes life easier

  • @JonB, not exactly what we were talking about, but same idea would apply.
    JPeg lockdown: Restriction options sought by committee
    http://www.bbc.co.uk/news/technology-34538705
    With a well thought out universal file header, all sorts of benefits could be gained and implemented reasonably easily. But now a the JPEG committee will spend a lot of time trying to solve a problem for only one file format. I think the issue they are trying to take here and other issues should be addressed across the whole spectrum of files.
    I know is an old discussion we had, but seen this article today and instantly reminded me of our discussion here

  • IIRC, animate is not parsing your python code, it is basically looking at what changed in your object, then interpolating those attribs over time. so trying to use comments wont work like that.

    note that the way you "broke up" the animation is not doing what you think. Animations happen asynchronously, so your second animation is happening at the same time as the first ( if you animate different properties) ir overwriting it (if you are animating the same attribute). Try changing the frame, then changing it back in badk to back calls, and you will see what i mean.

    You should use completion to chain together animations. If you want to do something instantly at the start, that is no different than just setting that param before you start the animation. Note that doing so will effectively cancel animation of that attribute if you are already animating that attribute.

    If you want to change an attribute in the middle of an animation, kick off two animations at the same time, making us of the delay argument..l in this way you could have alpha switch at the halfway point, or even have alpha animating at a different rate. ,

    If you dont like a few lines on animate calls, you should write your own wrapper that takes in a few a functions and chains together an animation.

    for instance, one could envision creating pseudo acceleration by chaining two or three animations, that have different velocities.

  • @TutorialDoctor, you ask what it could be used for. I think is just nice ui control, same as a slider. I think a nice step fwd would be to be able to provide a ui.view. Then not just images anymore. Also the cover controller doesn't care, just providing a series of frames with all the correct math and animations and touch events.

  • Script to type on the keyboard using up/down/left/right:

    # coding: utf-8 import roku, time r = roku.Roku('192.168.1.110') keylist = [ ['a','b','c','d','e','f','g'], ['h','i','j','k','l','m','n'], ['o','p','q','r','s','t','u'], ['v','w','x','y','z','-','\''], [' '],] keymap = {} for y in range(len(keylist)): for x in range(len(keylist[y])): key = keylist[y][x] keymap[key]=(x, y) def type(string): for l in string.lower(): x, y = keymap[l] for _ in range(x): r.right() for _ in range(y): r.down() r.select() for _ in range(x): r.left() for _ in range(y): r.up() while 1: type(raw_input())

    It was designed for the YouTube app's size keyboard. Resets the cursor to 'a' every time, but the version that didn't failed miserably. Still experimental.

  • @JonB, thanks.
    I can see @omz could do it in the future. It's a little funky how all the calls to _view_from_dict sort of cascade. I made a copy of ui to ui2, passed self all the way to _view_from_dict. Then Added the parsed items to self.add_subview.
    It sort of works.
    I just tried to do some minimal things without hardly changing the code.
    However _view_from_dict returns a view, also so other things I don't understand. So a little rework would be required, but possible.
    I know I could copy the code and roll my own.... But not worth it. Eventually it would break.

Internal error.

Oops! Looks like something went wrong!