【pygame】pythonでゲーム製作【ぱいがめ】at GAMEDEV
【pygame】pythonでゲーム製作【ぱいがめ】 - 暇つぶし2ch558:名前は開発中のものです。
11/10/06 14:00:44.50 fIdG2WnW.net
>>537
class WxTh(threading.Thread):
def __init__(self,theApp):
self.App=theApp
threading.Thread.__init__(self)
self.setDaemon(True)
def run(self):
self.App.MainLoop()
class xrcMyFrame1(wx.Frame):
def __init__(self, parent):
:
self.Bind(wx.EVT_CLOSE, self.kill)
:
def kill(self,e):
sys.exit()
self.Destroy()
def main():
pygame.init()
:
mywxapp = wx.App(False)
mywxframe = xrcMyFrame1(None)
mywxframe.Show()
mywxTh=WxTh(mywxapp)
mywxTh.start()

while True:
:
for event in pygame.event.get():
     if event.type == QUIT:
sys.exit()
 :
みたいな感じでどうでしょうか?僕はそうしてます。(MacOS10.4, python2.65, pygame 1.9.1, wxpython2.8.11.0)


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch