LoginSignup
1
2

More than 5 years have passed since last update.

windowが表示されない(Tkinter)

Posted at

背景

webアプリケーション開発のためpythonのGUIフレームワークであるTkinterを触ろうとしたところwindowが表示されませんでした。

解決策

Tkinterのmainloopと言うメソッドで解決しました!!

window_tkinter.py
import tkinter as tk

root = tk.Tk()
root.title(u"test")
root.geometry("400x300")
root.mainloop()

スクリーンショット 2018-11-15 11.33.58.png

無事にwindowが表示されました!!

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2