So I'm working on a pygtk project currently and have a Search box that I would like to implement a Clear button inside, just like Compiz Config Settings Manager does or various other programs. How do i go about doing this?
Another question is on the TreeView...ive got it adding entries to the treeview model and would like to have it sorted by the 2nd column by default (which I have working fine currently) but I would also like to use the Search text to filter through all of the items. How do I implement both the PyGTK sort and filter together? Plus when I am loading the items from their files I need to load it into a regular model then a sorted model so that appending each item doesnt cause it to resort every time. I have tried searching online and have read through the Pygtk tutorials however all this seems to be over my head...
Any help would be greatly appreciated, especially a simple tutorial that could cover both like the source from a program or something. I've been reading through Deluge's source and learning quite a bit from it. Best way I can learn is by example since the documentation is always very technical.
EDIT: One other question, some of the text has invalid characters for the default language im using causing a Pango warning, is there any way I can strip these characters or convert them so that I wont be getting the error anymore?