meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
maemo:shared_code [2011/08/18 21:44]
grp4
maemo:shared_code [2011/08/18 23:18]
grp4
Line 5: Line 5:
 So, add the codes underneath. You can copy the template underneath and just add to the line: So, add the codes underneath. You can copy the template underneath and just add to the line:
  
 +===== Tutorial for PyGtk =====
 +http://www.pygtk.org/pygtk2tutorial/
  
 +though not every function in pygtk library does work in maemo as developer were too lazy and didn't import them. like no scrollbar or slidebar exist in maemo.
 +
 +some examples
 +<code python examples.py>
 +        a= gtk.CheckButton("check button 1")
 +        hbox.pack_start(a, True, True, 0)
 +        
 +        b= gtk.ToggleButton("check button 1")
 +        hbox.pack_start(b, True, True, 0)
 +        
 +        c = gtk.RadioButton(None, "radio button1")
 +        hbox.pack_start(c, True, True, 0)
 +        
 +        adjus = gtk.Adjustment(value=60, lower=0, upper=100, step_incr=1, page_incr=0, page_size=0)
 +        d = gtk.SpinButton(adjustment= adjus, climb_rate=0.1, digits=5)
 +        hbox.pack_start(d, True, True, 0)
 +        
 +        combo = gtk.Combo()
 +        combo.entry.set_text("text")
 +        slist = [ "String 1", "String 2", "String 3", "String 4" ]
 +        combo.set_popdown_strings(slist)
 +        hbox.pack_start(combo, True, True, 0)
 +</code>
  
 ===== Software playtrought ===== ===== Software playtrought =====