<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>feynman911</author_name>
  <author_url>https://blog.hatena.ne.jp/feynman911/</author_url>
  <blog_title>メグタンの何でもブログ</blog_title>
  <blog_url>https://feynman.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>wxpython</anon>
  </categories>
  <description>wxpythonのwx.CallLater - メグタンの何でもブログ の続き 画面のボタンはStartとAbortの2つになってます。 長時間実行されるタスク中にGUIの応答性を維持する CPUを使い続ける計算等でメインスレッドを占有すると、ウインドウが固まってしまい操作性が阻害される。 回避するには次のような方法がある。 wx.Yield()を使用する方法 wx.Yield()によって一時的に関数処理を中断しメインスレッドに他の処理をさせる。 計算ループ内で実行される頻度によって応答性は変わる。 画面の処理が行われるので、計算が終わるまで起動ボタンを無効化する。 def m_buttonS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffeynman.hatenablog.com%2Fentry%2F2022%2F09%2F18%2F161304&quot; title=&quot;wxPythonで長時間実行されるタスク中にGUIの応答性を維持する方法 - メグタンの何でもブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/f/feynman911/20220918/20220918195705.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-09-18 16:13:04</published>
  <title>wxPythonで長時間実行されるタスク中にGUIの応答性を維持する方法</title>
  <type>rich</type>
  <url>https://feynman.hatenablog.com/entry/2022/09/18/161304</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
