Questions tagged [scrolledwindow]

50 questions
23
votes
6 answers

How to auto-scroll a gtk.scrolledwindow?

I have a treeview-widget inside a ScrolledWindow, which is populated during runtime. I want the ScrolledWindow to auto-scroll to the end of the list. I "solved" the problem, by adjusting the vadjustment of the ScrolledWindow, everytime a row is…
Fookatchu
  • 7,125
  • 5
  • 28
  • 26
10
votes
1 answer

How to show column headers in a GtkTreeView inside a gtk.ScrolledWindow?

I have a problem with Gtk.Treeview indide a Gtk.ScrolledWindow. I have a large amount of data, which doesnt fit inside my normal window geometrics, so i put my Treeview inside a ScrolledWindow, which seems to be the normal way. The problem with this…
Fookatchu
  • 7,125
  • 5
  • 28
  • 26
6
votes
2 answers

GTK Scrolled Window - scroll to the bottom

I'm writing an app using GTK+, and I have a problem. I'm using GTK Scrolled Window and I must scroll the vertical scrollbar to the bottom, but I don't know, how. I was looking in Google, but I found nothing.
m4tx
  • 4,139
  • 5
  • 37
  • 61
6
votes
2 answers

How to construct simple wxWidgets image display

I wrote a wxPython program that I am translating to wxWidgets. The program has a scrolled window that displays an image. Following Rappin, wxPython In Action (Listing 12.1), I used a StaticBitmap within a panel. While surfing the latest wxWidgets…
Jive Dadson
  • 16,680
  • 9
  • 52
  • 65
5
votes
1 answer

wxpython scrolled Panel Not Updating scroll bars

I'm using winxp and wxpython ( wxpython 3.1, python 2.6 ) to make a GUI program which will copy the text from a TextCtrl, into a ScrollablePanel that contains a StaticText. This all works fine, however, the Scrolled part doesn't work quite right. It…
Isaac
  • 53
  • 1
  • 4
4
votes
1 answer

how to scroll a Tix ScrolledWindow

Using Python, how can I programmatically scroll (not using the scrollbars) the window in a Tix ScrolledWindow? The normal way would be to call xview / yview, but those calls do not seem to be available. Googling suggest that it is not possible at…
4
votes
2 answers

Python: How do I get Gtk.scrolledwindow to scroll to a selection in Gtk.Treeview

How do I get Gtk.scrolledwindow to scroll to a selection in Gtk.Treeview. I am writing a touch screen kiosk app that has up and down button to move a selection in a treeview. It doesn't it doesn't scroll down the scrolledwindow when the selection…
Samuel Taylor
  • 1,181
  • 2
  • 14
  • 25
4
votes
0 answers

Smarter resize of some Gtk ScrolledWindows and Viewports inside a Window

Basically this is my layout: Window -> MainVBox --> ScrolledWindow (1) ---> Viewport (1) ----> VBox (1) --> ScrolledWindow (2) ---> Viewport (2) ----> VBox (2) Where the two ScrolledWindows have the "vertical expand" property setted to be True, the…
Fabio Spampinato
  • 717
  • 8
  • 18
4
votes
1 answer

Matplotlib zooming work in conjunction with wxPython ScrolledWindow

I've got a Matplotlib canvas (FigureCanvasWxAgg) that I'm displaying inside of a wx.ScrolledWindow. The problem is that I'd like to have the default zooming and panning functionality of Matplotlib work in conjunction with the ScrolledWindow, so that…
adchilds
  • 963
  • 2
  • 9
  • 22
3
votes
2 answers

Flicker-free drawable ScrolledWindow

I'm trying to build a ScrolledWindow that you can draw on using the mouse, and it's working too, but I'm getting a nasty flicker when the user is drawing on the window while the scrollbars aren't in the "home" position.. To reproduce, run the…
Joril
  • 19,961
  • 13
  • 71
  • 88
3
votes
0 answers

How to scroll in a Gtk::ScrolledWindow to a specific row from a Gtk::TreeView

I have a Gtk::TreeView inside a Gtk::ScrolledWindow. At one point I get a Gtk::TreeRow row. How can I know if the row is in the visible area and how can I scroll the ScrolledWindow so that the row will be visible? L.E.: I found the…
3
votes
1 answer

Gtk Expander in a scrolled window: The width of the scrolledwindow doesn't update

When using a Gtk ScrolledWindow with the horizontal Policy Never, I expect the scrolledwindow to adapt, if the horizontal size request of the child changes. But that's not the case, for example when using an Expander: When I expand the expander, and…
Random Citizen
  • 1,272
  • 3
  • 14
  • 28
3
votes
1 answer

Gtk.ScrolledWindow without horizontal scroll bar

Using Python and Gtk3, I have created a Gtk.TreeView and put it inside a Gtk.ScrolledWindow. I don't like horizontal scroll bars, so I removed it using the Gtk.PolicyType.NEVER, but now I can't resize the window in that direction. So the question…
skytux
  • 1,236
  • 2
  • 16
  • 19
2
votes
1 answer

GTK: Get pointer position on scroll-event AFTER scrolled_window has scrolled

I've got a drawing area inside a scrolled window (with convenience viewport), and this drawing area updates itself according to incoming motion-notify-events. When I scroll the area though obviously no motion events are emitted, but I wanted to work…
Ancurio
  • 1,698
  • 1
  • 17
  • 32
2
votes
1 answer

get mouse position in gtk scrolled window

I have a scrolled window with a viewport, which is some 4000 pixels tall. Is there a way to figure out the mouse position in viewport coordinates? At the moment, what I get for the position is the position in the segment that I actually see, and if…
v923z
  • 1,237
  • 5
  • 15
  • 25
1
2 3 4