Replies: 6 comments 15 replies
|
I have a question how do you make it so that after you get green or red you get 1,2 in the index, because this code doesn't work. bee=100 def rgb(button): def win(donkey,donkeys): button0=Button(bg=color,command=lambda:rgb(button0)) button1=Button(bg=color,command=lambda:rgb(button1)) button2=Button(bg=color,command=lambda:rgb(button2)) button3=Button(bg=color,command=lambda:rgb(button3)) button4=Button(bg=color,command=lambda:rgb(button4)) button5=Button(bg=color,command=lambda:rgb(button5)) button6=Button(bg=color,command=lambda:rgb(button6)) button7=Button(bg=color,command=lambda:rgb(button7)) button8=Button(bg=color,command=lambda:rgb(button8)) app.mainloop() |
|
I found a bug if you click green in 2 index then red in 1st index then green in 5th index then red in 4th index then green in 7th index and red in 8th index it will say tht red won. win=[0,0,0,0,0,0,0,0,0] def rgb(button,index): def winning_positions(): button0=Button(bg=color,command=lambda:rgb(button0,0)) button1=Button(bg=color,command=lambda:rgb(button1,1)) button2=Button(bg=color,command=lambda:rgb(button2,2)) button3=Button(bg=color,command=lambda:rgb(button3,3)) button4=Button(bg=color,command=lambda:rgb(button4,4)) button5=Button(bg=color,command=lambda:rgb(button5,5)) button6=Button(bg=color,command=lambda:rgb(button6,6)) button7=Button(bg=color,command=lambda:rgb(button7,7)) button8=Button(bg=color,command=lambda:rgb(button8,8)) app.mainloop() |
|
Why does the column not add up in the button it is just one button there is no more buttons, in this code. win=[0,0,0,0,0,0,0,0,0] def rgb(button,index): def winning_positions(): row=0 app.mainloop() |
|
I have a question how do you do the lamda so that it will do the def. In this code def new_game(): def exit(): game=Label(text='New game',command=lambda: new_game) |
|
Why does "grid" placing not work I tried puttin row and column 100 or 10 and it wouldn't move and it look not in good shape. In this code def button1(): def button2(): def button3(): def button4(): def half_help(): def friend_help(): def audience_help(): gaming=Button(text="?",command=button1,width=53, height=5,bg='blue') gaming1=Button(text="?",command=button2,width=53, height=5,bg='blue') gaming2=Button(text="?",command=button3,width=53, height=5,bg='blue') gaming3=Button(text="?",command=button4,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="?",width=106, height=5,bg='blue') timer=Label(text="?",width=15, height=2,bg='blue') account_money=Label(text="?",width=18, height=3,bg='blue') app.mainloop() |
|
Can we start earlier today? |
Uh oh!
There was an error while loading. Please reload this page.
can we start today at 9 o`clock?
All reactions