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.


    possible problem - screen brightness

    Pythonista
    1
    1
    819
    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.
    • Phuket2
      Phuket2 last edited by

      @omz, I am not sure if this points to an issue or not. But I use your Sample code in my startup script to change the brightness of the screen. It had been working perfectly.

      from objc_util import *
      UIScreen = ObjCClass('UIScreen')
      
      screen = UIScreen.mainScreen()
      screen.setBrightness_(0.2)
      

      Now when my ipad goes to sleep and then I wake it, it's not retaining the brightness setting. Again, I am not sure just my ipad pro or something you need to check or maybe the sample code is out of date. I copied it sometime ago.

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