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.
Some difficult (for me) questions about Pythonista
-
@DavinE, so, yea to all except the last one, where I do not understand the question yet.
-
@JonB said:
console.disable_idle_timer
should fix the 2 minute thing.not quite but i found the Solution see below.
but Thanks for your Help :)on_main_thread(console.set_idle_timer_disabled)(True)
https://forum.omz-software.com/topic/6489/set_idle_timer_disabled-bug@JonB said:
Are you using ui, or scene?
I'm using UI
@JonB said:
Re FaceId, I believe this is the same as touchid in iOS. The code below should work with face for devices that have face instead of touch.
https://github.com/tdamdouni/Pythonista/blob/master/omz/touchid.py
No, this did not work.... on my iPad and iPhone (no touchid) they ask me for my code....
@mikael said:
@DavinE, so, yea to all except the last one, where I do not understand the question yet.
Sry for my bad english :(
I'm using a Synology with an MYSQL Server.
My Synology go in Sleep Mode for like 15min...
I want to tell the MSQL Server i'm online till i Leave my Appi hope it's better so
is it not possible to Fix/Lock the Orientation in fullscreen Mode ?
-
Is it possible to Fix/Lock the Orientation in fullscreen Mode ?
https://omz-software.com/pythonista/docs/ios/ui.html#ui.View.present
orientations
https://omz-software.com/pythonista/docs/ios/scene.html#scene.runorientation
-
I want to say that orientation block doesn't work anymore in split screen capable devices. I forget if there is a workaround. You could always just manually set the orientation lock.
. -
Anyway, @DavinE said he uses ui, not scene.
-
@DavinE said:
I'm using a Synology with an MYSQL Server.
My Synology go in Sleep Mode for like 15min...
I want to tell the MSQL Server i'm online till i Leave my AppThis is more difficult for us to answer since it is not about Pythonista. But if MySQL activity keeps Synology awake, you can run a loop in the background thread to read something from the db say once every 10 minutes. Or use sftp or some Synology API to make it look like there’s disk activity.
-
@ccc said:
Is it possible to Fix/Lock the Orientation in fullscreen Mode ?
https://omz-software.com/pythonista/docs/ios/ui.html#ui.View.present
orientations
https://omz-software.com/pythonista/docs/ios/scene.html#scene.runorientation
I Thought so too but this did not work for me....
I'm using it like this way:self.present('fullscreen', hide_title_bar=True, orientations='landscape')
My "self" view:
class main(SafeAreaView):
-
@mikael said:
@DavinE said:
I'm using a Synology with an MYSQL Server.
My Synology go in Sleep Mode for like 15min...
I want to tell the MSQL Server i'm online till i Leave my AppThis is more difficult for us to answer since it is not about Pythonista. But if MySQL activity keeps Synology awake, you can run a loop in the background thread to read something from the db say once every 10 minutes. Or use sftp or some Synology API to make it look like there’s disk activity.
^^ perfect this is what i'm looking for ;)
I'm done this so:threading.Timer(600.0, FUNCTION).start()
-
-
@JonB said:
Re FaceId, I believe this is the same as touchid in iOS. The code below should work with face for devices that have face instead of touch.
https://github.com/tdamdouni/Pythonista/blob/master/omz/touchid.py
Is there another Solution for FaceID ?
-
@DavinE said:
Is Scene better then ui ?
I didn't say that. But it seems that ui does not support anymore orientation parameter in present.
-
-
@DavinE said:
When i use Scene is it a lot of work to change ?
or can i change only the name of it ;) ?It will depend on the process, and I have to say that I don't know anything about Scene. Hoping that other guys in this forum could help you.
-
@DavinE,
orientations
needs to be a sequence, so make it a list likeorientations=['landscape']
. -
@DavinE When I said that orientation did not work, I forgot to add this is for an iPad.
-
@DavinE for faceid, what do you get when you call is_available()?
it may be that we need to try different values for the policy number -- i cant seemt to access apple documetation anymore on my ipad, so not sure.
-
@mikael said:
@DavinE,
orientations
needs to be a sequence, so make it a list likeorientations=['landscape']
.You are right @mikael this works fine!
@cvp said:
@DavinE When I said that orientation did not work, I forgot to add this is for an iPad.
This is okay i just want to lock it on an iPhone xD
-
@JonB said:
@DavinE for faceid, what do you get when you call is_available()?
I get
True
.... for whatever Reason...@JonB said:
it may be that we need to try different values for the policy number -- i cant seemt to access apple documetation anymore on my ipad, so not sure.
i try with other Numbers etc. but it always crash Pythonista....
-
@DavinE Have you tried with allow_passcode=False?
-
@JonB no but i did it ...
It crashes Pythonista