omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    About the Screen Brightness

    Pythonista
    3
    5
    2193
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ki-ya.
      ki-ya. last edited by

      The following sample program does not processed. Please repair.
      SCRIPT LIBRARY -> This iPhone -> Examples -> ObjC -> Screen Brightness.py

      My device: iPhone 8 Plus
      Program: Pythonista ver.3.3(330025)

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @ki-ya. last edited by

        @ki-ya. Sine iOS 13 and V3.3, a lot of objectivec functions need to be run in main thread,
        Thus add line

        @on_main_thread	
        def main(): 
        
        1 Reply Last reply Reply Quote 2
        • cvp
          cvp last edited by cvp

          In this case, the _objc_exception.txt file in root contains

          The app was terminated due to an Objective-C exception. Details below:
          
          2020-03-01 07:42:30.297708
          threading violation: expected the main thread 
          
          ki-ya. 1 Reply Last reply Reply Quote 0
          • ki-ya.
            ki-ya. @cvp last edited by

            @cvp Thank you. The program has been repaired with your advice.

            1 Reply Last reply Reply Quote 0
            • Yiliana
              Yiliana last edited by

              As for your brightness problem on your iPhone, you could check out this article to deal with your trouble. And no matter what kind of brightness issue you met with, it can help you.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors