font_title = font.Font(family="Terminal", size=14, weight=font.BOLD) font_text = font.Font(family="Modern", size=10, weight=font.BOLD) B = Button(window, text="Hello ...
「Tkinter」によるPythonのGUIの作成方法をまとめました。 「Tkinter」はPythonでGUIを作成するための標準ライブラリです。 利用可能なウィジェットは、次のとおりです。 「Hello World」という文字列を表示するコードは、次のとおりです。 import tkinter as tk # アプリの ...