Re: Python windowing, particularly Motif

Adrian Phillips (tandem@freeze.oslo.dnmi.no)
05 Aug 1994 06:07:46 GMT

In article <Cu190t.2ro@gremlin.nrtc.northrop.com> jpl@nrtc.northrop.com (Jeff P. Lankford) writes:

The current Python release supports several windowing extensions --
STDWIN, Tk, XMotif. Which is the preferred package? Which, if any,
are actively supported?

I am currently working with the XMotif extension, and have observed
some anomalies. In particular, after using SetValues to assign values
of type widget, the GetValues returns None. The culprit may
be xtvalue2p (at least there is a cryptic comment). Anyone else
noted this problem? Is there a fix, allowing me to be a Python programmer,
rather than a C programmer? Should I be using a different windowing
package?

thanks in advance,
jpl

Is this the new improved version of the X extension, or the old
slightly problematic (with regards SetValue/GetValue stuff) ?

I have been using Motif because we use it at work and there was no
tkpython (OK, tkinter) when I started. But I use Linux at home and
don't feel the urge to pay for a "standard" windowing interface so
have decided to concentrate on tkpython (a test trial, at any rate).
Its basically a matter of what you want to use it for. TK looks pretty
useful - the new version tk 4.0 will be even more Motif like and tk
hackers seem most enamoured of it. The X extension module is not
complete so if you want to do a lot you may run into problems. There
is another alternative wafe/mofe python which is tk/tcl/<many other
extensions if you want them>/python - this is full X but
creating/manipulating widgets is done using tcl so you have to learn a
small amount of that to cope.

A question related to this. How much effort is it to add extensions to
tkinter, that is those that were initially written just for
tcl/tk. Presumably its just a matter of linking a new tk lib and
linking this to tkinter ?

Adrian

--
-------------------------------------------------------------------------
= Adrian Phillips at            | BUT any thoughts in this are purely    =
= The Norwegian Meteorological  | my own and have nothing to do with     =
= Institute   	    	        | this establishment, thankfully.        =
= Net: adrian.phillips@dnmi.no  | Phone: 47 22 96 32 09 Fax: 47 22 96 30 50