python - Simplest way to get initial text input in pygame -



python - Simplest way to get initial text input in pygame -

so, iv'e got pygame application. right now, takes command line argument specify display show main screen on. however, i'm running on windows, it's hard specify command line input graphical application.

so, i'd have very simple dialog box pops up, prompts user integer, closes. research has shown pygame can't dialog box this, , can't input in pygame window, because programme doesn't know yet monitor draw pygame window to.

so, question is, simplest way create dialog box input? i've looked wx , tkinter. utilize either of them, i'm wondering is, want import to the lowest degree number of toolkits. i.e. don't want have start wx main loop can create 1 dialog, close it, start whole new pygame window.

i know how in wx, i'm looking advice/ideas toolkit simplest, opposed instruction on how (though that's nice too).

since tkinter built python, might better. prefer wx, if want few dialogues, tkinter fine.

you seek raw_input('type "1" low res, "2" high res'). think brings dialog window in windows.

python user-interface tkinter pygame

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -