scrolledwindow

GTK Scrolled Window - Keep Scroll Bar at bottom

▼魔方 西西 提交于 2020-01-05 05:30:11
问题 I have a GTK/C++ program that uses a ScrolledWindow. I keep adding data to the list within the scrolled window, and I want to keep focus on the newest item. But I also want to allow the user to scroll through the data to select an old item. Is there a way to do this? I've looked everywhere but can't find anything. 回答1: It's not quite clear to me what you mean by your question, but here's what I think you mean: when you add items to your list, they are added below the current visible portion

ScrolledText Scrollbar Color (Python Tkinter)

北城以北 提交于 2019-12-11 05:07:33
问题 I'm using the module ScrolledText in a Tkinter GUI. I wish to change the colour of the Scrollbar encompassed in the ScrolledText widget, but I'm having some difficulty. My syntax is correct (according to documentation). Box = ScrolledText(root) Box.vbar.config(troughcolor = 'red', bg = 'blue') Box.pack() However, the scrollbar still has the standard grey colour. I know the syntax is correct, because doing other things such as: Box.vbar.config(cursor = 'target') ...works exactly as it should.

wxpython scrolled Panel Not Updating scroll bars

对着背影说爱祢 提交于 2019-12-07 10:02:55
问题 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 seems like it won't update in real time. When I ummaximize the window and maximize it again, the scroll bar updates. However, if I start typing in the TextCtrl again ( Thereby adding text to the StaticText inside the ScrollablePanel using an event

wxpython scrolled Panel Not Updating scroll bars

风流意气都作罢 提交于 2019-12-05 14:24:52
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 seems like it won't update in real time. When I ummaximize the window and maximize it again, the scroll bar updates. However, if I start typing in the TextCtrl again ( Thereby adding text to the StaticText inside the ScrollablePanel using an event ) the scrollbar on the panel doesn't update unless I minimize again and so on. So the question is, how