I am making a poker game using pyGTK. My problem right now is that the other players won't let me play! Each player has a function for betting and they go in order such as amandaBet(), playerBet(), billBet()... where player is you. Since this is a GUI game, I am not using the terminal for input and am relying on Button widgets for the player to call, raise and fold. In my text version, this wasn't a problem because everything gets put on hold while waiting for raw_input. How can I make my playerBet() function wait for input from one of these buttons and not just check their status and move on to the next player?
Jump to Post
I havent really used pyGTK but I'll try to help anyway
I kinda did something similar to what you're trying to do but for a blackjack game If you have buttons like Fold, call, rise... why don't you just set the command to these buttons to be a separate …
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.