[pygtk] signal on title colum of GtkTreeView

2003-11-13 Thread Harobed
Hi,

I would like to show popup window when I click on title column of
TreeView.

My problem is than I don't success to define signal on title of column.

I added widget to title column, I defined signal on this widget but it's
not actived ! I don't understand.

Someone I've one exemple ?


Thanks
-- 
Stéphane KLEIN
Home page : http://www.harobed.org
Jabber : [EMAIL PROTECTED]

___
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] Using an image as background

2003-11-13 Thread Igor Stroh
Hi,

On Mi, 2003-11-12 at 22:21, Morten Heiberg wrote:

[setting background pixmaps]

I'm not sure if I understood your problem correctly, but maybe this will
help (replace gtk.Window with appropriate Widget class):

iconsdir = './icons'
imagename = 'image.png'

win = gtk.Window()
path = os.path.join(iconsdir, imagename)
pixbuf = gtk.gdk.pixbuf_new_from_file(path)
pixmap, mask = pixbuf.render_pixmap_and_mask()
width, height = pixmap.get_size()
del pixbuf
win.set_app_paintable(gtk.TRUE)
win.resize(width, height)
win.realize()
win.window.set_back_pixmap(pixmap, gtk.FALSE)
del pixmap

HTH,
Igor
___
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] signal on title colum of GtkTreeView

2003-11-13 Thread David M. Cook
On Thu, Nov 13, 2003 at 12:12:34PM +0100, Harobed wrote:

 I would like to show popup window when I click on title column of
 TreeView.

The TreeViewColumn object has a clicked signal:

http://tinyurl.com/uuke (scroll to the bottom)

So that you know which column was clicked, you can either attach data to the
TreeViewColumn or pass user data in when you connect the signal (for example
a key or column number).  You'll usually do this when adding the columns to
the TreeView.

Dave Cook
___
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] How to implement a drag'n drop?

2003-11-13 Thread Michel Thadeu
Hi guys!

I have working with drag and drop... It's a simple case, I have 2
TreeView with the smae type of columns each... Both are drag_source and
both are drag_dest... When the signal drag_drop occours, I remove the
line from the first list and append to the second list... This are
working ok but I want to know if this is the best way... I look at
examples with drag_data_get and drag_data_received, I couldn't make the
signal drag_data_received occour, so I use the drag_drop signal...

I won't send the program code coz I need to translate and comment it :)
But I will send tomorrow if is necessary.

thanks for the help and sorry my poor english...


=
--
Michel Thadeu Sabchuk
Curitiba/PR

__

Yahoo! Mail: 6MB, anti-spam e antivírus gratuito! Crie sua conta agora:
http://mail.yahoo.com.br
___
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] signal on title colum of GtkTreeView

2003-11-13 Thread Harobed
I would like do the same think than this C exemple (in file attached).
But I haven't button member in column object (line 67 of paned.c).

Someone I've one idea ?
-- 
Stéphane KLEIN
Home page : http://www.harobed.org
Jabber : [EMAIL PROTECTED]


paned.tgz
Description: application/compressed-tar
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/