3
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Tkinterで全画面表示する方法

Last updated at Posted at 2018-10-28

コード

全画面(全画面)

root.attributes("-fullscreen", True)

全画面にする際は、画面を閉じるボタンを追加してください。
でないと、永遠に真っ白な画面が表示されます。
画面を閉じる方法は、「tkinter close」「tkinter exit」「tkinter quit」等でググればでます。

全画面(Windowsにおける最大化)

root.attributes("-zoomed", "1")

参考元

https://code.i-harness.com/ja/q/798da7
http://utisam.hateblo.jp/entry/2013/01/12/212958

3
9
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
3
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?