[pygtk] BG Color for GtkCList

2002-06-07 Thread Collins

How can I set the bg color for a CList widget?

If my gtkrc file contains, for example

widget_class "*GtkEntry" style "text"

the bg colors in "text" will be honored.

but if I code

widget_class "*GtkCList" style "text"

this will be ignored

I even tried putting the CList in a GtkEventBox and setting the style
in code.

Nothing seems to affect CList - it's always dazzling white


-- 
Collins Richey - Denver Area - WWTLRD?
gentoo(since 01/01/01) 2.4.18+(ext3) xfce-sylpheed-mozilla
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] memory leak

2002-06-07 Thread Kim Nikolay

i'm using pygtk from cvs + gtk+2.0.3

> Hi.
> 
> after each call of emit method refcount increase. what to do???
> simple example in attachment.
> 



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



[pygtk] memory leak

2002-06-07 Thread Kim Nikolay

Hi.

after each call of emit method refcount increase. what to do???
simple example in attachment.



import gtk, sys

b = gtk.Button('test')

def p(widget): print 'test'

print 'before:', sys.getrefcount(b)

b.connect('clicked', p)
b.emit('clicked')
b.emit('clicked')

print 'after:', sys.getrefcount(b)



Re: [pygtk] Problem with threads

2002-06-07 Thread Martin Chabot

> Hello,
> 
> I have a problem with an application that use libglade and threads:
> 
> My application open a root window which in turn open other windows on
> user request. 
> When I start threads associated with other windows, there is a 10sec
> freeze in the threads start() method (even if the thread dies
> immediatly).
> 
> I have properly initialized threading in gtk, and use gtk.threads_enter
> and leave(). There is problably something I have done wrong but I can't
> see where.
> 
> Previous example given by James is working well. I am using python2.2.1
> on GNU/linux with pygtk1.99.10 and glade2 beta version.
> 
> -- 
> Martin Chabot
> Tachys Technologies 
> Sophia-Antipolis, France
> 
> ___
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Well I found the answer: threading must be imported before gtk...

-- 
Martin Chabot
Tachys Technologies 
Sophia-Antipolis, France

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