python - Tkinter or Pygame which should I use -


i'm start programming game computing level. game version of scrabble won't have board. how many words can make in amount of time. game have menus, buttons , logins different users access game. i'm wanting know if better use tkinter or pygame or if can use aspects of both: eg tkinter menus , pygame main loop. appreciated i'm quite new both these ideas please explain specialist terminology. lot

so, expanding issue: love pygame, in offers simple api 1 draw things on screen-canvas, , nice o.o. hierarchy , tooling sprites , game objects on screen.

on other hand, did not evolve have nice installer python3 - in platforms near impossible working in python3 (despite pygame code being python3 ready).

it not offer support menus, or buttons, or text-entry - have either use third party module that, or create allby hand yourself. yu have implement things reading keyboard code, drawing corresponding glyph on correct location on canvas - , keyboard reading raw, , won't give things character composition provided o.s. - might important in word related application.

in short: need featured app, , should using tkinter that. mainloop: have use tkinter's loop , implement after event calls control parts of code have initiate actions.

pygame gives full control of mainloop - , learning purposes - gaming or gui toolkits have mainloop, , have register callbacks.

it possible have application have "control screens" - menus, buttons, logins, , on, written in tkinter , main game screen, action takes place, made in pygame. won't solve pygame's hard-to-install problems, , may awkward players themselves.

for multimedia-stuff moving projects pyglet, since behaved python module,and have capabilities pygame lacks. tkinter can pretty nice things in canvas widget, , sure enough hld game.

(you should have noted emphasized python3 lot - so, while did not ask, should use python 3.5 (or 3.6) project - if choose pygame - abyss between python versions widening , python 2 has date discontinued)

update: tried "pip install pygame" on python 3.5 virtualenv, , did install flawlessly - project alive , kicking, , installing may not hard anymore. said, you'd still have create code menus , buttons.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -