Re: [pygtk] treview headers
> That is weird. Check the glade file to see if there is a GtkViewport > between the TreeView and ScrolledWindow. If so, that could be the cause > of the problem. If there is, then the GtkViewport will be handling the > scrolling, and the TreeView won't handle things correctly (as far as it > is concerned, it will have been given enough space to display all the rows). That was it... What is a vieport and why would you use one? -- * * Rob Brown-Bayliss * ___ 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] treview headers
Rob Brown-Bayliss wrote: >On Fri, 2002-08-02 at 16:21, James Henstridge wrote: > > >>Haven't run into any of these problems myself. >> >>Is the treeview packed inside a gtk.ScrolledWindow? If not, try doing >>that. The tree view should handle scrolling correctly in that case. >> >>swin = gtk.ScrolledWindow() >>swin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) >>swin.add(treeview) >> >> > >I am useing glade, the treeview is inside ascrolled window, the scroll >bars are on automatic, in that they only appear when needed, but as soon >as I scroll down the column headers scroll out the top of teh scrolled >window, and it's not scrolling with hte keyboard... > >bugger really as the headings do serve a usefull purpose... > > That is weird. Check the glade file to see if there is a GtkViewport between the TreeView and ScrolledWindow. If so, that could be the cause of the problem. If there is, then the GtkViewport will be handling the scrolling, and the TreeView won't handle things correctly (as far as it is concerned, it will have been given enough space to display all the rows). James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html ___ 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] treview headers
On Fri, 2002-08-02 at 16:21, James Henstridge wrote: > Haven't run into any of these problems myself. > > Is the treeview packed inside a gtk.ScrolledWindow? If not, try doing > that. The tree view should handle scrolling correctly in that case. > > swin = gtk.ScrolledWindow() > swin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) > swin.add(treeview) I am useing glade, the treeview is inside ascrolled window, the scroll bars are on automatic, in that they only appear when needed, but as soon as I scroll down the column headers scroll out the top of teh scrolled window, and it's not scrolling with hte keyboard... bugger really as the headings do serve a usefull purpose... -- * * Rob Brown-Bayliss * ___ 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] treview headers
Rob Brown-Bayliss wrote: >Hello, > >Is it possible to make the column headers in a gtk2 treeview widget stay >in view while scrolling? > >And, how do I get the view to scroll with the active row when useing teh >keyboard? I can move around the rows with the arrows on the keyboard, >but if I go to far down the cursor keeps moving and the view stays >static... > > Haven't run into any of these problems myself. Is the treeview packed inside a gtk.ScrolledWindow? If not, try doing that. The tree view should handle scrolling correctly in that case. swin = gtk.ScrolledWindow() swin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) swin.add(treeview) James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html ___ 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] treview headers
Hello, Is it possible to make the column headers in a gtk2 treeview widget stay in view while scrolling? And, how do I get the view to scroll with the active row when useing teh keyboard? I can move around the rows with the arrows on the keyboard, but if I go to far down the cursor keeps moving and the view stays static... Thanks -- * * Rob Brown-Bayliss * ___ 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] yet another threading question
On Thu, 2002-08-01 at 16:46, Rob Brown-Bayliss wrote: > Hi, I have been going of the archive for a while now and I cant seem to > get this sorted. My mail is down this morning, at least the recieving of mail so I don't know if thhere have been any replys, but I got it sorted with: def pending(): while gtk.events_pending(): gtk.mainiteration(0) then in mythread I add a pending() at the end of each for loop thats adding rows to teh model for my treeview.. It's a shame that I saw that in a mailatleast 5 times yesterday and didn't seem to register... More coffee perhaps :o) -- * * Rob Brown-Bayliss * ___ 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] small reference leak in get/set_property
Hi, I've fixed a small reference leak in the get/set_property wrappers. It's also registered as bug #71021. Regards, Arjan Index: pygtk/gobjectmodule.c === RCS file: /cvs/gnome/gnome-python/pygtk/gobjectmodule.c,v retrieving revision 1.104 diff -u -p -r1.104 gobjectmodule.c --- pygtk/gobjectmodule.c 2002/07/12 13:50:57 1.104 +++ pygtk/gobjectmodule.c 2002/08/01 13:10:50 @@ -388,14 +388,15 @@ pyg_object_set_property (GObject *object py_value = pyg_value_as_pyobject (value, TRUE); retval = PyObject_CallMethod(object_wrapper, "do_set_property", "OO", py_pspec, py_value); +Py_DECREF(py_pspec); +Py_DECREF(py_value); +Py_DECREF(object_wrapper); if (retval) { Py_DECREF(retval); } else { PyErr_Print(); PyErr_Clear(); } -Py_DECREF(py_pspec); -Py_DECREF(py_value); } static void @@ -411,12 +412,13 @@ pyg_object_get_property (GObject *object py_pspec = pyg_param_spec_new(pspec); retval = PyObject_CallMethod(object_wrapper, "do_get_property", "O", py_pspec); +Py_DECREF(py_pspec); +Py_DECREF(object_wrapper); if (retval == NULL || pyg_value_from_pyobject(value, retval) < 0) { PyErr_Print(); PyErr_Clear(); } Py_XDECREF(retval); -Py_DECREF(py_pspec); } static void