View Single Post
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#8
Originally Posted by luis View Post
I see. Problem with that is that the very same program won't work on my linux boxes then. Perhaps I would need to do two applications...

Thanks for your help!!
Cheers,
L.
You can still make it run in both places, it just takes extra work. See:

Code:
on_tablet = True

try:
   import hildon
except ImportError:
   on_tablet = False

[...]

if on_tablet:
   self.window = hildon.Window()
else:
   self.window = gtk.Window()
And do that everytime you use a hildon widget or hildon-specific method.
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 

The Following 2 Users Say Thank You to BrentDC For This Useful Post: