Foreign characters on grid labels

Hi,

I have just installed wxPython 2.4.1.2 on Red Hat Linux 9. All grid
labels in my apps (and the demo) seem to have foreign (Chinese or
Japanese?) fonts!

Is this a known issue?

Regards,
Wayne

Wayne Koorts wrote:

I have just installed wxPython 2.4.1.2 on Red Hat Linux 9. All grid
labels in my apps (and the demo) seem to have foreign (Chinese or
Japanese?) fonts!

Is this a known issue?

I don't knwo about grid labels, but there was a bug in wxGTK that
created a similar problem if you re-sized the font that a control was
using. This may be related.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

I see.

Anyone else have thoughts on this? Has anyone else encountered this
wxGTK bug that Chris mentioned?

Wayne

···

On Thu, 2003-06-26 at 20:52, Chris Barker wrote:

Wayne Koorts wrote:

> I have just installed wxPython 2.4.1.2 on Red Hat Linux 9. All grid
> labels in my apps (and the demo) seem to have foreign (Chinese or
> Japanese?) fonts!
>
> Is this a known issue?

I don't knwo about grid labels, but there was a bug in wxGTK that
created a similar problem if you re-sized the font that a control was
using. This may be related.

-Chris

Wayne Koorts wrote:

I see.

Anyone else have thoughts on this? Has anyone else encountered this
wxGTK bug that Chris mentioned?

I've seen it, but never on grid labels.

···

Wayne

On Thu, 2003-06-26 at 20:52, Chris Barker wrote:

Wayne Koorts wrote:

I have just installed wxPython 2.4.1.2 on Red Hat Linux 9. All grid
labels in my apps (and the demo) seem to have foreign (Chinese or
Japanese?) fonts!

Is this a known issue?

I don't knwo about grid labels, but there was a bug in wxGTK that
created a similar problem if you re-sized the font that a control was
using. This may be related.

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

Isn't there maybe some kind of a language setting somewhere?

I'll post a screenshot of the problem if I may.

Wayne

···

On Thu, 2003-06-26 at 22:32, Robin Dunn wrote:

Wayne Koorts wrote:
> I see.
>
> Anyone else have thoughts on this? Has anyone else encountered this
> wxGTK bug that Chris mentioned?

I've seen it, but never on grid labels.

>
> Wayne
>
> On Thu, 2003-06-26 at 20:52, Chris Barker wrote:
>
>>Wayne Koorts wrote:
>>
>>
>>>I have just installed wxPython 2.4.1.2 on Red Hat Linux 9. All grid
>>>labels in my apps (and the demo) seem to have foreign (Chinese or
>>>Japanese?) fonts!
>>>
>>>Is this a known issue?
>>
>>I don't knwo about grid labels, but there was a bug in wxGTK that
>>created a similar problem if you re-sized the font that a control was
>>using. This may be related.
>>

it seems i have a problem with the defintions setting in my program. i have
a list of textboxes and the input is written in one big file..no problem so
far. but i want that every time the program runs the file can change of its
name. thus the filename is an input aswell at the beginning. but now it only
writes the information of the first textbox/radiobutton, and the rest of the
inputs are not written to the file.
if i put all definitions in one list after all textboxes, radiolists,
etcetera...the file is not correct (the inputs and the comments of what the
inputs are are not combined anymore..thus not readible for users).
Question: how can i let python know that the definitions is ended and the
program continues..?

a selection of panel 2 of the program (complete program is attached with
mail):

def EvtText20(self,event):
        print 'Filename', event.GetString()
        nfn=event.GetString()
        file_in=open(nfn,'w') #from here the inputlist is written in new
file

        file_in.writelines("Aircraft type (Combat, Transport, General
Aviation)")
        self.radioList=['Transportation','General Aviation','Combat']
        rb=wxRadioBox(self,-1,"Aircraft Type",wxPoint(10,50),wxDefaultSize,
                     self.radioList,3, wxRA_SPECIFY_COLS)
        EVT_RADIOBOX(self, -1, self.EvtRadioBox)

regards,
Stephan

savemodule.py (40.6 KB)

Stephan Huijgen wrote:

it seems i have a problem with the defintions setting in my program. i have
a list of textboxes and the input is written in one big file..no problem so
far. but i want that every time the program runs the file can change of its
name. thus the filename is an input aswell at the beginning. but now it only
writes the information of the first textbox/radiobutton, and the rest of the
inputs are not written to the file.
if i put all definitions in one list after all textboxes, radiolists,
etcetera...the file is not correct (the inputs and the comments of what the
inputs are are not combined anymore..thus not readible for users).
Question: how can i let python know that the definitions is ended and the
program continues..?

a selection of panel 2 of the program (complete program is attached with
mail):

def EvtText20(self,event):
        print 'Filename', event.GetString()
        nfn=event.GetString()
        file_in=open(nfn,'w') #from here the inputlist is written in new
file

        file_in.writelines("Aircraft type (Combat, Transport, General
Aviation)")
        self.radioList=['Transportation','General Aviation','Combat']
        rb=wxRadioBox(self,-1,"Aircraft Type",wxPoint(10,50),wxDefaultSize,
                     self.radioList,3, wxRA_SPECIFY_COLS)
        EVT_RADIOBOX(self, -1, self.EvtRadioBox)

regards,
Stephan

Just a guess, but you probably don't want to write to a file from the event handlers (EvtTextnn, EvtRadioBoxnn). The way you are doing it, new lines will be written to your file every time the user changes something in a control in the panel, so some data may never be written (if the user never changes the selection in a radio box), and some data may be written multiple times, and the none of the data will be written in any particular order. Unless you are trying to keep a running log of what the user does in the panel, that's probably not what you want.

Instead, you should should probably use a wxDialog rather than a panel, and write the data to a file after the user closes the dialog.

David

Wayne Koorts wrote:

Isn't there maybe some kind of a language setting somewhere?

I'll post a screenshot of the problem if I may.

I don't think it has anything to do with language settings, but probably a bug in how wxFont attributes are converted to a native font. When it has been seen before the cause was taking an existing wxFont, changing something such as the pointsize or weight, and then reusing the font.

Please enter a bug report (using a category of wxGTK) about this in case the problem in wxGrid is different.

···

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

Ok thanks, I'll do that.

···

On Mon, 2003-06-30 at 19:17, Robin Dunn wrote:

Wayne Koorts wrote:
> Isn't there maybe some kind of a language setting somewhere?
>
> I'll post a screenshot of the problem if I may.
>

I don't think it has anything to do with language settings, but probably
a bug in how wxFont attributes are converted to a native font. When it
has been seen before the cause was taking an existing wxFont, changing
something such as the pointsize or weight, and then reusing the font.

Please enter a bug report (using a category of wxGTK) about this in case
the problem in wxGrid is different.

Hi folks.

Is there any way to make a wxDirDialog capable of selecting multiple items?
I checked the docs and there's no mention of it. Thanks.

Paul Gardella

Paul Gardella wrote:

Hi folks.

Is there any way to make a wxDirDialog capable of selecting multiple items?
I checked the docs and there's no mention of it. Thanks.

No.

···

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