| The Following 7 Users Say Thank You to thp For This Useful Post: | ||
|
|
2008-12-17
, 15:04
|
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#2
|
|
|
2008-12-17
, 19:05
|
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#3
|

|
|
2008-12-17
, 21:32
|
|
Posts: 113 |
Thanked: 13 times |
Joined on Nov 2008
@ Darmstadt, Germany
|
#4
|
|
|
2008-12-17
, 22:06
|
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#5
|
|
|
2008-12-17
, 22:08
|
|
|
Posts: 291 |
Thanked: 124 times |
Joined on Feb 2006
@ Trier, Germany
|
#6
|
|
|
2008-12-18
, 12:19
|
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#8
|
I'll definitely give it a try. Is there some kind of API-documentation for it?
| The Following User Says Thank You to thp For This Useful Post: | ||
|
|
2008-12-18
, 13:16
|
|
Posts: 113 |
Thanked: 13 times |
Joined on Nov 2008
@ Darmstadt, Germany
|
#9
|
http://docs.openmoko.org/references/...eference/html/ (the C library)
Or "pydoc mokoui" for the Python-ish documentation of the widgets. As usual, the Python API is analog to the C API, just like with PyGTK/PyCairo, etc..
|
|
2008-12-18
, 13:21
|
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#10
|
![]() |
| Tags |
| finger, gtk, python, scroll, widget |
| Thread Tools | |
|
mokoui's FingerScroll widget even has the rubberband effect at the end of the list - very cool!
mokoui.FingerScroll can be used as a drop-in replacement for gtk.ScrolledWindow. Here's a small example in Python/PyGTK to get you started:
import gtk import mokoui mokoscroll = mokoui.FingerScroll() # uncomment the following for "rotating" scroll mode #mokoscroll.set_property('mode', 1) treeview = gtk.TreeView() model = gtk.ListStore(str) for i in range(100): model.append([str(i)]) treeview.set_model(model) column = gtk.TreeViewColumn('Blubb', gtk.CellRendererText(), text=0) treeview.append_column(column) w = gtk.Window() w.connect('destroy', gtk.main_quit) mokoscroll.add(treeview) w.add(mokoscroll) w.show_all() gtk.main()