Hello, i was testing SplitterWindow demo, and i’ve added a knob inside one of the panels, but when tried to change the knob background with SetBackgroundColour(), it did not change. Can someone help me with this issue?
I appreciate the attention
Can you show the code you used?
Werner
···
On 7/12/2015 15:17, Thiago Felipe wrote:
Hello, i was testing SplitterWindow demo, and i've added a knob inside one of the panels, but when tried to change the knob background with SetBackgroundColour(), it did not change. Can someone help me with this issue?
I appreciate the attention
Yes =)
SplitterWindowDemoWithKnob.py (1.98 KB)
···
Em segunda-feira, 13 de julho de 2015 03:59:50 UTC-3, werner escreveu:
On 7/12/2015 15:17, Thiago Felipe wrote:
Hello, i was testing SplitterWindow demo, and i’ve added a knob inside
one of the panels, but when tried to change the knob background with
SetBackgroundColour(), it did not change. Can someone help me with
this issue?I appreciate the attention
Can you show the code you used?
Werner
Looks like a problem/bug with the wx.lib.agw.knobctrl. Happens also
if one puts it onto a simple panel.
Werner
···
Hi,
On 7/13/2015 21:45, Thiago Felipe wrote:
Yes =)
Em segunda-feira, 13 de julho de 2015 03:59:50 UTC-3, werner
escreveu:
On
7/12/2015 15:17, Thiago Felipe wrote:
> Hello, i was testing SplitterWindow demo, and i've added a
knob inside
> one of the panels, but when tried to change the knob
background with
> SetBackgroundColour(), it did not change. Can someone help
me with
> this issue? > I appreciate the attention Can you show the code you used?
Hi Werner, after some tests i’ve figured out that the colour change will only occur if i put the knob within a sizer
I thank a lot your attention =)
···
Em terça-feira, 14 de julho de 2015 17:06:02 UTC-3, werner escreveu:
Hi,
On 7/13/2015 21:45, Thiago Felipe wrote:
Yes =)
Em segunda-feira, 13 de julho de 2015 03:59:50 UTC-3, werner > > escreveu:
On
7/12/2015 15:17, Thiago Felipe wrote:
> Hello, i was testing SplitterWindow demo, and i've added a
knob inside
> one of the panels, but when tried to change the knob
background with
> SetBackgroundColour(), it did not change. Can someone help
me with
> this issue? > I appreciate the attention Can you show the code you used?
Looks like a problem/bug with the wx.lib.agw.knobctrl. Happens also
if one puts it onto a simple panel.
Werner
Hhm, that seems to work as a SetBackgroundColour call is done in the OnSize handler of BufferedWindow in KnobCtrl.
Works for me too in Classic but not if I try this with a recent build of Phoenix.
Would still consider it a bug but not sure how to fix it in KnobCtrl as the things I tried did not work.
Werner
···
On 7/15/2015 2:17, Thiago Felipe wrote:
Hi Werner, after some tests i've figured out that the colour change will only occur if i put the knob within a sizer
I thank a lot your attention =)
I think the same, it’s strange why sizers did not work on this issue on Phoenix version. Anyway thanks for the attention.
···
Em quarta-feira, 15 de julho de 2015 03:48:43 UTC-3, werner escreveu:
On 7/15/2015 2:17, Thiago Felipe wrote:
Hi Werner, after some tests i’ve figured out that the colour change
will only occur if i put the knob within a sizerI thank a lot your attention =)
Hhm, that seems to work as a SetBackgroundColour call is done in the
OnSize handler of BufferedWindow in KnobCtrl.Works for me too in Classic but not if I try this with a recent build of
Phoenix.Would still consider it a bug but not sure how to fix it in KnobCtrl as
the things I tried did not work.Werner