##############################################################################
# ThanCad 0.0.9 "DoesSomething": 2dimensional CAD with raster support for engineers.
#
# Copyright (c) 2001-2009 Thanasis Stamos, August 23, 2009
# URL: http://thancad.sourceforge.net
# e-mail: cyberthanasis@excite.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details (www.gnu.org/licenses/gpl.html).
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
"""\
ThanCad 0.0.9 "DoesSomething": 2dimensional CAD with raster support for engineers.
This module defines overall constants.
Canc is sentinel object, which is used as a return value from functions.
It means that the user cancelled the current operation.
"""
import p_ggen, sys
Canc = p_ggen.Struct("<Cancel>")
THANBYPARENT = p_ggen.Struct("<ByParent>")
THANPERSONAL = p_ggen.Struct("<Personal>")
Win32 = sys.platform == "win32"
thanMdimj = 3 # Number of dimensions for a point
class ThanCadError(Exception): pass
class ThanDegenerateError(ThanCadError): pass
class ThanLayerError(ThanCadError): pass
|