#!/usr/bin/env python

import tkinter


class MyApp(tkinter.Frame):
    def __init__(self, master):
        super().__init__(master)
        self.pack()
        
        self.cv = tkinter.Canvas(self, width=100, height=100)
        self.cv.pack()
        
        points = (10, 10,
                  90, 50,
                  10, 90)
        self.cv.create_polygon(*points, width=3, fill="orange", outline="black")


if __name__ == "__main__":
    root = tkinter.Tk()
    app = MyApp(root)
    app.mainloop()
