LoginSignup
1
3

More than 3 years have passed since last update.

PythonのTkinterメモ(自分用)

Posted at

ウィジェット

Frame
概要:ウィジェットを格納する枠組みを作る。

Label
概要:文字列やイメージを表示する。

Message
概要:複数行の文字列を表示する。

Button
概要:ボタンを作る。

Radiobutton
概要:ラジオボタンを作る。

Listbox
概要:リストボックスを作る。

Scrollbar
概要:スクールバーを作る。

Scale
概要:スケールを作る。

Entry
概要:1行の文字列を入力と編集。

Menu
概要:メニューボタンを作る。

Menubutton
概要:メニューボタンを作る。

Bitmap
概要:ビットマップを作る。

Canvas
概要:キャンバスを作る。

Text
概要:テキストの入力と編集。

LabelFrame
概要:ラベル付きフレーム。

スピンボックス
概要:スピンボックスを作る。

PanedWindow
概要:ペインウィンドウを作る。


ウィジェットのオプション

foreground (fg)
文字や線を描くのに使用する色を指定

background (bg)
背景色の指定

text
ウィジェット内に表示されるテキスト

textvariable
テキストを格納するオブジェクトを指定

image
ウィジェット内に表示されるイメージ

bitmap
ウィジェット内に表示されるビットマップ

borderwidth (bd)
ウィジェットの枠の幅

relief
ウィジェットの枠のスタイル

height
ウィジェットの高さ

width
ウィジェットの幅

anchor
ウィジェットや表示されるデータの位置を指定

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