Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- def draw_text(width, height, text):
- root = tk.Tk()
- root.title("Отображение текста")
- text_widget = tk.Text(root, width=width, height=height)
- text_widget.pack()
- text_widget.insert(tk.END, text)
- root.mainloop()
- draw_text(40, 10, "Привет мир")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement