This does not crash on my Snow Leopard. To solve a bunch of other
Tkinter-related and build-related issues I have installed the latest ActiveTcl
(8.5) and ActivePython (2.6.4.8) on my machine.
I did have to patch one bug in pyglet.app.base but it was event loop timing
related and not a segfault. That fix is in SVN.
Richard
On 01/12/2009, at 4:03 AM, Daniel wrote:
> #!/usr/bin/env python
> # encoding: utf-8
>
> import pyglet
> from pyglet.window import key
>
> import Tkinter, tkFileDialog
>
> window = pyglet.window.Window(width=1024, height=768, caption='Dialog
> Test')
>
> @window.event
> def on_draw():
> window.clear()
>
> @window.event
> def on_key_press(symbol, modifiers):
> if symbol == key.O:
> root = Tkinter.Tk()
> root.withdraw()
> filename = tkFileDialog.askopenfilename()
> root.destroy()
> print filename
>
> if __name__ == '__main__':
> pyglet.app.run()
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.