meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
maemo:shared_code [2011/08/18 23:12] grp4 |
maemo:shared_code [2011/08/18 23:19] (current) grp4 |
||
---|---|---|---|
Line 12: | Line 12: | ||
some examples | some examples | ||
<code python examples.py> | <code python examples.py> | ||
- | a= gtk.CheckButton("check button 1") | + | def main(self): |
- | | + | # place where fin info about pygtk http:// |
+ | win = hildon.StackableWindow() | ||
+ | |||
+ | # Create and pack labels | ||
+ | vbox = gtk.VBox(False, 10) | ||
+ | hbox = gtk.HBox(False, | ||
+ | |||
+ | # | ||
+ | labelHeader = gtk.Label("MeHear") | ||
+ | | ||
+ | |||
+ | # buttonGTK1 = gtk.Button(" | ||
+ | # buttonGTK1.connect(" | ||
+ | |||
+ | buttonGTK = gtk.ToggleButton(" | ||
+ | buttonGTK.connect(" | ||
| | ||
- | | + | |
- | hbox.pack_start(b, True, True, 0) | + | |
| | ||
- | | + | |
- | hbox.pack_start(c, True, True, 0) | + | |
| | ||
- | adjus = gtk.Adjustment(value=60, | + | |
- | d = gtk.SpinButton(adjustment= adjus, climb_rate=0.1, | + | # |
- | hbox.pack_start(d, | + | |
+ | #adjus = gtk.Adjustment(value=60, | ||
+ | | ||
+ | | ||
+ | #hscrollbar = gtk.HSscrollbar(adjustment) | ||
+ | |||
+ | # | ||
+ | combo = gtk.Combo() | ||
+ | combo.entry.set_text(" | ||
+ | slist = [ " | ||
+ | combo.set_popdown_strings(slist) | ||
+ | hbox.pack_start(combo, | ||
+ | |||
+ | hbox.pack_start(buttonGTK, | ||
+ | |||
+ | vbox.pack_start(labelHeader, | ||
+ | vbox.pack_start(labelSubHeader, | ||
+ | vbox.pack_start(hbox, | ||
+ | |||
+ | |||
+ | |||
+ | # Add label' | ||
+ | win.add(vbox) | ||
+ | |||
+ | win.connect(" | ||
+ | |||
+ | win.show_all() | ||
+ | |||
+ | gtk.main() | ||
</ | </ | ||