[Idle-dev] [ idlefork-Bugs-689543 ] File/SaveAs Raises Tkinter Callback Error
SourceForge.net
noreply@sourceforge.net
Mon, 03 Mar 2003 19:25:33 -0800
Bugs item #689543, was opened at 2003-02-19 14:39
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=689543&group_id=9579
Category: None
Group: None
Status: Open
>Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Kurt B. Kaiser (kbk)
>Summary: File/SaveAs Raises Tkinter Callback Error
Initial Comment:
I installed Python 2.3a1. I start IDLE by 'python idle.py' and the shell
window is open in the background. When I want to save an idle session I do
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", 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'
----------------------------------------------------------------------
>Comment By: Kurt B. Kaiser (kbk)
Date: 2003-03-03 22:25
Message:
Logged In: YES
user_id=149084
You appear to be using IDLEfork installed from the tarfile.
I can't reproduce this problem on Linux using Python2.2.2,
Python2.3a0(14Dec), or Python2.3a2.
What version of Tcl/Tk do you have?
I did find a different problem where IDLEfork was trying to
save the breaks from the shell (there are none), so I fixed that.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=689543&group_id=9579