[pygtk] Pygnome Tutorial

2000-02-14 Thread Daniel Kornhauser
Please check my new libglade section, I will apreciate any correction or comment. http://laguna.fmedic.unam.mx/~daniel/pygtutorial/glade.html This tutorial is getting bigger than I expected, my fingers don't belong to me anymore... Sorry if you find the libglade section finishes too abruptly but

Re: [pygtk] Hello, and `pygtk' reminder

2000-02-14 Thread Fred L. Drake, Jr.
François Pinard writes: [excellent diatribe on the state of GUI applications!] > is it really a lost investment for me to rely on `pyglade'? Should I > better have to consider swallowing Gnome as well, and right now? (Fiou! Switch to libglade. Failing all else, it'll get more testing bec

Re: [pygtk] Hello, and `pygtk' reminder

2000-02-14 Thread Erik Bågfors
On Mon, Feb 14, 2000 at 10:53:56AM -0500, François Pinard wrote: > However, I do not run Gnome, and would prefer to not ought to change window > managers as well. A new language and a new design spirit is a lot already > for the poor little me, I do not feel like embracing a new religion as well!

Re: [pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread Martin Preishuber
Hi again, I've made a simple example which shows the unwanted behaviour mentioned earlier ... could someone test it and post his/her results ? For me when dragging something to the list it returns (0,0) for the label, (1,0) for "First" and None for "Last" thanks, Martin -- Martin Preishuber -

Re: [pygtk] Hello, and `pygtk' reminder

2000-02-14 Thread François Pinard
"J.W. Bizzaro" <[EMAIL PROTECTED]> écrit: > François Pinard wrote: > > I still have to learn `pygtk' usage, and to help me doing so, through an > > editing session over the Python sources, made myself a compact reminder. > That's nice. Can we include it in the documentation? What do you > thin

Re: [pygtk] Destroy event?

2000-02-14 Thread Mitch Chapman
You'll probably find that connecting to "delete_event" has the desired result. I don't know why "destroy_event" doesn't work. BTW if you do decide to connect to "delete_event" you'll need an extra argument: def _kill(window, event, obj): print "Aaagh!" gtk.mainquit() Also BTW thanks fo

[pygtk] Destroy event?

2000-02-14 Thread Randolph Fritz
OK, folks...how come this doesn't report a "destroy_event"? What am I doing wrong? Randolph #!/usr/bin/python import pdb import gtk class DestroyTest: def __init__ (o): pdb.set_trace() o.app = gtk.GtkWindow () o.app.set_usize (48,48) o.app.connect ("destroy

Re: [pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread Martin Preishuber
James Henstridge wrote: > The function should be returning None if you click outside of the cells, > or (row,col) if you click on a cell. I don't know why it would be acting > differently on your system. I know what it should do ... but it doesn't ... maybe there's something wrong with the (x,y

Re: [pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread James Henstridge
The function should be returning None if you click outside of the cells, or (row,col) if you click on a cell. I don't know why it would be acting differently on your system. The code in pygtk reads like this: if (gtk_clist_get_selection_info(GTK_CLIST(PyGtk_Get(clist)), x, y,

[pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread Martin Preishuber
Hi, just playing with drag and drop to CLists and CTrees and there's some strange thing. I've done something like: list.connect("drag_data_received", DragReceiveList) def DragReceiveList(clist, context, x, y, data, info, time): selection = clist.get_selection_info(x, y) so this should retu