[Tutor] <no subject>

nhytro-python@web.de nhytro-python@web.de
Sun, 28 Oct 2001 11:51:18 +0100


I have the "backslash" problem with an application I=B4m developing. I know =
about escaping forward slashes or using raw strings, but things are not wo=
rking as I expect. A code snippet:

#################code -start

def go=5Frender():
........textfile =3D inputfile.get() # inputfile is a tkintet entry widget
........textfile =3D string.replace(textfile, '\\', '\\\\')
........editor =3D editorpath.get()# editorpath is a tkinter entry widget
........editor =3D string.replace(editor, '\\', '\\\\')
........os.system(r"%s %s" % (editor, textfile))
........
##############  end code snippet

this function is a callback function for a tkinter button. Nothing happens=
 when I press the button. Writing out the full paths like:
........os.system("c:\notepad" "mytext.txt")

works, but the values are taken interactively from entry wdgets from my ap=
plication. Does someone see what I do=B4nt see=3F could someone point out my m=
istake=3F


Great thanks in advance


Sharriff

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Lotto online tippen! Egal zu welcher Zeit, egal von welchem Ort.
Mit dem WEB.DE Lottoservice. http://tippen2.web.de/=3Fx=3D13