How to be informed when gtk.paned slider's position changed?
I wanna the hpaned to remember the slider position, then I need to catch the event of hpaned's changing slider position. According to official doc, paned only have a few开发者_如何学Go signals, and none of them is about slider's position.
So, is there a event about hpaned's slider? And how to catch it?
You can connect to "notify::position" signal.
notify::position
fires multiple times as the slider is moved.
I find button-release-event
is more efficient.
You can connect to the size-allocate signal of one of the two children of the paned. The signal will be emitted after the slider's position has been changed.
精彩评论