On 9/27/07, Erick Tryzelaar <[EMAIL PROTECTED]> wrote:
> On 9/27/07, skaller <[EMAIL PROTECTED]> wrote:
> > > > ./bin/gflx.py
> > > Exception exceptions.AttributeError: "StringVar instance has no
> > > attribute '_tk'" in <bound method StringVar.__del__ of
> > > <Tkinter.StringVar instance at 0x5970d0>> ignored
> > > Traceback (most recent call last):
> > >   File "./bin/gflx.py", line 543, in ?
> > >     app = App(root,initfile)
> > >   File "./bin/gflx.py", line 269, in __init__
> > >     value=self.appstate.runstring)
> > > TypeError: __init__() got an unexpected keyword argument 'name'
> >
> > Do you have Tcl/Tk installed?

So it looks like the "name='...' " in StringVar is a python 2.5 thing,
and optional. I've never used tkinter before, but It looks like if you
don't name the string, it'll just automatically generate one. So,
replacing this:

    self.runcmd = StringVar(master,name="runcmd",
      value=self.appstate.runstring)

with this:
    self.runcmd = StringVar(master)
    self.runcmd.set(self.appstate.runstring)

May just be more portable. The native mac python can open it up now.
The colors are nicer too :) One odd thing is that i can't move the
window around. If i have some time, i'll research what's going on.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to