|
|
2008-05-27
, 13:52
|
|
Posts: 2 |
Thanked: 0 times |
Joined on May 2008
|
#122
|
|
|
2008-05-27
, 15:59
|
|
Posts: 18 |
Thanked: 0 times |
Joined on Dec 2007
|
#123
|
|
|
2008-05-27
, 16:26
|
|
Posts: 10 |
Thanked: 5 times |
Joined on Mar 2008
|
#124
|
geoff, thanks a ton... however one question. I want to disallow onslide too. how would I accomplish that?

def slide(id,obj):
f = open(slidestatus,'r')
status = f.read()
f.close()
if status == "closed\n":
new_orientation = "closed"
rotate(new_orientation)
elif status == "open\n":
new_orientation = "open"
rotate(new_orientation)
| The Following User Says Thank You to geoffstewart For This Useful Post: | ||
|
|
2008-05-27
, 23:37
|
|
Posts: 2 |
Thanked: 0 times |
Joined on May 2008
|
#125
|
|
|
2008-05-28
, 03:40
|
|
Posts: 27 |
Thanked: 9 times |
Joined on Sep 2007
|
#126
|
def rotate(new_orientation):
orientation = client.get_string('/apps/rotate/orientation')
if new_orientation == "power":
if orientation == "right":
client.set_string('/apps/rotate/orientation',"normal")
rotate='DISPLAY=:0.0 /usr/bin/xrandr -o normal'
xmodmap_conf='/usr/lib/sliderotate/normal.xmodmap'
elif orientation == "normal":
client.set_string('/apps/rotate/orientation',"right")
rotate='DISPLAY=:0.0 /usr/bin/xrandr -o right'
xmodmap_conf='/usr/lib/sliderotate/right.xmodmap'
| The Following User Says Thank You to jjstewart For This Useful Post: | ||
|
|
2008-06-01
, 00:58
|
|
Posts: 38 |
Thanked: 2 times |
Joined on Mar 2008
|
#127
|

|
|
2008-06-01
, 01:36
|
|
Posts: 833 |
Thanked: 124 times |
Joined on Nov 2007
@ Based in the USA
|
#128
|
OK Houston, I have a problem.
<snip>
So, what is wrong with my tablet?
thx
|
|
2008-06-01
, 03:25
|
|
Posts: 38 |
Thanked: 2 times |
Joined on Mar 2008
|
#129
|

|
|
2008-06-05
, 17:57
|
|
Posts: 28 |
Thanked: 6 times |
Joined on Jan 2008
|
#130
|
Tschüß