So, Iv’e got a pygame application. Right now, it takes a command line argument to specify which display to show the main screen on. However, I’m running it on windows, where it’s hard to specify command line input to a graphical application.
So, I’d like to have a very very very simple dialog box which pops up, prompts the user for an integer, then closes. My research has shown that pygame can’t do a dialog box like this, and I can’t get input in a pygame window, because the program doesn’t know yet which monitor to draw the pygame window to.
So, my question is, what is the simplest way to create a dialog box for input? I’ve looked into wx and tkinter. I could use either of them, but what I’m wondering is, but I want to import the least number of extra toolkits. i.e. I don’t want to have to start the wx main loop just so I can make 1 dialog, then close it, then start a whole new pygame window.
I know how to do this in wx, so I’m mostly looking for advice/ideas as to which toolkit would be simplest, as opposed to instruction on how to actually do it (though that’s always nice too).
This is probably an ugly way to do it, but what I ended up doing was using the win32 extensions. I found a base class here:
http://www.java2s.com/Open-Source/Python/Windows/pyExcelerator/pywin32-214/pythonwin/pywin/mfc/dialog.py.htm
I was already using them, so I didn’t need to import any new packages. That said, this is probably not a good general solution…