このホームページは Amazon Kindle 本の作成中の草稿です。日々、原稿を見直しているので、内容が変わることに留意して読んで下さい。本が出版され次第、このホームページは削除されます。
A1.8 登録マウスカーソル
ウィジェット上にマウスポインタがあるときに表示するポインタの形状(カーソル)は「cursor」オプションで設定することができます。「cursor」オプションに「カーソル定数」を指定します。「カーソル定数」は下記のように tkinter で定義されています。左側にカーソル形状、右側に「カーソル定数」を示しています。ここで、正確なカーソル形状のグラフィックは OS によって異なる場合があります。
arrow | |
based_arrow_down | |
based_arrow_up | |
boat | |
bogosity | |
bottom_left_corner | |
bottom_right_corner | |
bottom_side | |
bottom_tee | |
box_spiral | |
center_ptr | |
circle | |
clock | |
coffee_mug | |
cross | |
cross_reverse | |
crosshair | |
diamond_cross | |
dot | |
dotbox | |
double_arrow | |
draft_large | |
draft_small | |
draped_box | |
exchange | |
fleur | |
gobbler | |
gumby | |
hand1 | |
hand2 | |
heart | |
icon | |
iron_cross | |
left_ptr | |
left_side | |
left_tee | |
leftbutton | |
ll_angle | |
lr_angle | |
man | |
middlebutton | |
mouse | |
pencil | |
pirate | |
plus | |
question_arrow | |
right_ptr | |
right_side | |
right_tee | |
rightbutton | |
rtl_logo | |
sailboat | |
sb_down_arrow | |
sb_h_double_arrow | |
sb_left_arrow | |
sb_right_arrow | |
sb_up_arrow | |
sb_v_double_arrow | |
shuttle | |
sizing | |
spider | |
spraycan | |
star | |
target | |
tcross | |
top_left_arrow | |
top_left_corner | |
top_right_corner | |
top_side | |
top_tee | |
trek | |
ul_angle | |
umbrella | |
ur_angle | |
watch | |
xterm | |
X_cursor |