Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
how to put a button in python?
0
votes
asked
Jan 2, 2019
by
Filo4
(
240
points)
How do you put a button in python?
urgent
python
Please
log in
or register to answer this question.
1 Answer
0
votes
answered
Jan 3, 2019
by
NikhatShah
(
180
points)
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def helloCallBack():
tkMessageBox.showinfo("Hello Python", "Hello World")
B = Tkinter ,Button(top, text ="Hello", command = helloCallBack)
B. pack()
top.mainloop()
commented
Jan 4, 2019
by
Filo4
(
240
points)
thank you for the answer
commented
Jan 4, 2019
by
Filo4
(
240
points)
it doesn't work
commented
Jan 22, 2019
by
??????????????
(
250
points)
install python
Please
log in
or register to add a comment.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...