On 25/06/12 03:00, ken wrote:
If this belongs on another list, please let me know. I am using PYTHON 3
and tkinter. I have been playing around with messagebox. Is there any
way I can display the value of a variable inside a message box?
Yes, just insert it intro the message string prior to displaying the
messagebox:
import tkMessageBox
num = 6
tkMessageBox.showinfo("Village News", "Message for number %d" % num)
HTH,
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor