<p>标签引用:<a href="http://effbot.org/tkinterbook/label.htm#Tkinter.Label.config-method" rel="noreferrer">^{<cd1>}</a></p>
<blockquote>
<p>Controls how to combine text and image in the label. By default, if an image or bitmap is given, it is drawn instead of the text. If this option is set to <strong>CENTER</strong>, the text is drawn on top of the image. If this option is set to one of <strong>BOTTOM</strong>, <strong>LEFT</strong>, <strong>RIGHT</strong>, or <strong>TOP</strong>, the image is drawn besides the text (use <strong>BOTTOM</strong> to draw the image under the text, etc.). Default is <strong>NONE</strong>.</p>
</blockquote>
<pre><code>tab1 = note.add_tab(text = "Tab One",image=scheduledimage, compound=TOP)
</code></pre>
<p><a href="http://docs.python.org/3.1/library/tkinter.ttk.html#ttk-notebook" rel="noreferrer">^{<cd2>}</a>示例:</p>
<pre><code>from Tkinter import *
from ttk import *
root = Tk()
scheduledimage=PhotoImage(...)
note = Notebook(root)
tab1 = Frame(note)
tab2 = Frame(note)
tab3 = Frame(note)
Button(tab1, text='Exit', command=root.destroy).pack(padx=100, pady=100)
note.add(tab1, text = "Tab One",image=scheduledimage, compound=TOP)
note.add(tab2, text = "Tab Two")
note.add(tab3, text = "Tab Three")
note.pack()
root.mainloop()
exit()
</code></pre>