Replies: 6 comments 13 replies
|
I have a question why does the number text not change it says local variable not available in this code. |
|
I meant to say how do you put donkey in the buttons so that it will stick to one def not multiple in this code because I want to switch the tabs under specific conditions like losing or winning. def altogether(): gaming=Button(text=data[number]["choices"][0],command=lambda:next_question(0),width=53, height=5,bg='blue') gaming1=Button(text=data[number]["choices"][1],command=lambda:next_question(1),width=53, height=5,bg='blue') gaming2=Button(text=data[number]["choices"][2],command=lambda:next_question(2),width=53, height=5,bg='blue') gaming3=Button(text=data[number]["choices"][3],command=lambda:next_question(3),width=53, height=5,bg='blue') some_help=Button(text="?",command=half_help,width=15, height=2,bg='green') friend=Button(text="?",command=friend_help,width=15, height=2,bg='green') audience=Button(text="?",command=audience_help,width=15, height=2,bg='green') showing=Label(text=data[number]["question"],width=108, height=5,bg='aqua') account_money=Label(text="?",width=18, height=3,bg='blue') |
When I pulled the code this happened
|
|
And this is waht happened for better_monopoly something bad happenedgame_window = None with open ('data_monopoly.json',"r") as file: <<<<<<< HEAD def update_question():
|
|
I just copied the text from the new version of the code and put it in and now it works but it still says one the top "File has unresolved merge conflicts". |

Uh oh!
There was an error while loading. Please reload this page.
1
All reactions