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)