raviteja yarasani's Profile

About

 
Points: 3

Contact

 

raviteja yarasani  >>  Bucky Roberts
December 23, 2015 · Public

# bucky please help me in rectifying the error in this code

from tkinter import *

root = Tk()

text1 = Label(root, text="hii this is a label tag")
text1.pack()


def printName(event, txt):
print(txt)


button = Button(root, text="press this")
button.bind("", printName("ravi"))
button.pack()

root.mainloop()

raviteja yarasani
December 23, 2015 · Public

# i am unable to run this code please help me to get out of this problem

from tkinter import *

root = Tk()

text1 = Label(root, text="hii this is a label tag")
text1.pack()


def printName(event, txt):
print(txt)


button = Button(root, text="press this")
button.bind("", printName("ravi"))
button.pack()

root.mainloop()

raviteja yarasani
December 21, 2015 · Public

from tkinter import *

root = Tk()

photo = PhotoImage(file="rr.jpg")
label = Label(root, image=photo)
label.pack()

root.mainloop()