I’m having strange behavior on the thumb button of the DirectSlider control. When I have the mouse positioned over the thumb button and I try to update its position from another call (control-5), the thumb button does not move.
Does the DirectSlider control have any restrictions?
I hope you can help me.
from direct.showbase.ShowBase import ShowBase from direct.gui.DirectGui import DirectSlider, DGG base = ShowBase() slider = DirectSlider(value=0.95) slider.reparentTo(aspect2d) def slider_adjust(*args): slider.setValue(0.1) base.accept('control-5', slider_adjust) base.run()