how to know all style options of a ttk widget : <p>This problem nearly makes me craze. I am a new beginner and without knowledge of tck/tk. I have done carefully search on the internet but haven't found a good solution.</p>

<p>For example, I created a label frame using</p>

<pre><code>import tkinter as tk
from tkinter import ttk
newBT = ttk.LabelFrame(width=100, height=100)
</code></pre>

<p>Then I need to set the frame style. There is foreground for <strong>tk.LabelFrame</strong>. However, I didn't find such style option for <strong>ttk.LabelFrame</strong> on <a href="http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/ttk-LabelFrame.html" rel="noreferrer">NMT</a> and <a href="http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_labelframe.htm" rel="noreferrer">tck/tk</a> reference. Then I have to guess, like following</p>

<pre><code>s = ttk.Style()
s.configure('TLabelframe', foreground='red')
</code></pre>

<p>But this doesn't work, <a href="https://stackoverflow.com/questions/18755963/set-style-for-checkbutton-or-labelframe-in-python-tkinter">the right thing</a> is</p>

<pre><code>s.configure('TLabelframe.Label', foreground='red')
</code></pre>

<p>So, my question is, how can I find out all the style options a ttk widget has. Is there some function like</p>

<pre><code>s.getAllOptions('TLabelframe')
</code></pre>

<p>and then the output is something like</p>

<pre><code>['background', 'foreground', 'padding', 'border', ...]
</code></pre>

<p>Thanks!</p>
