• @peiriannydd this works, in place of ui.draw_string

    UIFont = ObjCClass('UIFont').boldSystemFontOfSize_(20.0) attrtext = ObjCClass('NSMutableAttributedString').alloc().initWithString_(ns(self.text)) attrtext.addAttribute_value_range_(ns('NSFont'), UIFont, NSRange(0,len(self.text))) attrtext.drawInRect_(CGRect(CGPoint(0, 0), CGSize(self.width, self.height)))

    Nb: needs

    from objc_util import *
  • Thank you cvp, I appreciate your help

  • Thank you JonB! I knew I must be missing something, and I never would have figured that out.

  • @peiriannydd

    This:

    re.sub(r'anā\\B', 'nā', 'anā\\B')

    ... is to me the ”stereotypical” approach: use r to avoid too many backslashes in the regexp, and avoid confusing the meaning of regexp backslashes with those used to denote special characters in string literals with those already in a string and having no special meaning whatever.

    Unicode has no impact here, as long as we are all happily using str in Py3.

    To me, the first paragraphs of the official Python docs for re seem to cover all of this nicely.

  • You can make your own Button/View and use the methods touch_began(), touch_ended() and a timer. example You maybe also need @ui.in_background.

  • I see what is the problem with (1), the icon is grabbed correctly when I used my iPad but not my iPhone. I have the same directory path duplication problem (2) on my iPad as my iPhone, though.

  • @mikael fantastic! Thank you so much. It works great. I really appreciate your time and @cvp to help out an inexperienced python user like me.

Internal error.

Oops! Looks like something went wrong!