XRCed bug wxBitmapButton file

in XRCed (2.8.4.0) I noticed that I can not set files for the selected and disabled images. I get different errors on Linux ("node contents must be a string") and windowsXP ("type error: coercing ot unicode, need string or buffer, list found"). They appear even when I select the files from the "browse" button. First I thought it was because of whitepaces or slashes in the filename but no.

Has anyone else seen this too and found a solution?

Paul

···

--
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com

Paul Sijben wrote:

in XRCed (2.8.4.0) I noticed that I can not set files for the selected and disabled images. I get different errors on Linux ("node contents must be a string") and windowsXP ("type error: coercing ot unicode, need string or buffer, list found"). They appear even when I select the files from the "browse" button. First I thought it was because of whitepaces or slashes in the filename but no.

Has anyone else seen this too and found a solution?

Try this patch:

Index: wx/tools/XRCed/xxx.py

···

===================================================================
RCS file: /pack/cvsroots/wxwidgets/wxWidgets/wxPython/wx/tools/XRCed/xxx.py,v
retrieving revision 1.28.4.3
diff -u -4 -r1.28.4.3 xxx.py
--- wx/tools/XRCed/xxx.py 2007/05/03 17:01:31 1.28.4.3
+++ wx/tools/XRCed/xxx.py 2007/05/23 20:00:09
@@ -196,9 +196,9 @@
      styles = ['fg', 'bg', 'font', 'enabled', 'focused', 'hidden', 'tooltip']
      # Special parameters
      specials =
      # Bitmap tags
- bitmapTags = ['bitmap', 'bitmap2', 'icon']
+ bitmapTags = ['bitmap', 'bitmap2', 'icon', 'selected', 'focus', 'disabled']
      # Required paremeters: none by default
      required =
      # Default parameters with default values
      default = {}

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

yep that works! Thanks.

Robin Dunn wrote:

···

Paul Sijben wrote:

in XRCed (2.8.4.0) I noticed that I can not set files for the selected and disabled images. I get different errors on Linux ("node contents must be a string") and windowsXP ("type error: coercing ot unicode, need string or buffer, list found"). They appear even when I select the files from the "browse" button. First I thought it was because of whitepaces or slashes in the filename but no.

Has anyone else seen this too and found a solution?

Try this patch:

Index: wx/tools/XRCed/xxx.py

RCS file: /pack/cvsroots/wxwidgets/wxWidgets/wxPython/wx/tools/XRCed/xxx.py,v
retrieving revision 1.28.4.3
diff -u -4 -r1.28.4.3 xxx.py
--- wx/tools/XRCed/xxx.py 2007/05/03 17:01:31 1.28.4.3
+++ wx/tools/XRCed/xxx.py 2007/05/23 20:00:09
@@ -196,9 +196,9 @@
     styles = ['fg', 'bg', 'font', 'enabled', 'focused', 'hidden', 'tooltip']
     # Special parameters
     specials =
     # Bitmap tags
- bitmapTags = ['bitmap', 'bitmap2', 'icon']
+ bitmapTags = ['bitmap', 'bitmap2', 'icon', 'selected', 'focus', 'disabled']
     # Required paremeters: none by default
     required =
     # Default parameters with default values
     default = {}

--
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com