ok

Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/lib64/python2.7/Demo/tkinter/ttk/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyc

�
��^c@s�dZddlZddlZddlZddlmZdgZidd6dd6d	d
6dd6ZiZd
�Z	d�Z
dS(ssThis 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
PhotoImagetinstalls#efefeftframes#aaaaaat
disabledfgs#657a9etselectbgs#fffffftselectfgcCs�tjj|�}tjj|�s7td|��nxWtjd|�D]B}tjj|�d}|d }t|d|dd�t|<qKWdS(Ns(%r is not a directory, can't load imagess%s/*.gifii����tfiletformattgif89(	tostpatht
expandusertisdirt	ExceptiontglobtsplitRtimgs(timgdirtftimgtname((s6/usr/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyt
_load_imgs%s
cCs=t|�tj�}|jdddi'iitdd6tdd6tdd6td	d
6tdd6dd
6dd6d6idtdfgd6d6d6ididd6dd6fdidd6dd6fdidd6dd6fdidd6didd 6dd!6d"idd6fgd#6fgd#6fgd$6d%6id&id'd6dd6fd(id)d6dd6fd&id)d6dd6fd*id+d6d,idd 6dd!6d-idd6fgd#6fgd#6fgd$6d.6iid/d06d1d26d6d3id4id5id6id'd6dd 6fgd#6fgd#6fgd#6fgd$6d76iid1d26d6d8id9id:id;id'd6dd 6fgd#6fgd#6fgd#6fgd$6d<6id=id>id)d6fd?id@idAid'd6dd 6fgd#6fgd#6fgd#6fgd$6dB6iidCdDdCdCgdE6d6dF6iidGdDdGdDgdH6dCdCdDgd 6d6idIddDdJdDgfgd 6d6dK6iidCdH6d6dL6idMdNd�d�idJd/gdS6dJdH6dTd6fdU6d36idMdVd�d�d�idJdYgdS6dZdH6d[d6fdU6d96idMd\d�d�d�d�idd6fdU6da6idMdbd�d�d�d�idd6fdU6dg6idMdhidZdS6d+d6fdU6d,6id�dU6d-6id�dU6d*6idMdkidZdS6dd6fdU6d6id�dU6d"6id�dU6d6idMdnd�idd6fdU6dp6idMdqd�idd6fdU6ds6idMdtd�idd6fdU6dv6idMdwd�idd6fdU6dy6idMdzidd6fdU6d{6idMd|iddS6dCdH6fdU6d}6idMd~idd6fdU6d6idMd�iddS6dCdH6fdU6d�6idMd�d�idDdS6dZdJgdH6d[d6fdU6d�6idMdSidJdS6dJdH6d[d6fdU6d�6idMd�d�id[d6dJdGd�d�gdS6dJdJd�gdH6fdU6d=6idMd�id�d6d�dCdCdCgdS6fdU6d>6idMd�d�d�d�d�d�idJdGd�d�gdS6dJdJd�gdH6d[d6fdU6d�6idMd�id�d6d�dCdCdCgdS6fdU6d�6idMd�idJdS6fdU6d�6idMd�d�d�idCdDdCdCgdH6dJd/dJd/gdS6fdU6d�6idMd�idDdS6fdU6d�6idMd�idDdYgdS6fdU6d�6idMd�idYdDgdS6fdU6d�6idMd�d�idJd/gdS6dJdH6d[d6fdU6d�6�|jd�dS(�NtplastiktdefaulttsettingsRt
backgroundttroughcolorRtselectbackgroundRtselectforegroundtfieldbackgroundt
TkDefaultFonttfontitborderwidtht	configuretdisabledRt
foregroundtmapt.sVertical.Scrollbar.uparrowttoptsidettstickysVertical.Scrollbar.downarrowtbottomsVertical.Scrollbar.troughtnssVertical.Scrollbar.thumbtexpandtunitsVertical.Scrollbar.griptchildrentlayoutsVertical.TScrollbarsHorizontal.Scrollbar.leftarrowtleftsHorizontal.Scrollbar.rightarrowtrightsHorizontal.Scrollbar.troughtewsHorizontal.Scrollbar.thumbsHorizontal.Scrollbar.gripsHorizontal.TScrollbari
twidthtcentertanchors
Button.buttonsButton.focussButton.paddingsButton.labeltTButtonsToolbutton.bordersToolbutton.buttonsToolbutton.paddingsToolbutton.labelt
ToolbuttonsMenubutton.buttonsMenubutton.indicatorsMenubutton.focussMenubutton.paddingsMenubutton.labeltTMenubuttoniit
tabmarginst	TNotebookitpaddingtselectedis
TNotebook.tabtTreeviewtimagesbutton-ntpressedsbutton-ptactivesbutton-htbordertewnsselement creates	tbutton-ns	tbutton-ps	tbutton-hi	itnewsscheck-nuscheck-hcscheck-pcscheck-huscheck-ncsCheckbutton.indicatorsradio-nusradio-hcsradio-pcsradio-husradio-ncsRadiobutton.indicatorshsb-nshsb-gshsb-tsvsb-nsvsb-gsvsb-ts	arrowup-ns	arrowup-psScrollbar.uparrowsarrowdown-nsarrowdown-psScrollbar.downarrowsarrowleft-nsarrowleft-psScrollbar.leftarrowsarrowright-nsarrowright-psScrollbar.rightarrows	hslider-nsHorizontal.Scale.sliders	hslider-tsHorizontal.Scale.troughs	vslider-nsVertical.Scale.sliders	vslider-tsVertical.Scale.troughsentry-ntfocussentry-fsEntry.fieldsLabelframe.borderscombo-rscombo-raiiisarrow-dtescombo-ntreadonlyscombo-fascombo-as	!readonlyscombo-fsCombobox.fieldsCombobox.downarrows
notebook-csNotebook.clientsnotebook-tnsnotebook-tssnotebook-tasNotebook.tabshprogress-tsProgressbar.troughshprogress-bsHorizontal.Progressbar.pbarsvprogress-bsVertical.Progressbar.pbarstree-nstree-psTreeheading.cell(R?sbutton-p(R@sbutton-h(R<s	tbutton-p(R?s	tbutton-p(R@s	tbutton-h(R@R<scheck-hc(R?R<scheck-pc(R@scheck-hu(R<scheck-nc(R@R<sradio-hc(R?R<sradio-pc(R@sradio-hu(R<sradio-nc(R>shsb-g(R>shsb-t(R>svsb-g(R>svsb-t(R?s	arrowup-p(R?sarrowdown-p(R?sarrowleft-p(R?sarrowright-p(RDsentry-f(R@scombo-ra(RFR@scombo-ra(RDR@scombo-fa(R@scombo-a(s	!readonlyRDscombo-f(RFscombo-r(R<snotebook-ts(R@snotebook-ta(R?stree-p(RtttktStylettheme_createtcolorst	theme_use(Rtstyle((s6/usr/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyR.s

/
/@@@!*'))""	"")).&.4!!-(t__doc__R	RRGtTkinterRt__all__RJRRR(((s6/usr/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyt<module>s	
		

Zerion Mini Shell 1.0