Answers for "python tkinter rectangle"

4

rectangle in tkinter

from tkinter import *

root = Tk()

c = Canvas(root)
c.pack()
c.create_rectangle(100, 100, 200, 200)

root.mainloop()
Posted by: Guest on July-01-2020
3

python tkinter messagebox

import tkinter
from tkinter import messagebox
# hide main window
root = tkinter.Tk()
# message box display
messagebox.showerror("Error", "Error message")
messagebox.showwarning("Warning","Warning message")
messagebox.showinfo("Information","Informative message")
Posted by: Guest on November-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language