« Pubmedが遅いと思ったらEuropePMCというミラーもあります。 | トップページ | py2exeでwxPythonアプリをカッコ良い見た目でパッケージ化。 »

2013年10月10日 (木)

wxpythonで長いタスク中でもレスポンシブなGUI。

いままでwxpythonからながーいタスクを始めたときはメインのFrame内のメソッドとして処理ループをおいて、そこでwx.Yield()を使うので済むときは済ませて、そうじゃない場合wx.lib.delayedresultを使っていたんだけども、マルチコアを有効に使いたいと思ったら標準ライブラリのthreadingモジュールを使うケースが結構多いみたいなので、その場合のそのひな形として参考になる例がwxpythonのWikiサイトの記事(LongRunningTasks)を見つけたので忘備録にメモ。なにげに記事にした記憶というのは残っているもので自分のブログを検索したり良くしているのでソーシャルブックマークよりも使えてたりする。

今回、別ファイルに関数としてすでに作ってある処理をwx側から呼び出して、結果を待っている状況で、できるだけこの関数をいじらずにGUIがリフレッシュされるようにしたかったんだけど、この場合Yieldが使えるかどうかわからなかったのでmultiprocessingモジュールつかってみたり色々ためしたもののpy2exeでパッケージ化するとどうも変なことが起こったりするので、結局wx.Yield()をループの中に入れたらそれであっさりうまくいってしまった。パフォーマンス落ちるかもだけどwx.Yield()が一番簡単でいいな。体感はしなかったがwx.YieldIfNeeded()とすれば多少パフォーマンスもマシになるかもしれない。というわけでthreadingは今回は道半ばでパス。

« Pubmedが遅いと思ったらEuropePMCというミラーもあります。 | トップページ | py2exeでwxPythonアプリをカッコ良い見た目でパッケージ化。 »

日記・コラム・つぶやき」カテゴリの記事

Python」カテゴリの記事

コメント

https://www.pandoraoutlet-online.us.com/
https://www.bestbasketballshoes.us/
https://www.nikerunningshoessale.us.com/
https://www.pumashoess.us.com/
https://www.pandorasofficialsite.us.com/
https://www.nikecom.ca/
https://www.balenciagashoess.us.com/
https://www.jordan1retro.us.com/
https://www.pandorasbraceletcharms.us.com/
https://www.nikeshoeswomen.us.com/
https://www.monclersale.com.co/
https://www.jordan1low.us.com/
https://www.nikeoutletstoreonlineshopping.us.com/
https://www.balenciagatriplessneakers.us.com/
https://www.wholesaleairjordanscheap.us/
https://www.ferragamosbelts.us.com/
https://www.outletasics.us.com/
https://www.trainersshop.uk.com/
https://www.pandoraringsjewelry.us.com/
https://www.goyardhandbagsoutlet.us.com/
https://www.nikeairjordan1.us.com/
https://www.cheapjordanshoeswholesale.us/
https://www.balenciagasneakersoutlet.us.com/
https://www.sneakersadidas.us.com/
https://www.nikeshoes-formen.us.com/
https://www.nikecanadaonlines.ca/
https://www.outletsmonclerjackets.us.com/
https://www.pandorasjewellery.us.com/
https://www.adidasshoesmen.us.com/
https://www.wholesalejordanshoes.us/
https://www.airjordans1.us.com/
https://www.balenciagastores.us.com/
https://www.pandora-jewelryoutlets.us.com/
https://www.jordan1shoes.us.com/
https://www.pandorajewelry-officialsites.us/
https://www.pandorasjewelrys.us.com/
https://www.pandorasstore.us.com/
https://www.monclersjacketsoutlet.us.com/
https://www.cheapshoesoutletonlines.us/
https://www.adidassale.us.com/
https://www.pandoraoutletjewelry.us.com/
https://www.pandorastores.us.com/
https://www.nike--shoes.ca/
https://www.adidasshoeswomen.us.com/
https://www.monclercoatsjacketsoutlet.us.com/
https://www.balenciagastore.us.com/
https://www.pandorabraceletsclearance.us.com/
https://www.nikesstore.us.com/
https://www.ferragamosbelt.us.com/
https://www.monclersaleoutlets.us.com/
https://www.pandora-charmssaleclearance.us/
https://www.pandorasjewelrysite.us.com/
https://www.trainersforsale.uk.com/
https://www.airjordan1retro.us.com/
https://www.charmspandoras.us/
https://www.nikesneakersformen.us.com/
https://www.pandorasoutlet.us.com/
https://www.adidasshoesfactory.us.com/
https://www.pandorajewelryoff.us.com/
https://www.asicsgel-kayano.us.com/
https://www.pandorasjewelryoff.us.com/
https://www.pandorajewelrysblackfriday.us.com/
https://www.shoesasicsoutlet.us.com/
https://www.pandorasjewelry-officialsite.us.com/
https://www.ferragamocom.us/
https://www.pandorabraceletscharms.us.com/
https://www.nikemensshoes.us.com/
https://www.nikeshoesnew.us.com/
https://www.nikesnkrs.ca/
https://www.adidasshoes-canada.ca/
https://www.pandorajewelrybracelets.us.com/
https://www.salvatoreferragamos.us.com/
https://www.nikeshoes-forwomen.us.com/
https://www.nikesneakersforwomen.us.com/
https://www.pandorashops.us.com/
https://www.pandora-jewellery.us.com/
https://www.pandorajewelryshop.us.com/
https://www.nikescanadaonlineshopping.ca/
https://www.nmd.us.com/
https://www.pandorasjewelrycharms.us.com/
https://www.pandoracharmss.us.com/
https://www.jordanretro1.us.com/
https://www.airjordan1shoes.us.com/
https://www.yeezycom.us/
https://www.balenciagashoesstore.us.com/
https://www.adidascanadaonline.ca/
https://www.asicsshoess.us.com/
https://www.cheapmoncler.com.co/
https://www.shoesferragamo.us.com/
https://www.balenciagasneakerssales.us.com/
https://www.nikestorefactorys.us.com/
https://www.nikestoreoutlets.us.com/
https://www.nikeoutlets.ca/
https://www.pandorajewelrysofficialsite.us.com/
https://www.pandoraoutletscharms.us.com/
https://www.pandorascom.us.com/
https://www.monclerjacket.com.co/
https://www.yeezycanadashop.ca/
https://www.nikeoutletstore-onlineshopping.us.com/
https://www.pandoracharms-bracelets.us/
https://www.yeezysshoes.ca/
https://www.pandoras-outlet.us.com/
https://www.monclersfactory.us.com/
https://www.outletstoreonlineshopping.com.co/
https://www.pandorass.us/
https://www.adidass.ca/
https://www.jordan1high.us/
https://www.yeezys350.ca/
https://www.pandoracharmsjewelrys.us/
https://www.nikecanada-shoes.ca/
https://www.pandorajewelrywebsites.us.com/
https://www.diorjordan1.us.com/
https://www.wholesalejordanshoes.us.org/
https://www.pandorasjewelryofficialsite.us.com/
https://www.adidas-runningshoes.us.com/
https://www.pandora-outletcharms.us.com/
https://www.goyardbagsoutlet.us.com/
https://www.monclercoat.com.co/
https://www.airmax720.us.com/
https://www.pandoras-charms.us.com/
https://www.pandorabraceletsjewelry.us.com/
https://www.pandoraoutletsonline.us.com/
https://www.pandoraofficialsites.us.com/
https://www.airjordan1s.us.com/
https://www.adidasnewshoes.us.com/
https://www.pandorashops.us/
https://www.pandora-store.us.com/
https://www.adidasshoescheap.us.com/
https://www.nikeshoess.ca/
https://www.pandorajewelrysbracelets.us.com/
https://www.asicsoutletshoes.us.com/
https://www.jordanones.us/
https://www.nikecanadaonlineshopping.ca/
https://www.asicssneakers.us.com/
https://www.pandorasrings.us.com/
https://www.adidasstoreoutlets.us.com/
https://www.pandoraoutletscharms.us/
https://www.adidasofficialwebsite.us.com/
https://www.nikeonline-canada.ca/
https://www.airjordan1low.us/
https://www.pandoracharmsstore.us.com/
https://www.jewelryspandora.us/
https://www.asicsrunningshoess.us.com/
https://www.pandorashop.us.com/
https://www.pandoracharms-bracelets.us.com/
https://www.newshoes2021.us/

https://www.nikeairmaxs-270.us.com/
https://www.wholesaleshoescheap.us/
https://www.officialpandorajewelry.us/
https://www.cheapadidasshoes.us.org/
https://www.cheapnbabasketballjerseys.us.org/
https://www.canadashoesoutlet.ca/
https://www.nmdr1.us.com/
https://www.wholesalejerseyscheapest.us.com/
https://www.pandorasbracelets.us/
https://www.cheapnfljerseyswholesalefromchina.us.com/
https://www.nikeairhuaraches.us.com/
https://www.cheapnfljerseys.com.co/
https://www.trainersshop.org.uk/
https://www.nflfanshop.us.org/
https://www.cheapjordanshoeswholesale.us/
https://www.pandora.us.org/
https://www.lebronsjamesshoes.us.com/
https://www.nikesoutletstore.us.com/
https://www.nikeairforces.us.com/
https://www.nikeshoessale.us.org/
https://www.baseballjerseyswholesale.us.com/
https://www.jordan1.us.org/
https://www.wholesalecheapjerseysshop.us/
https://www.cheapjerseysfromchinawholesale.us/
https://www.nflfootballjerseys.us.org/
https://www.wholesalenflfootballjerseyscheap.us/
https://www.nikerosheblazer.us.org/
https://www.huaracheshoes.us.com/
https://www.cheapjerseyswholesalefromchina.us.org/
https://www.adidasstoreoutlet.us.com/
https://www.ringspandora.us/
https://www.wholesalejerseyschina.us.org/
https://www.nikecanadashoesshop.ca/
https://www.wholesalejordanshoes.us.org/
https://www.wholesalenfljerseys.us.org/
https://www.nflshoponline.ca/
https://www.pandora-jewelry-charms.us/
https://www.newnikesneakers.us.org/
https://www.football-jerseys.us.org/
https://www.nikeshoesdeals.us.com/
https://www.nhlshops.ca/
https://www.nbajerseyswholesalecheap.us.com/
https://www.mlbjerseyscheap.com.co/
https://www.nikesbdunk.us.com/
https://www.adidasoutletstore.us.org/
https://www.nbabasketballjerseyscheap.us.com/
https://www.fjallravenkankenbackpack.us.org/
https://www.nikerosheblazers.us.com/
https://www.shoesshop.ca/
https://www.cheapshoeswholesalefreeshipping.us/
https://www.nikeshoesstores.us.com/
https://www.newnfljerseys.us.com/
https://www.nike-outlets.us.com/
https://www.nikesoutlet.us.org/
https://www.nikeairzoom.us.com/
https://www.cheapjordansshoessale.us/
https://www.officialnfljersey.us.com/
https://www.nikewholesalesuppliers.us.com/
https://www.airmaxs.us.org/
https://www.airjordanretro.us.org/
https://www.jordan4.us.org/
https://www.nikeepicreactuptempo.us.org/
https://www.newnbajerseys.us.com/
https://www.jordan33.us.org/
https://www.cheapnbajerseyswholesale.com.co/
https://www.wholesalenikeshoesonline.us.com/
https://www.bestnfljerseyscheap.us.com/
https://www.wholesalecheapjerseysfromchina.us.org/
https://www.cheapsportsjerseysfromchina.us/
https://www.nikefoampositeacghyperdunk.us.com/
https://www.christianslouboutin.us.org/
https://www.christianlouboutincom.us/
https://www.nikezoomshoes.us.com/
https://www.nhlhockeyjerseyscheap.us.com/
https://www.cheapnfljerseyschina.us.org/
https://www.nikes.us.org/
https://www.wholesalejerseyscheap.us.org/
https://www.cheapjordanswholesalefreeshipping.us/
https://www.nikeoffwhite.us.org/
https://www.pandorajewelryshop.us.org/
https://www.nikeair-force1.us.org/
https://www.cheapjerseysfromchinafactory.us.com/
https://www.cheapjerseys-wholesale.com.co/
https://www.nikeshoesoutletstoreonlineshopping.us.com/
https://www.christianlouboutinshoess.us.com/
https://www.nflstore.us.org/
https://www.nikeairmax270s.us.com/
https://www.nikeairjordan.us.org/
https://www.nikefree.us.org/
https://www.nbastore.com.co/
https://www.nikeoutletshoes.us.org/
https://www.cheapnhljerseys.com.co/
https://www.nikerunningshoes.us.org/
https://www.nikeshoeswholesale.us.com/
https://www.nikesneakerss.us.com/
https://www.cheapjerseyswholesalefreeshipping.us/
https://www.huaraches.us.org/
https://www.jerseyswholesalestore.us.com/
https://www.filashoesshop.us.org/
https://www.jordan-12.us.org/
https://www.nikeairforce1.us.org/
https://www.wholesalejordanshoes.us/
https://www.nikeairmaxs.us.org/
https://www.pandora-charmssale.us.org/
https://www.nikeslidessandalsslipers.us.com/
https://www.jordanshoess.us.org/
https://www.air-max2019.us.org/
https://www.cheapmlbjerseyswholesale.com.co/
https://www.nikeairforce1s.us.org/
https://www.shoeswholesalesuppliers.us/
https://www.jewelrynecklacerings.org.uk/
https://www.airmax720.us.org/
https://www.nhlhockeyjerseyswholesale.us.com/
https://www.nflshopofficial.org/
https://www.nbaapparel.us.org/
https://www.mlbstore.us.org/
https://www.cheapjerseyswholesale.ca/
https://www.moncleroutletukshop.org.uk/
https://www.officialpandorarings.us/
https://www.nbajerseyswholesale.com.co/
https://www.cheapjerseyswholesalestore.us.org/
https://www.jerseysstore.ca/
https://www.foamposites.us.org/
https://www.cheapshoeswholesalefromchina.us/
https://www.nfljerseysofficialshop.us/
https://www.nikeoutlet-store.us.org/
https://www.nikemetcons.us.com/
https://www.wholesalejerseys-cheap.us.com/
https://www.cheapnfljerseysfromchina.us.org/
https://www.wholesaleshoesclothing.us/
https://www.wholesalejerseyscheapstore.us/
https://www.jerseyscheapwholesaler.us.com/
https://www.mlbbaseballjerseys.com.co/
https://www.cheapnfljerseyswholesale.us.org/
https://www.wholesalejordans.us.org/
https://www.pandorajewelryofficialsite.us.org/
https://www.cheapjerseyswholesale.com.co/
https://www.nhlstore.com.co/
https://www.nflfootballjerseyscheap.com.co/
https://www.nikeairforceones.us.org/
https://www.jordan5.us.org/
https://www.cheapjerseysfromchinawholesale.com.co/
https://www.nikeoutletstoreonlines.us.org/
https://www.christianslouboutin.org.uk/
https://www.nflshop.com.co/
https://www.redbottomslouboutinshoes.us.org/
https://www.newjordans.us.org/
https://www.nikecortezshox.us.org/
https://www.trainersforsale.org.uk/
https://www.nhljerseysstore.ca/
https://www.nikeblackfridaycybermonday.us.org/
https://www.nike-runningshoes.us.org/
https://www.mlbjerseyscheapwholesale.com.co/
https://www.airforce1s.us.org/
https://www.wholesalenbajerseyscheap.us.com/
https://www.yeezysboost350v2.us.org/
https://www.wholesaleairjordanscheap.us/
https://www.cheapadidasshoeswholesale.us.com/
https://www.airjordan33.us/
https://www.nhlhockeyjerseyscheap.us.org/
https://www.jordan11s.us.org/
https://www.mlbbaseballjerseys.us.org/
https://www.pandorajewelryofficialsites.us/
https://www.cheapjerseyssale.us.org/
https://www.adidasyeezywebsite.us.org/
https://www.jordanswholesale.us.org/
https://www.newnikesshoes.us.org/
https://www.pandoraa.us/
https://www.nhljerseyscheapwholesale.us.com/
https://www.shoesstores.ca/
https://www.nflstore.com.co/
https://www.nflfootballjerseyscheap.us.com/
https://www.pandorajewelrycharmscanada.ca/
https://www.wholesalenikeshoesclothing.us.com/
https://www.nike-clearance.us.org/
https://www.cheapjordanshoessuppliers.us.org/
https://www.nflproshop.com.co/
https://www.pandorajewelrycz.us/
https://www.cheapjordanswholesale.us.org/
https://www.pandora-jewelrysite.us/
https://www.nikewholesale.us.org/
https://www.yeezyadidas.com.co/
https://www.nikeshoescheap.us.org/
https://www.cheapjordansshoeswholesale.us.org/
https://www.nflstoreonlineshopping.us/
https://www.mlbjerseysshop.ca/
https://www.wholesaleshoessneakers.us/
https://www.nbastorecanada.ca/
https://www.nflgearuniforms.us/
https://www.wholesaleadidas.us.com/

コメントを書く

(ウェブ上には掲載しません)

トラックバック


この記事へのトラックバック一覧です: wxpythonで長いタスク中でもレスポンシブなGUI。:

« Pubmedが遅いと思ったらEuropePMCというミラーもあります。 | トップページ | py2exeでwxPythonアプリをカッコ良い見た目でパッケージ化。 »

しろののツイッタータイムライン(凍結中)

オススメたち

2021年7月
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

はてブ

無料ブログはココログ