[source code] Python GUI with Tkinter - 12 - Messagebox

+1 Bucky Roberts · September 16, 2014

from tkinter import *
import tkinter.messagebox

root = Tk()

tkinter.messagebox.showinfo('Window Title', 'Monkeys can live up to 300 years.')
answer = tkinter.messagebox.askquestion('Question 1', 'Do you like silly faces?')

if answer == 'yes':
   print(' 8==D~~ ')

root.mainloop()

Post a Reply

Replies

Oldest  Newest  Rating
0 Wayne [Im That Damn Good] Leyden · September 16, 2014
I cant see episode 12,13 or 14 in the BR playlist
0 Bucky Roberts · September 16, 2014
Oops, didn't add them to the website yet. I'm recording some more videos now, I'll add them tonight. You can watch them on YouTube in the mean time  :)

https://www.youtube.com/playlist?list=PL6gx4Cwl9DGBwibXFtPtflztSNPGuIB_d
0 Wayne [Im That Damn Good] Leyden · September 16, 2014
ok thanks, how about a recent videos section on the front page?
0 Bucky Roberts · September 16, 2014
Hmm...that sounds like a good idea indeed. 
  • 1

Python

107,048 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator