[Tutor] text editor problems
Matthias Hager
martok@mattsmail.com
Sat, 20 Jan 2001 15:45:27 -0800
That's what I thought(just see if those variables are there), I have(kind of, just reworded for less space)
def save():
if sname:
open sname and write to it
elif oname:
open oname and write to it
else:
saveas()
def saveas():
sname = asksaveasfile
blah blah
def open():
oname = askopenfile
blahblah
Then it gives me the error: No variable named sname exists.
I know you guys gotta be getting sick of me, but what am I doing wrong?
I can't figure it out, and I've tried changing it to:
if oname != "":
elif sname != "":
All kinds of stuff, but I'm still getting an error.
Any help is appreciated
Matthias
--
Programming isn't cool, it's awesome.
%%%################?????????###################^^^
martok@mattsmail.com
http://mymymatthias.tripod.com/
%%%################????????####################^^^
--
Like my email address? Get your own for FREE at http://firstname.com
Get you@JohnsMail.com or you@AlexsMail.com or pick from 500 more!