[Python-checkins] r74430 - python/branches/tk_and_idle_maintenance/Lib/lib-tk/Tkinter.py

guilherme.polo python-checkins at python.org
Thu Aug 13 21:39:00 CEST 2009


Author: guilherme.polo
Date: Thu Aug 13 21:39:00 2009
New Revision: 74430
Log:
Another fix regarding the move to Tcl_CreateObjCommand in _tkinter.
Modified:
 python/branches/tk_and_idle_maintenance/Lib/lib-tk/Tkinter.py
Modified: python/branches/tk_and_idle_maintenance/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/branches/tk_and_idle_maintenance/Lib/lib-tk/Tkinter.py	(original)
+++ python/branches/tk_and_idle_maintenance/Lib/lib-tk/Tkinter.py	Thu Aug 13 21:39:00 2009
@@ -1116,7 +1116,11 @@
 if len(args) != len(self._subst_format): return args
 getboolean = self.tk.getboolean
 
- getint = int
+ def getint(ob):
+ # XXX The conversion below is done since now ob might be
+ # a _tkinter.Tcl_Obj
+ return int(str(ob))
+
 def getint_event(s):
 # Tk changed behavior in 8.4.2, returning "??" rather more often.
 s = str(s) # XXX need to formally test this case


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /