Opening a GUI window while running pyglet

145 views
Skip to first unread message

Joshua Behan

unread,
Sep 2, 2013, 2:45:09 AM9/2/13
to pyglet...@googlegroups.com
I'm writing a game in pyglet. It's been really really fun. What's not been fun is writing my own GUI stuff. It's taking longer than the writing the game. I just want a simple options menu.

Is something like this possible: While the game/pygelt app is running, the user clicks an "Options" button. This triggers the pyglet app to temporarily stop running. A Tkinter or wxPython (or whatever) window opens and displays an options menu. When the user is finished with the options menu, the options menu closes, the Tkinter/wxPython app stops running, and the pyglet app starts running again.

Would this be possible?

Thanks so so much.


Joshua Behan

unread,
Sep 2, 2013, 5:21:38 AM9/2/13
to pyglet...@googlegroups.com
Actually I tried it and it seems to work fine. Tkinter starts and pyglet waits patiently until the instance of tkinter is destoyed. Then pyglet resumes as if nothing happened.

Sorry for this silly thread in your inbox.


--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users...@googlegroups.com.
To post to this group, send email to pyglet...@googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Paul Colomiets

unread,
Sep 2, 2013, 6:14:12 AM9/2/13
to pyglet...@googlegroups.com
Hi Joshua,

On Mon, Sep 2, 2013 at 12:21 PM, Joshua Behan <joshua...@gmail.com> wrote:
> Actually I tried it and it seems to work fine. Tkinter starts and pyglet
> waits patiently until the instance of tkinter is destoyed. Then pyglet
> resumes as if nothing happened.
>
> Sorry for this silly thread in your inbox.

We've done that too. But we failed to get to work tkinter with
cx_Freeze for mac os x, it may or may not matter for you.

--
Paul

yanovskiy....@gmail.com

unread,
Sep 28, 2013, 6:23:13 AM9/28/13
to pyglet...@googlegroups.com
Greetings!

I have the same question, but with tkinter and pyglet reversed. (User starts tkinter program, does some calculations, clicks "Visualize" button. This triggers the tkinter application to temporarily stop running and starts pyglet app (one window). When the user closes pyglet window, the pyglet app stops running, and the tkinter app starts running again.) Is it possible ?

Sincerely,
Aleksander
Reply all
Reply to author
Forward
0 new messages