[pygtk] CellRenderToggle, ListStore and tri-state

Alessandro Dentella sandro at e-den.it
Sat Apr 26 18:45:00 WST 2008


Hi,

  i want to improve an editor of database tables I'm working on.  When
  editing tables I use a TreeView with a ListStore and I use a <GType
  gboolean> to store the data. 

  I'd like to add capability to handle IS NULL beside True and False ad that
  is a different valuable choiche.

1.st question
-------------

  If I'm not wrong GTupe Boolean only stores True/False (maps None to
  False), so I guess I should use another Type but I can't figure out which
  one... 

2.nd question
-------------

  I'd like to use CellRendererToggle with the inconsistent
  property/appearance to signify no value has been set. Is there a better
  way? Any suggestion as how to proceed (But it may depends on the solution
  of qeustion n.1...)


Thanks in advance

sandro


More information about the pygtk mailing list