[pygtk] libglade-CRITICAL

2005-08-06 Thread Jaime Casanova
Hi,

i'm using libglade to build an interface to my python application.
i'm using python 2.4 and pygtk 2.4.1-3 in winxp and for fedora core2
this is my python code

*** BEGIN PYTHON CODE prueba.py ***
import gtk
import gtk.glade

def some_handler(widget):
pass

xml = gtk.glade.XML('sgis/sgis.xml', "", "")
widget = xml.get_widget('widgetname')
xml.signal_autoconnect({
  'some_handler': some_handler
})
gtk.main()
*** END PYTHON CODE ***

but when i try to run get this error from both winxp and linux:
(prueba.py:2959): libglade-CRITICAL **: file glade-xml.c: line 1198
(glade_xml_build_interface): assertion `wid != NULL' failed

well... actually, the numbers in prueba.py:xxx are different in the
winxp version of the error, but the rest of the line is the same.

comments? someone has seen this before?

-- 
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] pyGTK Chapter in new book

2005-08-06 Thread Dave Aitel
For those people interested, I did a chapter largely on pyGTK (good, I 
hope) in a new Python book for beginners.


http://www.amazon.com/exec/obidos/tg/detail/-/0764596543/104-4144034-6006328?v=glance

It got a decent review, but you'll have to make your own opinions. :>

-dave

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] sorting in treeView

2005-08-06 Thread David M. Cook
On Sat, Aug 06, 2005 at 04:29:24PM +, Vinay Reddy wrote:

> In case of a tie while sorting on a particular column other columns
> are considered at all. I want the sorting function to sort based on
> the other columns in case of a tie (in the main column).

Use a sort function.  See the tutorial:

http://pygtk.org/pygtk2tutorial/sec-TreeModelInterface.html#sec-SortingTreeModelRows

Dave Cook
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] sorting in treeView

2005-08-06 Thread Vinay Reddy
Hi,
I am using a TreeView to display three columns (all of which display strings).
For each of the TreeViewColumns, I did a set_sort_column_id().

In case of a tie while sorting on a particular column other columns
are considered at all. I want the sorting function to sort based on
the other columns in case of a tie (in the main column).

Is there an easy way to do this? What's the easiest (and reasonably
fast) way to do this? I have about 2000 rows in my listmodel.

Vinay
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/