LoginSignup
0
0

More than 1 year has passed since last update.

PythonでGUIアプリを作りたい(Tkinter編)

Posted at

PythonでGUIアプリを作るにはTkinterを使うと簡単です。
Tkinterが標準モジュールですのでインポートするだけで使用できます。

import tkinter as tk

とりあえずウインドウを表示させてみます。

import tkinter as tk

# メインウィンドウの生成
root = tk.Tk()

# メインループ(ウインドウを表示する)
root.mainloop()

tkinter_gui_001.png

何も表示されていませんがウインドウが表示されました。

0
0
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
0
0