Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- up = Radiobutton(frame1, text="up", variable=rows, value=1,indicatoron=0)#button for movingup
- up.grid( row=2,column=0 )
- down = Radiobutton(frame1, text="down", variable=rows, value=2,indicatoron=0)#button for moving down
- down.grid( row=3,column=0 )
- left = Radiobutton(frame1, text="left", variable=cols, value=3,indicatoron=0)#button for moving left
- left.grid( row=2,column=4 )
- right = Radiobutton(frame1, text="right", variable=cols, value=4,indicatoron=0)#button for moving #right
- right.grid( row=3,column=4 )
- vertical=Entry(frame1,bd=2,width=10)
- vertical.grid(row=4,column=0)
- horizontal=Entry(frame1,bd=2,width=10)
- horizontal.grid(row=4,column=4)
- enter=Button(main,text='Enter',command=move)#displays the move on grid once button is pressed
- enter.pack()
- label = Label(main)
- label.pack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement