Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente |
| hackish_pygtk_things [2008/12/23 00:13] – stable pietro | hackish_pygtk_things [2009/01/09 14:22] (versione attuale) – treeviews pietro |
|---|
| ==== Motion hints ==== | ==== Motion hints ==== |
| |
| According to the laconic [[file:///usr/share/gtk-doc/html/pygtk/class-gdkevent.html#description-gdkevent|official documentation]] and on the [[http://www.pygtk.org/pygtk2tutorial/sec-EventHandling.html|tutorial]], the goal of gtk.gdk.POINTER_MOTION_HINT_MASK is to send you a motion event and then not send another until you call mywidget.get_pointer(), so that events don't keep queuing waiting for you to handle them. | According to the laconic [[http://www.pygtk.org/docs/pygtk/class-gdkevent.html#description-gdkevent|official documentation]] and on the [[http://www.pygtk.org/pygtk2tutorial/sec-EventHandling.html|tutorial]], the goal of gtk.gdk.POINTER_MOTION_HINT_MASK is to send you a motion event and then not send another until you call mywidget.get_pointer(), so that events don't keep queuing waiting for you to handle them. |
| |
| However, this is plainly false in pygtk 2.13.0, where instead: | However, this is plainly false in pygtk 2.13.0, where instead: |
| |
| Moreover, since [[http://library.gnome.org/devel/gdk/stable/gdk-Events.html#gdk-event-request-motions|C gtk+ documentation]] tells the same thing (with some more particulars), I definitely see 3 as most probable. | Moreover, since [[http://library.gnome.org/devel/gdk/stable/gdk-Events.html#gdk-event-request-motions|C gtk+ documentation]] tells the same thing (with some more particulars), I definitely see 3 as most probable. |
| | |
| | ====== TreeViews and CellRenderers ====== |
| | |
| | The 'hadjustment' property of a gtk.TreeView is a gtk.Adjustment which shifts the whole treeview left. Can't find a reason for it. |
| | |
| | The 'expander-size' style property just changes the height of rows: try for example |
| | gtk.rc_parse_string(""" style "expander-big" { |
| | GtkTreeView::expander-size = 30 |
| | } |
| | |
| | class "GtkTreeView" style "expander-big" |
| | """) |
| | |