• 7upser

    @cvp It wasn't my Thread ๐Ÿ˜›

    But you are right Phone calls and WhatsApp are different things.
    Maybe there is a url scheme for whats app, or a action for Shortcuts.

    But back to what i'm interested in (call shortcut and return to pythonista)
    This could work:

    import ui
    import webbrowser
    
    class cUIView(ui.View):
        def __init__(self, *args, **kwargs):
            self.width, self.height = 200, 200
            self.background_color = 'silver'
            
            self.vBtn = ui.Button(title = 'test', name = 'btntest')
            self.vBtn.frame = (50, 50, 100, 100)
            self.vBtn.background_color = 'white'
            self.vBtn.action = self.btnAction
            self.add_subview(self.vBtn)
            
        def btnAction(self, vSender):
            url = 'shortcuts://x-callback-url/run-shortcut?name=testBluetoothOff&x-success=pythonista3://'
            webbrowser.open(url)
    
    vView = cUIView()
    vView.present('sheet')
    

    posted in Pythonista read more
  • 7upser

    good argument

    posted in Pythonista read more
  • 7upser

    There is also an automation, when App is open.

    posted in Pythonista read more
  • 7upser

    @cvp
    uuups, sorry. I was too busy today ๐Ÿ˜‡

    posted in Pythonista read more
  • 7upser

    Maybe he means a Homescreen Symbol.
    @Python567, see here, if yes:

    shortcuts
    But you need to install Pythonista for each User.

    posted in Pythonista read more
  • 7upser

    I know tastenform but never heard the plural.
    (btw. plural is in the word tasten)
    And 'operating aids' sounds like my iPad has Aids but is still operating.๐Ÿ˜ท๐Ÿ˜›

    posted in Pythonista read more
  • 7upser

    In german its named: Tastenformen
    (einstellungen / bedienungshilfen / anzeige & textgrรถรŸe / tastenformen)

    Never heard this before, i think Apple create a new word....

    posted in Pythonista read more
  • 7upser

    You can also add Unicode superscripts to the characters: \u00B2
    for more information see here: Wikipedia

    Result is something like this:

    print(''.join('m/s' + '\u00B2'))
    print('m/s\u00B2')
    

    posted in Pythonista read more
  • 7upser

    I'm missing the Categories for SF Symbols.
    I think there are only Categories in the Mac App.
    I found two older version and a Screenshot for the new Gaming Cat.
    I add some cats for newer Symbols, but didn't finished.
    This is what i have (with Pythonista Symbols and Emojis)

    Icons.json

    Names of restricted Symbols are here:
    /System/Library/CoreServices/CoreGlyphs.bundle/symbol_restrictions.strings
    (also a plist file)

    posted in Pythonista read more
  • 7upser

    If someone interested in a list of string, here we go

    import plistlib
    import io
    
    vFilePath = '/System/Library/CoreServices/CoreGlyphs.bundle/symbol_order.plist'
    
    with open(vFilePath, 'rb') as vFile:
        vFileObject = io.BytesIO(vFile.read())
    vJsonSFSymbols = plistlib.load(vFileObject)
    
    for vIndex, vJsonSFSymbol in enumerate(vJsonSFSymbols):
        print(str(vIndex).zfill(4), vJsonSFSymbol)
    

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!