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
-
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 -
For objc crashes, check for the file in your Documents folder that has the traceback. I think this is called something like _obj_exception.txt (I forget the name, but it will be the most recent file in This Ipad folder)
-
When i use
allow_passcode=False
it crashes but there‘s no file...When i change
policy = 2
topolicy = 3
it crashes too but with an file:The app was terminated due to an Objective-C exception. Details below: 2021-02-04 20:35:37.517948 Error Domain=com.apple.LocalAuthentication Code=-1001 "Unknown policy: '3'" UserInfo={NSLocalizedDescription=Unknown policy: '3'}
-
-
That‘s sad to hear....
But good to know