CustomTkinter/test/test_simple_font_circle.py

17 lines
601 B
Python
Raw Normal View History

2022-02-21 17:19:04 +03:00
import tkinter
app = tkinter.Tk()
app.geometry("600x500")
canvas = tkinter.Canvas(master=app, highlightthickness=0, bg="gray30")
canvas.pack(expand=True, fill="both")
2022-04-09 20:37:07 +03:00
text_1 = canvas.create_text(100, 100, text="", font=('Helvetica', -4, 'bold'))
text_2 = canvas.create_text(100, 200, text="", font=('Helvetica', -8, 'bold'))
text_3 = canvas.create_text(100, 300, text="", font=('Helvetica', -12, 'bold'))
text_4 = canvas.create_text(100, 400, text="", font=('Helvetica', -20, 'bold'))
text_5 = canvas.create_text(400, 400, text="", font=('Helvetica', -100, 'bold'))
2022-02-21 17:19:04 +03:00
2022-04-09 20:37:07 +03:00
app.mainloop()