Python 2.3b1 and _tkinter.Tcl_Obj
Stephen D Evans
sde at recombinant.demon.co.uk
Thu May 1 10:27:15 EDT 2003
"Stephen D Evans" <sde at recombinant.demon.co.uk> wrote:
> > My application runs Ok with Tkinter.wantobjects=False
"Martin v. Löwis" <martin at v.loewis.de> wrote:
>
> That's good to hear. It is still unclear to me whether you
> a) can accept that as a fact, and just continue to operate
> with that setting, or
Setting
Tkinter.wantobjects=False
is Ok
> b) find that converting your application to use Tcl objects
> is acceptable, or
My application uses Pmw.
The current implementation of Pmw (1.1) is not Ok with Tcl objects.
Therefore I cannot use Tcl objects at present.
I would convert to Tcl objects if I could.
n.b. Pmw also needs upgrading to Tkinter.TkVersion>=8.4
(I have not noticed any operating problems with the components that I am
using
when Tkinter.wantobjects==False)
> c) your application also runs with Tkinter.wantobjects=True, or
It does not run with Tkinter.wantobjects=True, refer b)
> d) you would prefer if that entire Tcl objects stuff went
> away, and the change was reverted.
IMHO Tcl objects are a good idea.
I think that the Pmw test script "Tkinter_test.py" illustrates the scope
of the (probably not to the average Tkinter user) problems with
upgrading to Python 2.3 and Tcl objects.
Pmw is at http://pmw.sourceforge.net/
Implementing an __eq__ comparison operator for _tkinter.Tcl_Obj with
_tkinter.Tcl_Obj and (possibly) strings might help.
regards,
Stephen D Evans
More information about the Python-list
mailing list