For a righttextfield widget in PythonCard, when I do
self.components.myrighttextfield.enabled = 0, the
widget is disabled but it isn't grayed out. To the user,
it appears to still be enabled. This seems to be just a
minor visual problem. I'm marking this as Trivial but
an eventual fix would still be appreciated.
ka's diagnosis:
Good catch. The problem is the underlying
wxRightTextCtrl in wxPython\lib\rightalign.py. The
OnPaint handler is what does the actual drawing when
the user isn't editing. In order for the control to look
right while disabled, the OnPaint method will have to
be updated.
Issue migrated from trac ticket # 864
component: wxPython | priority: normal
2003-03-16 16:58:16: dmilenko created the issue
For a righttextfield widget in PythonCard, when I do self.components.myrighttextfield.enabled = 0, the widget is disabled but it isn't grayed out. To the user, it appears to still be enabled. This seems to be just a minor visual problem. I'm marking this as Trivial but an eventual fix would still be appreciated.
ka's diagnosis: Good catch. The problem is the underlying wxRightTextCtrl in wxPython\lib\rightalign.py. The OnPaint handler is what does the actual drawing when the user isn't editing. In order for the control to look right while disabled, the OnPaint method will have to be updated.