Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Tkinter GUI help

Here's my code : https://w.trhou.se/nj4bxt2zgt

So here's my problem. Whenever I click the Button of the Class StartPage named Mage I want it to get to the mage Class I added a lambda but it doesn't seem to work. Could anyone please try to run the code I put in the link above and tell me what's wrong.

Thanks for reading :}

3 Answers

Hi, I'm not 100% sure of what are you trying to accomplish (seems like a game using tk) but I've modified a few lines and it is working now (at least displaying the button and the frame): http://pastebin.com/FbadEce0

Lines modified: 16, 45 and 52

Oh Thanks a LOT! That's exactly what I tried to do :P and yes i am making a game. The game is done I just not good at GUIS so :P

Still a big thanks !

Cool! Why don't you try to make this game using a game development library like pyglet?

Yeah ill definitly try it out but for now I got another problem and since you seem to be good with tkinter I had another problem https://teamtreehouse.com/community/player-creation

If you could take a quick look it'd be much appriciated :}

Thanks