キャンバスを表示

2018/02/11

Python2.7.8

# -*- coding: utf-8 -*-

import Tkinter

def main():

    window = Tkinter.Tk()
    canvas = Tkinter.Canvas(window, bg = "white",
                            width = 300, height = 200)
    canvas.pack()
    window.mainloop()

if __name__ == '__main__':
    main()