Active Topics

 


Reply
Thread Tools
DelJaRoo's Avatar
Posts: 18 | Thanked: 6 times | Joined on Aug 2007
#1
I want to make an application for Maemo 5 that uses python. I was following this tutorial: http://wiki.maemo.org/PyMaemo/UI_tutorial
which was pretty good at first, and shows me how to make all the various gtk/hildon objects, but it in no way shows me how to have more than one at once.
Now, i am quite familiar with java's AWT so I assume I need to make containers and choose layouts. Could anyone show me how to make such things for pygtk? I looked around for various tutorials online, but they were mostly less than useful.
Thanks
(is this the right place to post this even?)
 

The Following User Says Thank You to DelJaRoo For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#2
Code:
import gtk

btn1 = gtk.Button('Press Me')
btn2 = gtk.Button('No, Press Me!')
win = gtk.Window()
win.connect('destroy',gtk.main_quit)
vbox = gtk.VBox()
vbox.pack_start(btn1,True)
vbox.pack_start(btn2,True)
win.add(vbox)

win.show_all()
gtk.main()
__________________
N9: Go white or go home
 

The Following 3 Users Say Thank You to daperl For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#3
Originally Posted by DelJaRoo View Post
(is this the right place to post this even?)
No, development threads/questions belong in:

OS / Platform > Development.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
DelJaRoo's Avatar
Posts: 18 | Thanked: 6 times | Joined on Aug 2007
#4
ahh okay,
well that did work nicely thanks
 

The Following User Says Thank You to DelJaRoo For This Useful Post:
Posts: 28 | Thanked: 14 times | Joined on Jul 2012 @ India
#5
How to install GTK package?
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:02.