-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayers.py
More file actions
37 lines (27 loc) · 1.28 KB
/
players.py
File metadata and controls
37 lines (27 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from cProfile import label
from tkinter import *
from board import gameboard
win = None
def select(players):
win.destroy()
gameboard('mul',players)
def selectplayers():
print('in select Player')
global win
win = Tk()
win.title("Players")
win.geometry('650x350')
win.config(background="#000088")
label = Label(win, text='Select No. of Players', font=('times new roman', 15),bg="#2bff0a",relief="solid")
label.place(x = 50, y = 50 , height=100, width=550)
b1 = Button(win, command = lambda:select(1) ,text = '1', font=('times new roman', 20), activebackground="#FF0000",bg="#ffc30f")
b1.place(x = 50, y= 200 , height=100, width= 100)
b2 = Button(win, command = lambda:select(2) ,text = '2', font=('times new roman', 20), activebackground="#FF0000",bg="#ffc30f")
b2.place(x = 200, y= 200 , height=100, width= 100)
b3 = Button(win, command = lambda:select(3) ,text = '3', font=('times new roman', 20), activebackground="#FF0000",bg="#ffc30f")
b3.place(x = 350, y= 200 , height=100, width= 100)
b4 = Button(win, command = lambda:select(4) ,text = '4', font=('times new roman', 20), activebackground="#FF0000",bg="#ffc30f")
b4.place(x = 500, y= 200 , height=100, width= 100)
win.mainloop()
# def board(players):
# print(players)