^c@sdZddlZddlZddlZddlmZdgZidd6dd6d d 6d d 6ZiZd Z dZ 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 iN(t PhotoImagetinstalls#efefeftframes#aaaaaat disabledfgs#657a9etselectbgs#fffffftselectfgcCstjj|}tjj|s7td|nxWtjd|D]B}tjj|d}|d }t|d|ddt|id)d6fd?id@idAid'd6dd 6fgd#6fgd#6fgd#6fgd$6dB6iidCdDdCdCgdE6d6dF6iidGdDdGdDgdH6dCdCdDgd 6d6idIddDdJdDgfgd 6d6dK6iidCdH6d6dL6idMdNddidJd/gdS6dJdH6dTd6fdU6d36idMdVdddidJdYgdS6dZdH6d[d6fdU6d96idMd\ddddidd6fdU6da6idMdbddddidd6fdU6dg6idMdhidZdS6d+d6fdU6d,6iddU6d-6iddU6d*6idMdkidZdS6dd6fdU6d6iddU6d"6iddU6d6idMdndidd6fdU6dp6idMdqdidd6fdU6ds6idMdtdidd6fdU6dv6idMdwdidd6fdU6dy6idMdzidd6fdU6d{6idMd|iddS6dCdH6fdU6d}6idMd~idd6fdU6d6idMdiddS6dCdH6fdU6d6idMddidDdS6dZdJgdH6d[d6fdU6d6idMdSidJdS6dJdH6d[d6fdU6d6idMddid[d6dJdGddgdS6dJdJdgdH6fdU6d=6idMdidd6ddCdCdCgdS6fdU6d>6idMddddddidJdGddgdS6dJdJdgdH6d[d6fdU6d6idMdidd6ddCdCdCgdS6fdU6d6idMdidJdS6fdU6d6idMdddidCdDdCdCgdH6dJd/dJd/gdS6fdU6d6idMdidDdS6fdU6d6idMdidDdYgdS6fdU6d6idMdidYdDgdS6fdU6d6idMddidJd/gdS6dJdH6d[d6fdU6d6|jddS(NtplastiktdefaulttsettingsRt backgroundt troughcolorRtselectbackgroundRtselectforegroundtfieldbackgroundt TkDefaultFonttfontit borderwidtht 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.labelt TMenubuttoniit 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.uparrows arrowdown-ns arrowdown-psScrollbar.downarrows arrowleft-ns arrowleft-psScrollbar.leftarrows arrowright-ns arrowright-psScrollbar.rightarrows hslider-nsHorizontal.Scale.sliders hslider-tsHorizontal.Scale.troughs vslider-nsVertical.Scale.sliders vslider-tsVertical.Scale.troughsentry-ntfocussentry-fs Entry.fieldsLabelframe.borderscombo-rscombo-raiiisarrow-dtescombo-ntreadonlyscombo-fascombo-as !readonlyscombo-fsCombobox.fieldsCombobox.downarrows notebook-csNotebook.clients notebook-tns notebook-tss notebook-tas Notebook.tabs hprogress-tsProgressbar.troughs hprogress-bsHorizontal.Progressbar.pbars vprogress-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?s arrowdown-p(R?s arrowleft-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<s notebook-ts(R@s notebook-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.pyts