@@ -1391,8 +1391,7 @@ option. If you don't know the class name of a widget, use the method
13911391   .. method :: element_create(elementname, etype, *args, **kw) 
13921392
13931393      Create a new element in the current theme, of the given *etype * which is
1394-       expected to be either "image", "from" or "vsapi". The latter is only
1395-       available in Tk 8.6a for Windows XP and Vista and is not described here.
1394+       expected to be either "image" or "from".
13961395
13971396      If "image" is used, *args * should contain the default image name followed
13981397      by statespec/value pairs (this is the imagespec), and *kw * may have the
@@ -1418,13 +1417,28 @@ option. If you don't know the class name of a widget, use the method
14181417         Specifies a minimum width for the element. If less than zero, the
14191418         base image's width is used as a default.
14201419
1420+       Example::
1421+ 
1422+          img1 = tkinter.PhotoImage(master=root, file='button.png') 
1423+          img1 = tkinter.PhotoImage(master=root, file='button-pressed.png') 
1424+          img1 = tkinter.PhotoImage(master=root, file='button-active.png') 
1425+          style = ttk.Style(root) 
1426+          style.element_create('Button.button', 'image', 
1427+                               img1, ('pressed', img2), ('active', img3), 
1428+                               border=(2, 4), sticky='we') 
1429+ 
14211430      If "from" is used as the value of *etype *,
14221431      :meth: `element_create ` will clone an existing
14231432      element. *args * is expected to contain a themename, from which
14241433      the element will be cloned, and optionally an element to clone from.
14251434      If this element to clone from is not specified, an empty element will
14261435      be used. *kw * is discarded.
14271436
1437+       Example::
1438+ 
1439+          style = ttk.Style(root) 
1440+          style.element_create('plain.background', 'from', 'default') 
1441+ 
14281442
14291443   .. method :: element_names() 
14301444
0 commit comments