강의

멘토링

커뮤니티

Inflearn Community Q&A

00012943894's profile image
00012943894

asked

Introduction to Python and Creating Various Automated Applications Using Web Crawling

[ Quick Tip! ] How to Fix Environment Setup in Windows

tkinter 샘플 코드 실행 오류 건

Written on

·

1.3K

0

안녕하세요. 강사님.

anacoda에서 section2로 변경후 atom 실행해서 에딧팅 화면까지 정상적으로 나옵니다.

그후에 tkinter 샘플 코드를 넣었는데 자동완성이 일단 안되는것 같구요 코드 삽입후에 ctrl-shift-b로 컴파일 했는데 아무런 창이 뜨지 않습니다.

왜 그럴까요?

python웹-크롤링

Answer 1

0

niceman님의 프로필 이미지
niceman
Instructor

안녕하세요. 반갑습니다.

버전업이 되면서 실행 코드가 변경 되었을 것 같습니다.

아래 코드를 붙여넣어 보시고 실행 되는지 확인하시구요!

혹시 안되시면 vscode로 환경 설정 후 실행하셔서 확인해보세요!

from tkinter import *
from tkinter import ttk
root = Tk()
frm = ttk.Frame(root, padding=10)
frm.grid()
ttk.Label(frm, text="Hello World!").grid(column=0, row=0)
ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0)
root.mainloop()
00012943894's profile image
00012943894

asked

Ask a question