3

I'm writing a python application that has a glade gui. Using subprocess to execute some shell commands in the background.

Using a glade GUI which has a scrolledwindow widget and a textview widget inside the scrolledwindow widget. The textview gets populated as the subprocess.Popen object run and display their stdout and stderr to this textview.

My problem is that the textview is constantly populated, but stays still @ scroll position 0, 0 (top-most, left-most)

I want this scrolledwindow widget to stays at bottom-most, left-most at all times...

Does anyone have any idea which method I need to call scroll this thing downwards?

1
  • I am going to go ahead and add this here because i spent 5 hours with the same problem and no solution worked. If you are adding the textview to scrolledwindow with add_with_viewport(textview), the solutions here will not work. Just use add(textview) instead. Commented Nov 24, 2010 at 4:47

3 Answers 3

2

You need to get the horizontal and/or vertical gtk.Adjustment from the scrolledwindow, and change its values. See

The set_all method of gtk.Adjustment is probably what you want.

Sign up to request clarification or add additional context in comments.

Comments

1

This is probably what you are looking for.

http://faq.pygtk.org/index.py?req=show&file=faq14.010.htp

1 Comment

this answer contains a broken link.
0

look at gtk.ScrolledWindow.set_placement.

(never tried)

1 Comment

This only defines the position of the scrollbars in relation to the child window. Does not help in my case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.