[EMAIL PROTECTED] wrote:
> Hello. I am writing an application in dabo, which requires the use of
> greek captions and so on. However I have encountered a problem with grid
> captions.
>
> I am using Windows XP SP2, although I wrote the application on Ubuntu
> Linux. In Windows, I used the binary installer (which is version 0.8.2 I
> think - although it should have been updated automatically), and I used
> the latest version to write the app in Linux. This is my GUI so far
> (screenshot taken in Linux):
>
> http://img385.imageshack.us/img385/4070/screenshot1sh6.png
>
> As you can see, there are a lot of greek captions.
That is cool! Are you using the localization method of converting English
strings to
Greek strings, or are you setting them manually in code?
> When I try to run the same app in Windows, most captions are displayed
> correctly, even the data. However, the captions of the column headers of
> the grid to the left are not displayed, and I get a bunch of errors like
> this one:
>
> Traceback (most recent call last):
> File
> "e:\python25\lib\site-packages\Dabo-0.8.4-py2.5.egg\dabo\ui\uiwx\dGrid.py",
> line 123, in GetColLabelValue
> self.grid._paintHeader(col)
> File
> "e:\python25\lib\site-packages\Dabo-0.8.4-py2.5.egg\dabo\ui\uiwx\dGrid.py",
> line 2349, in _paintHeader
> dc.DrawLabel("%s" % colObj.Caption, trect, wxav|wxah)
> File "E:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line
> 3584, in DrawLabel
> return _gdi_.DC_DrawLabel(*args, **kwargs)
> File "E:\Python25\lib\encodings\cp1253.py", line 15, in decode
> return codecs.charmap_decode(input,errors,decoding_table)
> UnicodeDecodeError: 'charmap' codec can't decode byte 0x8c in position 1:
> character maps to <undefined>
>
> Any ideas as to what might be the problem? Is there a way to solve it?
First step I believe would be to test on Windows using the same versions of
things
you are using on Ubuntu. So, what are the versions on Ubuntu of:
Python
wxPython
Dabo (including revision)
Now, install those versions on Windows and run without the Dabo runtime (well,
unless
the versions happen to match).
Else, try to match the Ubuntu versions of things with those that are in the
runtime
installer.
This smells to me like a wxPython bug in _gdi_.DC_DrawLabel, since other places
are
decoding the same bytes just fine, but perhaps if the dabo runtime version is,
say,
2.8.8.1 (I'm not sure what version is included) and your Ubuntu version is
2.8.9.1
(the current version) it is something that's been fixed.
You probably want to deploy your app using py2exe from Windows anyway, so it
may be
better to be more in control of the packages included.
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]