Jan-21-2020, 02:51 PM
(This post was last modified: Jan-21-2020, 03:24 PM by arbondioxide.)
Hello, im creating a code for main menu for a game. Im using tkinter and want to make my buttons open a new window and so on . Basically making my buttons do something when pressed. any answers?
you absoilute snakes wtf you doing reply im in a computer science lesson and youre longing man out
from tkinter import * def main_screen(): screen= Tk() screen.geometry("300x250") screen.title("Bomberman") Label(text = "Bomberman", bg = "grey", font = ("Arial", 13)).pack() Button(text = "START").pack() Label(text = "").pack() Button(text = "LEADERBOARDS").pack() screen.mainloop() if __name__ == '__main__': main_screen()
you absoilute snakes wtf you doing reply im in a computer science lesson and youre longing man out