[Tutor] IDLEfork

B. Sieber bsieber@sieber-edv.net
Fri Feb 14 17:31:13 2003


--------------Boundary-00=_R2LBYQR2UIUQSX5RVQ57
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi, is this the right place for this question?:

I installed Python 2.3a1. I start IDLE by 'python idle.py' and the shell=20
window is open in the background. When I want to save an idle session I d=
o=20
not get a file. In the shell window I get this error message:
-------------------------------------------------------
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.3/lib-tk/Tkinter.py", line 1306, in __call=
__
    return apply(self.func, args)
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", lin=
e=20
273, in save
    self.save_as(event)
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", lin=
e=20
282, in save_as
    filename =3D self.asksavefile()
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", lin=
e=20
441, in asksavefile
    return self.savedialog.show(initialdir=3Ddir, initialfile=3Dbase)
  File "/usr/local/lib/python2.3/lib-tk/tkCommonDialog.py", line 54, in s=
how
    s =3D self._fixresult(w, s)
  File "/usr/local/lib/python2.3/lib-tk/tkFileDialog.py", line 58, in=20
_fixresult
    path, file =3D os.path.split(result)
  File "/usr/local/lib/python2.3/posixpath.py", line 65, in split
    i =3D p.rfind('/') + 1
AttributeError: '_tkinter.Tcl_Obj' object has no attribute 'rfind'
---------------------------------------------------------------------

Thank you=20
Bernhard
--------------Boundary-00=_R2LBYQR2UIUQSX5RVQ57
Content-Type: text/plain;
  charset="us-ascii";
  name="error.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="error.txt"

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.3/lib-tk/Tkinter.py", line 1306, in __call__
    return apply(self.func, args)
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", line 273, in save
    self.save_as(event)
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", line 282, in save_as
    filename = self.asksavefile()
  File "/usr/local/lib/python2.3/site-packages/idlelib/IOBinding.py", line 441, in asksavefile
    return self.savedialog.show(initialdir=dir, initialfile=base)
  File "/usr/local/lib/python2.3/lib-tk/tkCommonDialog.py", line 54, in show
    s = self._fixresult(w, s)
  File "/usr/local/lib/python2.3/lib-tk/tkFileDialog.py", line 58, in _fixresult
    path, file = os.path.split(result)
  File "/usr/local/lib/python2.3/posixpath.py", line 65, in split
    i = p.rfind('/') + 1
AttributeError: '_tkinter.Tcl_Obj' object has no attribute 'rfind'

--------------Boundary-00=_R2LBYQR2UIUQSX5RVQ57--