<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chamotarooo</author_name>
  <author_url>https://blog.hatena.ne.jp/chamotarooo/</author_url>
  <blog_title>chamotaroooのブログ</blog_title>
  <blog_url>https://chamotaro.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>はじめに 『Webブラウザエンジニアリング』の2章を、手を動かしながら進めている。 2章では、Python の tkinter でウィンドウを開き、その中に四角や丸や文字を描く。 本のとおりにコードを書いて実行すると、ウィンドウは開いた。 しかし中身は真っ白で、四角も丸も文字も出なかった。 コードが間違っているのか、Python の側に原因があるのか。 まずコードを疑い、次に同じ絵を3つの Python で描かせて比べた。 環境は、Apple シリコンの Mac と macOS 26.5.1 である。 真っ白になったのはコードのせいか tkinter は、Python から Tk という描画の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchamotaro.hatenablog.com%2Fentry%2Ftech%2Ftkinter-blank-canvas-macos26&quot; title=&quot;macOS 26 で tkinter の画面が真っ白になったので、Python を3つ比べた - chamotaroooのブログ&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>2026-10-06 22:54:51</published>
  <title>macOS 26 で tkinter の画面が真っ白になったので、Python を3つ比べた</title>
  <type>rich</type>
  <url>https://chamotaro.hatenablog.com/entry/tech/tkinter-blank-canvas-macos26</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
