I’ve created a toolbar in my program, but it has a lightgray background… which is not the same as the GetThemeBackgroundColour() … which I would like it to be… I’ve been trying to find the command for changing the background colour of a Toolbar… without luck…
For various introspection reasons, I need to be able to ask a
wx.TextCtrl for the value previously set in
wx.TextCtrl.SetMaxLength(). Is there any mechanism available to do
this?
I don't understand why wxWigets provides a setter for maximum length,
but not a getter.
I don’t understand it either, but it is like the rain: don’t protest in vain, and open your umbrella.
In the actual case, I suggest you subclass wx.TextCtrl, override the method SetMaxLength() as follows:
def SetMaxlength(self, length):
assert length >= 0
self.MaxLength = length
wx.TextCtrl.SetMaxLength(self, length)
and then you build your getter:
def GetMaxLength(self):
return self.MaxLength
I don’t understand it either, but it is like the rain: don’t protest in vain, and open your umbrella.
In the actual case, I suggest you subclass wx.TextCtrl, override the method SetMaxLength() as follows:
For various introspection reasons, I need to be able to ask a
wx.TextCtrl for the value previously set in
wx.TextCtrl.SetMaxLength(). Is there any mechanism available to do
this?
I don’t understand why wxWigets provides a setter for maximum length,