How can I create a Pygame login menu, that you can create an account, login, and log out.Without the use of GUI's.I have been searching online but have had no luck.
Asked
Active
Viewed 203 times
0
-
you have to use GUI module like PGU, SGU, OcempGUI. Or you will have to write all elements from scratch and it can be a lot work. – furas Dec 11 '17 at 22:39
-
do you have to use PyGame ? can't you use any GUI framework ? – furas Dec 11 '17 at 22:40
-
@furas I have to use solely pygame to create this.My project is to create a card game that can use different users and logins. If you can please help me get started on this it would be much appreciated! – Simeon George Dec 11 '17 at 22:42
-
[PyGame tag GUI](http://pygame.org/tags/gui) most popular are [PGU](http://www.pygame.org/project-PGU+-+Phil's+pyGame+Utilities-108-.html) and [OcempGUI](http://pygame.org/project/125). Normally they have to run own mainloop so you have to learn how to create own method and assign to mainloop so it will be executed. In [gui10.py](https://github.com/parogers/pgu/blob/master/examples/gui10.py) in PGU you can see how to use it inside own mainloop. – furas Dec 11 '17 at 22:54
-
@furas can you please help me to start this – Simeon George Dec 11 '17 at 23:03
-
PGU has many [examples on GitHub](https://github.com/parogers/pgu/tree/master/examples) - start with `gui1.py` – furas Dec 11 '17 at 23:09
-
You would have to create several sprites/blit images, and find mouse/keypresses and perform the actions needed, you could use the libraries above though – Mercury Platinum Dec 13 '17 at 21:55