[pygtk] GtkCList and find_row_from_data
I'm trying to use the find_row_from_data() in GtkClist to determine if I should update a row or append a new one, but find_row_from_data() always returns a -1 (row not found). What should the data parameter to find_row_from_data() look like? The clist has two columns and I also associate some additional data with each row using set_row_data() -- -- Travis Hume Software Engineer Tenzing Communications Inc. [EMAIL PROTECTED] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] GtkCList and find_row_from_data()
I'm trying to use the find_row_from_data() in GtkClist to determine if I should update a row or append a new one, but find_row_from_data() always returns a -1 (row not found). What should the data parameter to find_row_from_data() look like? The clist has two columns and I also associate some additional data with each row using set_row_data() -- -- Travis Hume Software Engineer Tenzing Communications Inc. [EMAIL PROTECTED] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] GtkCList children() always returns []
Given this very simple example: python/pop3ck.py : python Python 2.1.1 (#1, Aug 30 2001, 17:36:05) [GCC 2.96 2731 (Mandrake Linux 8.1 2.96-0.61mdk)] on linux-i386 Type copyright, credits or license for more information. from gtk import * c = GtkCList(1,['blah']) print c.children() [] c.append('blah') 0 print c.children() [] shouldn't c return something other than [] when calling children()? -- Travis Hume Software Engineer Tenzing Communications Inc. [EMAIL PROTECTED] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] Xlib error
Last night I modified a piece of PyGtk code that I use quite often by adding the line: self.win.set_position( WIN_POS_MOUSE ) before doing a win.show(). Now I get this: "Xlib: unexpected async reply (sequence 0x1d4)!" What's up with that? I can attach the code, it isn't big, and it sure ain't pretty. -- Travis Hume Software Engineer Tenzing Communications Inc. [EMAIL PROTECTED] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk