Commit Graph

205 Commits

Author SHA1 Message Date
Guido van Rossum 9bb4fd6061 * tkintermodule.c (*FileHandler): generalize to arbitrary file ids
and objects that hav a fileno() method; fix bug in FileHandler
	(should call XDECREF instead of DECREF)
1994-08-09 14:15:19 +00:00
Guido van Rossum e2ca9bd156 * tkintermodule.c: OK, I've fixed the "tty" problem. You're right
no need for the stdin handler, a Tk_DoOneEvent(TK_DONT_WAIT) did
	the trick.  I've included a diff to tkintermodule.c.
1994-08-03 08:01:43 +00:00
Guido van Rossum d308e2ba3e * tkintermodule.c
(PyInit_tkinter): Only create stdin file handler when stdin
	 is a tty.
	 (Tkinter_Cleanup): New function.  This is an exit handler that
	 cleanup Tk.
1994-07-07 09:25:12 +00:00
Guido van Rossum 7687522309 * tkintermodule.c (Tkapp_New): Remove #ifdef WITH_APPINIT.
* tkintermodule.c (FileHandler): Make arg a tuple; bug found
	by <tnb2d@cs.virginia.edu>.  Call the Python file handler
	function with (file, mask) argument.  Fix a few of my refcnt bugs.
1994-06-27 07:59:42 +00:00
Guido van Rossum 1846882254 Initial revision 1994-06-20 07:49:28 +00:00