Skip to content

example code for TKInter hello world program missing reference #143267

@timeulen

Description

@timeulen

Documentation

link to page: https://github.com/python/cpython/blob/main/Doc/library/tkinter.rst
the following code needs to be updated as highlighted:

from tkinter import *
from tkinter import ttk
root **= tkinter.** Tk()
frm = ttk.Frame(root, padding=10)
frm.grid()
ttk.Label(frm, text="Hello World!").grid(column=0, row=0)
ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0)
root.mainloop()

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirpendingThe issue will be closed if no feedback is providedtopic-tkinter

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions