Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Doc/library/tkinter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1007,9 +1007,9 @@ Tk allows you to register and unregister a callback function which will be
called from the Tk mainloop when I/O is possible on a file descriptor.
Only one handler may be registered per file descriptor. Example code::

import tkinter
widget = tkinter.Tk()
mask = tkinter.READABLE | tkinter.WRITABLE
import tkinter as tk
widget = tk.Tk()
mask = tk.READABLE | tk.WRITABLE
widget.tk.createfilehandler(file, mask, callback)
...
widget.tk.deletefilehandler(file)
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/tkinter.ttk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1290,9 +1290,9 @@ option. If you don't know the class name of a widget, use the method
some padding and a different background color::

from tkinter import ttk
import tkinter
import tkinter as tk

root = tkinter.Tk()
root = tk.Tk()

ttk.Style().configure("TButton", padding=6, relief="flat",
background="#ccc")
Expand Down
Loading