[pygtk] Re: textview + scrolledwindow
Ryan Rousseau
ryan.rousseau at gmail.com
Thu Aug 3 02:26:58 WST 2006
Hi Tobias,
When you add the textview to the scrolledwindow, do you use
scrolledwindow.add or scrolledwindow.add_with_viewport ?
I had mistakenly used add_with_viewport which cause my scrolled window
to not respond to the scroll functions from the faq.
-- Ryan Rousseau
> Message: 2
> Date: Wed, 02 Aug 2006 12:11:52 +0200
> From: Tobias Bengtsson <tobbe at tobbe.nu>
> Subject: [pygtk] textview + scrolledwindow
> To: pygtk at daa.com.au
> Message-ID: <44D07A68.7090302 at tobbe.nu>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi
>
> I'm trying to make a scrolledwindow scroll to the position of the cursor =
>
> in a textview. I've read faq: =
>
> http://www.async.com.br/faq/pygtk/index.py?req=3Dshow&file=3Dfaq14.010.htp
>
> but cannot get it right. The insert-at-cursor callback never gets called =
>
> and the scroll function from faq doesn't work. I must have misunderstood =
>
> something.. My code is attached.
>
> kind regards, Tobias
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: multiline.py
> Type: text/x-python
> Size: 1539 bytes
> Desc: not available
> Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060802/05926294/m=
> ultiline-0001.py
>
> ------------------------------
More information about the pygtk
mailing list