wxGrid issue

Igor Korot <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <CA+FnnTwsH5ZUAvYKNY7xF9-1ShXgZ7fgOV9tm8_9epfoHfeKUQ@mail.gmail.com>
Hi,
Just hit a bug with wxGrid.
It is on OSX 10.8.

Steps to reproduce:

1. Create grid.
2. On the Widget tab select "Label Background color"
3. Try to select a predefined color - I tried APPFACE.

Here is the backtrace:

[code]
ERROR   : None
An unexpected error occurred!

Exception type:      <type 'exceptions.ValueError'>
Exception details:

Application stack traceback:
  File "/Users/igorkorot/dbhandler/wxGlade/new_properties.py", line
1834, in display_dialog
    self._check_for_user_modification(value, activate=True)
  File "/Users/igorkorot/dbhandler/wxGlade/new_properties.py", line
1401, in _check_for_user_modification
    return Property._check_for_user_modification(self, new_value,
force, activate)
  File "/Users/igorkorot/dbhandler/wxGlade/new_properties.py", line
168, in _check_for_user_modification
    self.on_value_edited(new_value)
  File "/Users/igorkorot/dbhandler/wxGlade/new_properties.py", line
152, in on_value_edited
    self._notify()
  File "/Users/igorkorot/dbhandler/wxGlade/new_properties.py", line
176, in _notify
    self.owner.properties_changed([self.name])
  File "/Users/igorkorot/dbhandler/wxGlade/widgets/grid/grid.py", line
309, in properties_changed
    self._update_widget_properties(modified)
  File "/Users/igorkorot/dbhandler/wxGlade/widgets/grid/grid.py", line
277, in _update_widget_properties
    if m("label_bg_color"):     self.widget.SetLabelBackgroundColour(
misc.string_to_color(self.label_bg_color) )
  File "/Users/igorkorot/dbhandler/wxGlade/misc.py", line 209, in
string_to_color
    raise ValueError

Date and time:       2019-03-14T20:47:02.101485
Python version:      2.7.11
wxPython version:    3.0.2.0
wxWidgets platform:  __WXMAC__
wxGlade version:     0.9.2
[/code]

Sorry I didn't tried the other one on the branch yet...

Thank you.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.