Tkinter

Jmnote (토론 | 기여)님의 2017년 12월 17일 (일) 21:42 판 (→‎참고)

1 개요

Tkinter
  • Tk GUI 툴킷에 대한 표준 Python 인터페이스
<source lang=python line>
#!/usr/bin/env python3
import tkinter as tk

class Application(tk.Frame):
    def __init__(self, master=None):
        tk.Frame.__init__(self, master)
        self.grid()  
        self.createWidgets()

    def createWidgets(self):
        self.quitButton = tk.Button(self, text='Quit', command=self.quit)
        self.quitButton.grid()

app = Application()
app.master.title('Sample application')
app.mainloop()

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}