???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................
^c           @   s   d  Z  d d l Z d d l Z d d l Z d d l m Z d g Z i d d 6d d 6d	 d
 6d d 6Z i  Z d   Z	 d   Z
 d S(   ss  This demonstrates good part of the syntax accepted by theme_create.

This is a translation of plastik.tcl to python.
You will need the images used by the plastik theme to test this. The
images (and other tile themes) can be retrived by doing:

$ cvs -z3 -d:pserver:anonymous@tktable.cvs.sourceforge.net:/cvsroot/tktable   co tile-themes

To test this module you should do, for example:

import Tkinter
import plastik_theme

root = Tkinter.Tk()
plastik_theme.install(plastik_image_dir)
...

Where plastik_image_dir contains the path to the images directory used by
the plastik theme, something like: tile-themes/plastik/plastik
iN(   t
   PhotoImaget   installs   #efefeft   frames   #aaaaaat
   disabledfgs   #657a9et   selectbgs   #fffffft   selectfgc         C   s   t  j j |   }  t  j j |   s7 t d |    n  xW t j d |   D]B } t  j j |  d } | d  } t | d | d d t | <qK Wd  S(   Ns(   %r is not a directory, can't load imagess   %s/*.gifi   it   filet   formatt   gif89(	   t   ost   patht
   expandusert   isdirt	   Exceptiont   globt   splitR    t   imgs(   t   imgdirt   ft   imgt   name(    (    s6   /usr/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyt
   _load_imgs%   s    
c         C   s=  t  |   t j   } | j d d d i' i i t d d 6t d d 6t d d 6t d	 d
 6t d d 6d d 6d d 6d 6i d t d f g d 6d 6d 6i d i d d 6d d 6f d i d d 6d d 6f d i d d 6d d 6f d i d d 6d i d d  6d d! 6d" i d d 6f g d# 6f g d# 6f g d$ 6d% 6i d& i d' d 6d d 6f d( i d) d 6d d 6f d& i d) d 6d d 6f d* i d+ d 6d, i d d  6d d! 6d- i d d 6f g d# 6f g d# 6f g d$ 6d. 6i i d/ d0 6d1 d2 6d 6d3 i d4 i d5 i d6 i d' d 6d d  6f g d# 6f g d# 6f g d# 6f g d$ 6d7 6i i d1 d2 6d 6d8 i d9 i d: i d; i d' d 6d d  6f g d# 6f g d# 6f g d# 6f g d$ 6d< 6i d= i d> i d) d 6f d? i d@ i dA i d' d 6d d  6f g d# 6f g d# 6f g d# 6f g d$ 6dB 6i i dC dD dC dC g dE 6d 6dF 6i i dG dD dG dD g dH 6dC dC dD g d  6d 6i dI d dD dJ dD g f g d  6d 6dK 6i i dC dH 6d 6dL 6i dM dN d d i dJ d/ g dS 6dJ dH 6dT d 6f dU 6d3 6i dM dV d d d i dJ dY g dS 6dZ dH 6d[ d 6f dU 6d9 6i dM d\ d d d d i d d 6f dU 6da 6i dM db d d d d i d d 6f dU 6dg 6i dM dh i dZ dS 6d+ d 6f dU 6d, 6i d dU 6d- 6i d dU 6d* 6i dM dk i dZ dS 6d d 6f dU 6d 6i d dU 6d" 6i d dU 6d 6i dM dn d i d d 6f dU 6dp 6i dM dq d i d d 6f dU 6ds 6i dM dt d i d d 6f dU 6dv 6i dM dw d i d d 6f dU 6dy 6i dM dz i d d 6f dU 6d{ 6i dM d| i d dS 6dC dH 6f dU 6d} 6i dM d~ i d d 6f dU 6d 6i dM d i d dS 6dC dH 6f dU 6d 6i dM d d i dD dS 6dZ dJ g dH 6d[ d 6f dU 6d 6i dM dS i dJ dS 6dJ dH 6d[ d 6f dU 6d 6i dM d d i d[ d 6dJ dG d d g dS 6dJ dJ d g dH 6f dU 6d= 6i dM d i d d 6d dC dC dC g dS 6f dU 6d> 6i dM d d d d d d i dJ dG d d g dS 6dJ dJ d g dH 6d[ d 6f dU 6d 6i dM d i d d 6d dC dC dC g dS 6f dU 6d 6i dM d i dJ dS 6f dU 6d 6i dM d d d i dC dD dC dC g dH 6dJ d/ dJ d/ g dS 6f dU 6d 6i dM d i dD dS 6f dU 6d 6i dM d i dD dY g dS 6f dU 6d 6i dM d i dY dD g dS 6f dU 6d 6i dM d d i dJ d/ g dS 6dJ dH 6d[ d 6f dU 6d 6| j d  d  S(   Nt   plastikt   defaultt   settingsR   t
   backgroundt   troughcolorR   t   selectbackgroundR   t   selectforegroundt   fieldbackgroundt   TkDefaultFontt   fonti   t   borderwidtht	   configuret   disabledR   t
   foregroundt   mapt   .s   Vertical.Scrollbar.uparrowt   topt   sidet    t   stickys   Vertical.Scrollbar.downarrowt   bottoms   Vertical.Scrollbar.trought   nss   Vertical.Scrollbar.thumbt   expandt   units   Vertical.Scrollbar.gript   childrent   layouts   Vertical.TScrollbars   Horizontal.Scrollbar.leftarrowt   lefts   Horizontal.Scrollbar.rightarrowt   rights   Horizontal.Scrollbar.trought   ews   Horizontal.Scrollbar.thumbs   Horizontal.Scrollbar.grips   Horizontal.TScrollbari
   t   widtht   centert   anchors   Button.buttons   Button.focuss   Button.paddings   Button.labelt   TButtons   Toolbutton.borders   Toolbutton.buttons   Toolbutton.paddings   Toolbutton.labelt
   Toolbuttons   Menubutton.buttons   Menubutton.indicators   Menubutton.focuss   Menubutton.paddings   Menubutton.labelt   TMenubuttoni    i   t
   tabmarginst	   TNotebooki   t   paddingt   selectedi   s   TNotebook.tabt   Treeviewt   images   button-nt   presseds   button-pt   actives   button-ht   bordert   ewnss   element creates	   tbutton-ns	   tbutton-ps	   tbutton-hi	   i   t   newss   check-nus   check-hcs   check-pcs   check-hus   check-ncs   Checkbutton.indicators   radio-nus   radio-hcs   radio-pcs   radio-hus   radio-ncs   Radiobutton.indicators   hsb-ns   hsb-gs   hsb-ts   vsb-ns   vsb-gs   vsb-ts	   arrowup-ns	   arrowup-ps   Scrollbar.uparrows   arrowdown-ns   arrowdown-ps   Scrollbar.downarrows   arrowleft-ns   arrowleft-ps   Scrollbar.leftarrows   arrowright-ns   arrowright-ps   Scrollbar.rightarrows	   hslider-ns   Horizontal.Scale.sliders	   hslider-ts   Horizontal.Scale.troughs	   vslider-ns   Vertical.Scale.sliders	   vslider-ts   Vertical.Scale.troughs   entry-nt   focuss   entry-fs   Entry.fields   Labelframe.borders   combo-rs   combo-rai   i   i   s   arrow-dt   es   combo-nt   readonlys   combo-fas   combo-as	   !readonlys   combo-fs   Combobox.fields   Combobox.downarrows
   notebook-cs   Notebook.clients   notebook-tns   notebook-tss   notebook-tas   Notebook.tabs   hprogress-ts   Progressbar.troughs   hprogress-bs   Horizontal.Progressbar.pbars   vprogress-bs   Vertical.Progressbar.pbars   tree-ns   tree-ps   Treeheading.cell(   R?   s   button-p(   R@   s   button-h(   R<   s	   tbutton-p(   R?   s	   tbutton-p(   R@   s	   tbutton-h(   R@   R<   s   check-hc(   R?   R<   s   check-pc(   R@   s   check-hu(   R<   s   check-nc(   R@   R<   s   radio-hc(   R?   R<   s   radio-pc(   R@   s   radio-hu(   R<   s   radio-nc(   R>   s   hsb-g(   R>   s   hsb-t(   R>   s   vsb-g(   R>   s   vsb-t(   R?   s	   arrowup-p(   R?   s   arrowdown-p(   R?   s   arrowleft-p(   R?   s   arrowright-p(   RD   s   entry-f(   R@   s   combo-ra(   RF   R@   s   combo-ra(   RD   R@   s   combo-fa(   R@   s   combo-a(   s	   !readonlyRD   s   combo-f(   RF   s   combo-r(   R<   s   notebook-ts(   R@   s   notebook-ta(   R?   s   tree-p(   R   t   ttkt   Stylet   theme_createt   colorst	   theme_use(   R   t   style(    (    s6   /usr/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyR   .   s   
//@@@!*'))""	"")).&.4!!-(   t   __doc__R	   R   RG   t   TkinterR    t   __all__RJ   R   R   R   (    (    (    s6   /usr/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyt   <module>   s   	
		