Home | Trees | Indices | Help |
|
---|
|
1 ## vim:ts=4:et:nowrap 2 ## 3 ##---------------------------------------------------------------------------## 4 ## 5 ## PySol -- a Python Solitaire game 6 ## 7 ## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer 8 ## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer 9 ## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer 10 ## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer 11 ## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer 12 ## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer 13 ## All Rights Reserved. 14 ## 15 ## This program is free software; you can redistribute it and/or modify 16 ## it under the terms of the GNU General Public License as published by 17 ## the Free Software Foundation; either version 2 of the License, or 18 ## (at your option) any later version. 19 ## 20 ## This program is distributed in the hope that it will be useful, 21 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 22 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 ## GNU General Public License for more details. 24 ## 25 ## You should have received a copy of the GNU General Public License 26 ## along with this program; see the file COPYING. 27 ## If not, write to the Free Software Foundation, Inc., 28 ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 29 ## 30 ## Markus F.X.J. Oberhumer 31 ## <markus@oberhumer.com> 32 ## http://www.oberhumer.com/pysol 33 ## 34 ##---------------------------------------------------------------------------## 35 36 37 # imports 38 import sys, os, string 39 import Tkinter 40 41 # Toolkit imports 42 import tkinit 43 44 45 # /*********************************************************************** 46 # // constants 47 # ************************************************************************/ 48 49 tkname = "tk" 50 51 # (major version, minor version, micro version, patchlevel) 52 tkversion = (8, 0, 0, 0) 53 try: 54 m = string.split(str(Tkinter._tkinter.TK_VERSION), ".") 55 if m: 56 m = map(int, m) + 4*[0] 57 tkversion = tuple(m[:4]) 58 del m 59 except: 60 pass 61 62 # experimental 63 TK_DASH_PATCH = 0 64 65 66 EVENT_HANDLED = "break" 67 EVENT_PROPAGATE = None 68 69 CURSOR_DRAG = "hand1" 70 CURSOR_WATCH = "watch" 71 72 ANCHOR_CENTER = Tkinter.CENTER 73 ANCHOR_N = Tkinter.N 74 ANCHOR_NW = Tkinter.NW 75 ANCHOR_NE = Tkinter.NE 76 ANCHOR_S = Tkinter.S 77 ANCHOR_SW = Tkinter.SW 78 ANCHOR_SE = Tkinter.SE 79 ANCHOR_W = Tkinter.W 80 ANCHOR_E = Tkinter.E 81
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 19 16:48:31 2009 | http://epydoc.sourceforge.net |