%PDF- %PDF-
Direktori : /proc/self/root/proc/thread-self/root/lib64/python2.7/Demo/tkinter/ttk/ |
Current File : //proc/self/root/proc/thread-self/root/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyo |
� ��^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 i����N( 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 i����t 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'