# -*- coding: utf-8 -*- import tkinter as tk #import tkinter.ttk as ttk root = tk.Tk() root.title("tk40.py") ##################################### ca = tk.Canvas(root, bg = 'lightgreen', relief = 'raised', bd = 5, width = 500, height = 500) ca.pack() line = ca.create_line(0,0, 20,20) error = ca.create_bitmap(20,20, bitmap = 'error', anchor = tk.W) gray75 = ca.create_bitmap(50,20, bitmap = 'gray75', background = 'pink', foreground = 'blue') """ gray50 = ca.create_bitmap(80,20, bitmap = 'gray50', background = 'red', foreground = 'white') gray25 = ca.create_bitmap(110,20, bitmap = 'gray25') gray12 = ca.create_bitmap(140,20, bitmap = 'gray12', background = 'white', foreground = 'black') hourglass = ca.create_bitmap(170,20, bitmap = 'hourglass', background = 'brown', foreground = 'yellow') info = ca.create_bitmap(200,20, bitmap = 'info') questhead = ca.create_bitmap(230,20, bitmap = 'questhead') question = ca.create_bitmap(270, 20, bitmap = 'question', background = 'gold', foreground = 'magenta') warning = ca.create_bitmap(300, 20, bitmap = 'warning', background = 'orange', foreground = 'black') """ ##################################### root.mainloop()