[New-bugs-announce] [issue22155] Out of date code example for tkinter's createfilehandle

Martin Panter report at bugs.python.org
Wed Aug 6 12:18:37 CEST 2014


New submission from Martin Panter:

The only documentation on “createfilehandle” and friends that I can find looks like it needs updating:

https://docs.python.org/release/3.4.0/faq/gui.html#can-i-have-tk-events-handled-while-waiting-for-i-o

I have been using the equivalent of this instead, for both Python 2 and 3:

import tkinter
widget = tkinter.Tk()
widget.tk.createfilehandler(file, tkinter.READABLE | tkinter.WRITABLE, callback)
...
widget.tk.deletefilehandler(file)

However I have no idea if this is a supported, proper way, if one even still exists. The old way was removed by Issue 3638.

BTW, there is a link to release/3.4.1 documentation but that returned a 404 error for me, so I linked to the 3.4.0 doc instead.

----------
assignee: docs at python
components: Documentation, Tkinter
messages: 224922
nosy: docs at python, vadmium
priority: normal
severity: normal
status: open
title: Out of date code example for tkinter's createfilehandle
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22155>
_______________________________________


More information about the New-bugs-announce mailing list