• peiriannydd

    @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.

    posted in Pythonista read more
  • peiriannydd

    @cvp yes, but I was hoping to change the font within the label, and <f 'Times New Roman' 60> doesn't work. For example, this doesn't work:

        r = RichLabel(
          font=('Chalkboard SE', 60),
          background_color='white',
          alignment=ui.ALIGN_CENTER,
          number_of_lines=0,
        )
    
        r.rich_text("\n".join([
          "First font",
          "<f 'Times New Roman' 60>Second font</f>, 
        ]))

    posted in Pythonista read more
  • peiriannydd

    @mikael I have enjoyed using your richlabels (thank you!!). One thing I haven’t figured out - When I try to change the font with

    <f times new roman 15>

    I get an error that it can't find a font named times. It seems like it is looking for the first word only in the font name. I don’t know python syntax well enough - is there a way I can write my code that will combine the whole three-word string when passed to the richlabels parser to have a multiword font, or is this a limitation of the richlabels module?

    Thanks again!

    posted in Pythonista read more
  • peiriannydd

    @ccc I'm afraid I don't follow. I'm using Py3, and neither u'anā\B' nor r'anā\B' catch the expression I need to replace. Is there anything I can do?

    Thank you very much for your time.

    posted in Pythonista read more
  • peiriannydd

    I get a complaint of a syntax error when I try
    replaced = re.sub(ru'anā\B', u'nā', s)
    It is complaining about the ru together. This syntax does work on my Mac. Is there a way this works in Pythonista?

    posted in Pythonista read more
  • peiriannydd

    @mikael @cvp I’m indifferent to the format, as you said, HTML is more usual, but any other format with at least as much flexibility would be fine. I think this a fantastic feature in any case.

    posted in Pythonista read more
  • peiriannydd

    Just wondering if this is easy, or would it require gestures?

    posted in Pythonista read more
  • peiriannydd

    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.

    posted in Pythonista read more
  • peiriannydd

    Is it supposed to? If so, what am I missing?

    1.While editing my .py file, I tap on the wrench, then on ↗️Shortcuts... then on Home Screen Icon, then on Continue, then on the share button in the toolbar, then Add to Home Screen, then Add, and I get an icon that looks like this:
    bad icon
    Instead of like this:
    good icon

    2.Then when I tap the icon, I get
    Not Found The file “flashcards/flashcards/flashcards_new.py” could not be found.
    I was able to work around this second problem by creating a flashcards subdirectory so that the path was correct

    Are these known issues?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!