Reply
Thread Tools
Posts: 70 | Thanked: 79 times | Joined on Mar 2010
#1
Hello !
I'm trying to make a small python application which will be able to set and lock the global orientation of the device... I already look the code of glol but i don t really understand how i can make it in python....
Maybe someone have already try to do that ?
Or maybe there is a dbus function ??? Or something else ?

Thanks !!
 

The Following User Says Thank You to titilambert For This Useful Post:
coderus's Avatar
Posts: 3,130 | Thanked: 4,622 times | Joined on Nov 2011 @ Russia
#2
just you cant.
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 70 | Thanked: 79 times | Joined on Mar 2010
#3
Originally Posted by coderus View Post
just you cant.

Thanks !!!
 
Posts: 151 | Thanked: 154 times | Joined on Apr 2012 @ UK
#4
Errm, there is a mod in N9QT that achieves this. Should be possible to implement in py if you look at the script but I assume root perms will be required.
 
coderus's Avatar
Posts: 3,130 | Thanked: 4,622 times | Joined on Nov 2011 @ Russia
#5
@Nad you talking about different thing
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job
 
Posts: 70 | Thanked: 79 times | Joined on Mar 2010
#6
And what about compile glol in share object and import it with ctypes ?
 
Posts: 70 | Thanked: 79 times | Joined on Mar 2010
#7
Or you python-contextkit to create provider ?
 
coderus's Avatar
Posts: 3,130 | Thanked: 4,622 times | Joined on Nov 2011 @ Russia
#8
@titilambert why not to use glol cli tool then?
Context.Provider doesn't contain hacky functions for overriding system properties.
__________________
Please Donate for my work: PayPal
Your donations makes my applications better

my twitter @icoderus

[F.A.Q.] List of harmattan terminal warnings and errors (contribute!)

If you like what i do please add recomendation for me in LinkedIn to help me get new job
 
Posts: 70 | Thanked: 79 times | Joined on Mar 2010
#9
Hi !
Thanks !
In fact, i trying to do an N950 app which lock orientation in portrait mode when the keyboard is close and landscape when is open... It doesn t care about sensors ...
I use glol for now, but i quite slow to kill glol and relaunch glol when i open or close the keyboard ...
 
Reply

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 02:37 PM.