by Ben the Coder » 13 Sep 2022, 18:42
Hi guys,
I'm using Python to have a messagebox display a variable.
Currently, my code looks like this:
Code: Select all
from tkinter import messagebox
myvar = "Name"
messagebox.showinfo("Title here", "You opened" % name)
I've checked out
this, but it doesn't seem to be happening for me. Can someone with more expertise help me with this?
Ben
Hi guys,
I'm using Python to have a messagebox display a variable.
Currently, my code looks like this:
[code]from tkinter import messagebox
myvar = "Name"
messagebox.showinfo("Title here", "You opened" % name)[/code]
I've checked out [url=https://stackoverflow.com/questions/14744314/how-to-display-variables-in-a-messagebox]this[/url], but it doesn't seem to be happening for me. Can someone with more expertise help me with this?
Ben