Home
Name Modified Size InfoDownloads / Week
pyDrawing-all.zip 2012-10-28 802.4 kB
License.txt 2012-10-27 548 Bytes
Readme.txt 2012-10-27 3.1 kB
standaloneProgram.py 2011-05-13 27.5 kB
Totals: 4 Items   833.6 kB 0
      
         *******************************************         
         *  Pydrawing Version 1.1 - 27/10/2012     *
         *******************************************




*************
*  Classes  *
*************

The only folder needed to use the library is : "classes"

This folder must be in the Python path. 
One way  to do this is to create a path.pth file in tour Python root, 

i.e. If the absolute path of Classes is : H:\Develop\Python\pyDrawing\Classes and if Python is installed in C:\Python27

Add inside C:\Python27\path.pth the following line:

   H:\Develop\Python\pyDrawing\Classes

 

*******************************
* Programs and Icons          *
*******************************

The "programs" and "icons" folders includes two not trivial demos: pydrEdit and pydrView. 
The pydrEdit demo can be used also, to create a block diagram, edit and to see the general abilities of the graphic libraries.
The pydrView demo can be used to view a previously created diagram.

Every class in the "Programs" folder belongs to the demos programs, NOT to the pyDrawing Library !
There are also, two files setup.py and setupe.py to create an exe version of pydrView and pydrEdit  programs, respectively.
In order to do so, install the py2exe python package for your python 2.7 version and key the following commands:

   c:\python27\python.exe setup.py py2exe
   c:\python27\python.exe setupe.py py2exe

In order to use the exe file you must keep all the files in the dist folder, too.
A "reg" file is included in order to define an action in windows for the "pydr" files (View and Edit), double click a pydr file will
open the pydrViewer.
Please note that I assume that the pydrawing package is installed in : H:\Develop\Python\pyDrawing, but you can change this.


******************************
* Examples                   *
******************************

This folder, includes some diagrams I saved in both Postscript and "pydr" format.
I usually use Ghostscript with Irfanview to see the postscript files and convert them to any of the popular images format. Note that the postscript created by tkinter includes antialias of the line and it is very nice for presentations.

The "pydr" format are just pyDrawing commands that can be executed as is in the "pydrEdit" or "pydrView".
In order to convert any of the "pydr" files into a standalone python program, do the following steps:

[1] From file: standaloneProgram.py , copy the lines between "START COPY A"  and "END COPY A" to the file start
[2] From file: standaloneProgram.py , copy the lines between "START COPY B"  and "END COPY B" to the file end

and .. voila !


********************************
* Running the sources          *
********************************

[1] In your Python installation folder add a file : path.pth with a single
line, the absolute path of the classes folder.
For example: c:\pydrawing\classes

Key the following command:

  c:\Python27\python.exe c:\pyDrawing\Programs\pydrEdit.py


I suppose that Python 2.7.x was already installed in the default path.



      
Source: Readme.txt, updated 2012-10-27