The name of the GIF image files are "Pisces.gif", "Taurus.gif",etc.įrom Tkinter import * #Call all modules for TKinter in order to make GUI.Īpp = Tk() #Define a variable for the TKinter interface.Īpp.geometry("500x3000") #Size of window.īutton1=Button(app, text="January 20-Febuary 18",width=20)īutton2=Button(app, text="February 19-March 20",width=20)īutton3=Button(app, text="March 21-April 19",width=20)īutton4=Button(app, text="April 20-May 20",width=20)īutton5=Button(app, text="May 21-June 20",width=20)īutton6=Button(app, text="June 21-July 22",width=20)īutton7=Button(app, text="July 23-August 22",width=20)īutton8=Button(app, text="August 23-September 22",width=20)īutton9=Button(app, text="September 23-October 22",width=20)īutton10=Button(app, text="October 23-November 21",width=20)īutton11=Button(app, text="November 22-December 21",width=20)īutton12=Button(app, text="December 22-January 19",width=20)Īpp.mainloop() #Final input for making GUI When you click on the button, a new window should open with the GIF image of the horoscope sign. I need help with the button action for this code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |