• @mikael , yeah I seen some bad reports about language handling. Sometimes, well a lot of the time its hard to figure out Apple's strategy regarding certain products. It seems like with both Siri and Apple TV they really dropped the ball big time. I really love my Apple TV, but in both these spaces (Home assistant/media player) for whatever reason they appeared they had a chance to dominate the market, but sat on their hands. I still think they will come through eventually, I just hope its fast enough. The market is getting tough. Sorry if my post seems like off on a tangent, but its all related in my view.

  • @chriswilson, I just looked up the css colours and there is no 'clear' defined. It makes sense as its only RGB. But it still could have been an alias representation, you never know :)
    css colors
    But as you say its still good to find out.

  • Hmmm, live and Learn. Sorry @omz, my mistake. I have dnd(do not disturb) on. If that is turned off then the notications are working as expected. Works very good

  • @omz, but normally the tags previously used tend to pop up as you are typing. So its not like you should create new tags all the time.

  • @cvp , lol. Ok understand :)

  • Thanks for your explanation, I didn't know this *arg, but, really, what do I know?
    Surely, not a lot 😭

  • I'm working on drop-in replacement of Pythonista keychain module. I'll include it in the Black Mamba when finished with things like Touch ID protection, labels, ... Not finished yet, but I decided to share Pythonista compatibility layer I've got in this module, so, others can learn what exactly Pythonista keychain module does, something about CF, ctypes, ... Here's the gist.

  • @dgelessus , oh I can see where it all went wrong now. I pip installed flask-restful, that also installs flask and jinta. I have been able to re-install flask-restful and delete the folders in the site-packages and have it working now. Thanks again.

  • @JonB , your searchable table script was almost exactly what I was looking for in order to provide an iOS citation picker for my writing. I've adapted it a bit so that it inputs a list of my citation keys. However, I can't seem to figure out how to return the selection. Tapping on an item only highlights the item itself but never returns it or closes the search table. I've tried to adapt the script to return the selected item, based off other examples, but have been unable to figure it out. I'm sure it's relatively simple but I'm quite new to python and only at the level of basic trial & error. Any help you could provide would be most appreciated, and thank you for your work either way!

  • @mikael , thanks for your reply. The more I think about it, when I was a programmer, should never have coded in the workflow like I do here. I always got the data pretty well sorted out very early in the process. Even if I had to use something as crude as a csv file to get started (more often was resource files, c structs or a database or combination of these persistent storage types). Mind you this was not for web deployment, whilst there was a web, without dedicated isdn lines, you had no chance to transmit what we would have called large datasets at the time.
    Of course the data storage building/processing was a totally different process development from your end user application.
    So i think I will try and be more mindful of that in the future. In my little attempts here, i mix all this in together. In hind sight its no wonder I end up chasing my tail so much. In my opinion, I should be basically writing a presentation app that displays and manipulates my data. Not sure how others think about that. But I am going to do it anyway in the hope it will help me focus more.

    Regards to how I used shelve, basically I didn't know what I was doing from a object design perspective. It was just to get something going. I really dont like the whole pickle thing. A few reasons, first I am ignorant about pickling, also version problems with pickling. I also dont like shelve uses 3 files, it drives me crazy. But I used it to get started because everyone could run the code.
    I would have preferred to use TinyDB. But ultimately I would like to have a have a base strorage system that you can subclass. The subclass would inherit the ability to handle a key,value storage. But you could change/extend the underlying storage engine say from shelve to TinyDB with very little work. Hmmmm, well that's what I think I want, at least to start with. For locally run apps, It appears to mean you can do a lot with simple key,value storage systems.
    Also keeps the complexity to data you are likely to be dealing with in a local Pythonista App.

    So i will try a few different things. It's a good learning exercise, even if I do go down the wrong track for a while. I will also try to get my head around your comments about using the dunder methods, setitem & getitem. I used them a long time ago. But got myself in trouble with side effects that can occur if you are not using them properly. Maybe I am a bit better equipped today to use them in a more informed way, maybe not :).

    Again, thanks for your feedback. I really appreciate it. Unfortunately for me to have a in person conversation with a Python programmer, its approx 2 hr travel into Bangkok for meetup's they have there. 2hr's is a very modest estimate, once in Bangkok, then have to get to the venue. Depending on traffic & time you could easily double that. Through the network of Thai's I know, I have come across a few that can program a little in Python, but the language barrier makes it very difficult to have very meaningful conversations. Oh well, thats my life history :). Sorry, just in the mood for typing.

  • @technoway , thanks. I know it has limited value. I use it for part of a basic in file search program I made. The search program is basic, just searches for a word in all my files, I present a list of file names in a ui.TableView. Then if I want to look into a file, I bring up this viewer , to see if it what I was looking for. So for that purpose its good for me. I wanted to update the search program, so I separated this out first. It was a bit of a mess :)

  • Lol, ok I can see this topic generated as much interest as watching grass grow :).
    But at least to give something visual, i did the below. Just using a static form here with no chance to give feedeback because the form is just sitting as a json file in a github repo. Baby steps :)
    I still like the idea/concept though. Maybe I am alone on this one! Again, this not what I described above. I just thought If i could do a static example, may give it more context. BTW, the recipe in the example is real and fantastic. It was from YouTube, I should have put the link in, but again this is just an example. No interaction is possible with this simple example. But I think you could see how there could be.

    import ui import requests import json _form_raw_url = '''https://raw.githubusercontent.com/Phuket2/ui_forms/master/MicrowaveEggRecipe.json''' resp = requests.get(_form_raw_url, timeout=5) if resp.status_code != 200: resp.raise_for_status() def close_action(sender): sender.superview.close() v = ui.load_view_str(json.dumps(resp.json())) if v["_dismiss"]: v["_dismiss"].action = close_action v.present('sheet')
Internal error.

Oops! Looks like something went wrong!