I want to add some GUI without simulating 2D Controls in 3D, and I think Tkinter module is easy enough to use. I set up a simple scene to try my idea, but it seems not work.
Neither import tkinter nor import Tkinter, as I tried out, works probably. Any suggestions? Thanks.
Asked
Active
Viewed 1,074 times
0
Page David
- 171
- 8
1 Answers
0
Tkinter will freeze your game and create a popup window, which is probably not what you want. You could install it, but I wouldn't suggest it.
I've found that making simple interfaces is harder in code (eg tkinter) than it is in BGE with objects. Of course, by the time you want combo boxes, you probably want a GUI library. And these libraries do exist. There is a nice one called BGUI you should look into. This writes into openGL ontop of BGE, so it won't freeze your game or create external windows.
sdfgeoff
- 1,982
- 1
- 11
- 13
pip3 install --target <directory> <package-name>. That will take away more spaces from disk maybe, but it is more convenient to share projects with others. – Page David Aug 20 '16 at 03:35