python - Pygame with Multiple Windows -


i need to build application has multiple windows. in 1 of these windows, need able play simple game , window has display questions , response user influences game.

(1) wanting use pygame in order make game. there simple way have pygame operate multiple windows?

(2) if there no easy way solve (1), there simple way use other python gui structure allow me run pygame , window simultaneously?

the short answer no, creating 2 pygame windows in same process not possible. if want run 2 windows 1 process, should pyglet or cocos2d.

an alternative, if must use pygame, use inter-process communication. can have 2 processes, each window. relay messages each other using sockets. if want go route, check out socket tutorial here.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -