Back to DrPython Help
DIS Files
A DIS file is a DrPython Icon Set.
The format used is PNG.
Here is an example:
<close>fileclose.png</close>
<debug>finish.png</debug>
<end>exit.png</end>
<find>find.png</find>
<new>filenew.png</new>
<open>fileopen.png</open>
<prefs>wizard.png</prefs>
<printfile>fileprint.png</printfile>
<printprompt>filequickprint.png</printprompt>
<prompt>view_bottom.png</prompt>
<python></python>
<reload>reload.png</reload>
<replace>filefind.png</replace>
<run>1rightarrow.png</run>
<save>filesave.png</save>
<setargs>2rightarrow.png</setargs>
<whitespace>showmenu.png</whitespace>
Pretty straight forward at first glance.
By why settle with something simple
when we can just as easily make it complicated?
Let's say you want to store your .png files
in the directory:
/home/user/drpythonthemes/drcool/
You put the *.dis file in this directory.
Then, you create two directories, "16" and "24".
Put 16x16 images in "16", 24x24 in "24".
Make sure they have the same filenames.
Then, simply put the filename of choice between the
tags for the ToolBar item you wish to load that particular
file.
For example:
/home/user/drpythonthemes/drcool/drcool.dis
/home/user/drpythonthemes/drcool/16/forward_arrow.png
/home/user/drpythonthemes/drcool/24/forward_arrow.png
Your .dis file will read:
<run>forward_arrow</run>
Leaving out a tag or leaving it blank will tell DrPython
to load the default icon for that ToolBar item.
If you decide to leave out either the "16" or the "24" directory,
DrPython will load the default icons for that size.
Back
to DrPython Help