python/stdwin fonts/text_edit

Jim Densmore (densmore@opus.dsaco.dsai.com)
Tue, 20 Sep 94 14:39:57 -0600

Hello, I'm fairly new to Python and I sure am enjoying it, though I find
it kind of humorous that most of the posted questions are on extensions;
makes me wonder if anyone is actually writing any Python code! ;-)

Three questions please:

1) There seems to be a "get" in the stdwin interface provided by Python
for everything except current font; that is, I find no analog for
stdwin.setfont(). I also have found no such routine in the stdwin
source code, though wsetfont is present in .../Ports/x11/font.c .
Is this an oversight? Hard to do in X for some reason?

2) How come stdwin.setfont() has no affect on text_edit objects in
windows subsequently opened? Setfont also fails to affect the font
in askstr boxes (and therefore, I assume, message, askync and askfile
boxes too) -- I presume that's because they're built on text_edits.

3) Can anyone tell me what type values I need to monitor for text_edit
boxes? To be more specific, for what values of type can
stdwin.text_edit.event(type, window, detail) return true?

In advance thank you very much! --Jim

________________________________________________________________
Jim Densmore, DECISION-SCIENCE APPLICATIONS Colorado Operations
1755 Telstar Drive, Suite 201, Colorado Springs, CO 80920-1018
Voice: 719/593-5974, Fax: -5978; Internet: densmore@dsai.com
Newsletter Editor, High Flights Soaring Club, Meadowlake Airport