Changing part of a message's color in tkinter messagebox
<p>I have a TKinter messagebox like the one below. I would like to change <strong>part</strong> of the message to a different color. For example in the messagebox below I would like the language to be <code>Blue</code>. Is this possible?</p>

<p><a href="http://i.stack.imgur.com/wekJQ.png" rel="nofollow"><img src="http://i.stack.imgur.com/wekJQ.png" alt="enter image description here"></a></p>

<p>It's not possible to change such options of <a href="http://effbot.org/tkinterbook/tkinter-standard-dialogs.htm" rel="nofollow">Tkinter Standard Dialogs</a>. You need to create your own dialog. You'll also need to separate the text parts. I've tried to make something similar in the image that the <a href="http://stackoverflow.com/users/1480488/darthopto">OP</a> has posted above:</p>

<pre><code>from tkinter import *
root = Tk()

def choosefunc(option):
    if option == "cancel":
        print("Cancel choosen")
    else:
        print("OK choosen")

def popupfunc():

    tl = Toplevel(root)
    tl.title("Languages")

    frame = Frame(tl)
    frame.grid()

    canvas = Canvas(frame, width=100, height=130)
    canvas.grid(row=1, column=0)
    imgvar = PhotoImage(file="pyrocket.png")
    canvas.create_image(50,70, image=imgvar)
    canvas.image = imgvar

    msgbody1 = Label(frame, text="The", font=("Times New Roman", 20, "bold"))
    msgbody1.grid(row=1, column=1, sticky=N)
    lang = Label(frame, text="language(s)", font=("Times New Roman", 20, "bold"), fg='blue')
    lang.grid(row=1, column=2, sticky=N)
    msgbody2 = Label(frame, text="of this country is: Arabic", font=("Times New Roman", 20, "bold"))
    msgbody2.grid(row=1, column=3, sticky=N)

    cancelbttn = Button(frame, text="Cancel", command=lambda: choosefunc("cancel"), width=10)
    cancelbttn.grid(row=2, column=3)

    okbttn = Button(frame, text="OK", command=lambda: choosefunc("ok"), width=10)
    okbttn.grid(row=2, column=4)

label = Label(root, text="Click to proceed:")
label.grid()

button = Button(root, text="Click", command=popupfunc)
button.grid()
</code></pre>

<p>(Image URL: <a href="http://imgur.com/a/Nf75v" rel="nofollow">http://imgur.com/a/Nf75v</a>)</p>

python python-3.x tkinter