<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python 3</anon>
    <anon>tkinter</anon>
  </categories>
  <description>tkinterのbind(&quot;&lt;1&gt;&quot;, ...)あるいはbind(&quot;&lt;Button-1&gt;&quot;, ...)は左クリックではなく左ボタン降下です。この方法でコールバック関数からポップアップメニューを呼び出すとボタンの表示が降下状態のままになります。 左クリックを検出したい場合はButton(..., command=...)などのcommand引数を使います。event: Event引数は使えなくなりますが、TkやFrameのサブクラスを使っていればfn(self)のselfからカーソル位置などを取得できるので問題ありません。 英語圏のページでも普通に間違えが書いてあるので、正解にたどり着くまで時間…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2022%2F09%2F05%2F183514&quot; title=&quot;Python 3 tkinterのbind(&amp;quot;&amp;lt;1&amp;gt;&amp;quot;, ...)は左クリックでなく左ボタン降下 - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-09-05 18:35:14</published>
  <title>Python 3 tkinterのbind(&quot;&lt;1&gt;&quot;, ...)は左クリックでなく左ボタン降下</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2022/09/05/183514</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
