.
diff --git a/README b/README
index 890880c5..1799ca34 100644
--- a/README
+++ b/README
@@ -5,7 +5,7 @@ PySol Fan Club edition
Requirements.
-------------
-- Python (2.3 or later)
+- Python (2.4 or later) (NB: python 2.6.0 has a bug, use 2.6.1 instead)
- Tkinter (Tcl/Tk 8.4 or later)
** for sound support (optional) **
@@ -16,7 +16,7 @@ Requirements.
** other packages (optional) **
- Tile (ttk): http://tktable.sourceforge.net/tile/ (0.8.0 or later)
- PIL (Python Imaging Library): http://www.pythonware.com/products/pil
- - Freecell Solver: http://vipe.technion.ac.il/~shlomif/freecell-solver/
+ - Freecell Solver: http://fc-solve.berlios.de/
Installation.
diff --git a/html-src/hanafuda.html b/html-src/hanafuda.html
index a7868375..74b5f1b4 100644
--- a/html-src/hanafuda.html
+++ b/html-src/hanafuda.html
@@ -5,9 +5,9 @@ There are some characteristics common to all the games played with Hanafuda
cards. They are all played with one or more of the Asian flower card decks.
This deck is common in a number of Pacific regions including Hawaii. There are
twelve suits of four cards each. The suits are associated with the twelve
-months of the year. For a good explanation of what the suits are, try Graham
-Leonard's Hanafuda and Kabufuda site at
-http://hana.kirisame.org/
+months of the year. For a good explanation of what the suits are,
+try Graham Leonard's Hanafuda and Kabufuda
+site.
Most of the flower card solitaire games are played like western deck games
diff --git a/pysollib/__init__.py b/pysollib/__init__.py
index e69de29b..49ecb276 100644
--- a/pysollib/__init__.py
+++ b/pysollib/__init__.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
diff --git a/pysollib/acard.py b/pysollib/acard.py
index f2ac72a5..dadcf3a1 100644
--- a/pysollib/acard.py
+++ b/pysollib/acard.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/actions.py b/pysollib/actions.py
index e5b1a2d4..ea5afcc9 100644
--- a/pysollib/actions.py
+++ b/pysollib/actions.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/app.py b/pysollib/app.py
index dc0dd33e..57410b3e 100644
--- a/pysollib/app.py
+++ b/pysollib/app.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/configobj/__init__.py b/pysollib/configobj/__init__.py
index e69de29b..49ecb276 100644
--- a/pysollib/configobj/__init__.py
+++ b/pysollib/configobj/__init__.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
diff --git a/pysollib/configobj/configobj.py b/pysollib/configobj/configobj.py
index df6a8b7a..6258f8fb 100644
--- a/pysollib/configobj/configobj.py
+++ b/pysollib/configobj/configobj.py
@@ -1,8 +1,25 @@
-# configobj.py
-# A config file reader/writer that supports nested sections in config files.
-# Copyright (C) 2005-2006 Michael Foord, Nicola Larosa
-# E-mail: fuzzyman AT voidspace DOT org DOT uk
-# nico AT tekNico DOT net
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
# ConfigObj 4
# http://www.voidspace.org.uk/python/configobj.html
diff --git a/pysollib/configobj/validate.py b/pysollib/configobj/validate.py
index 605d3c2c..36516f9f 100644
--- a/pysollib/configobj/validate.py
+++ b/pysollib/configobj/validate.py
@@ -1,9 +1,25 @@
-# validate.py
-# A Validator object
-# Copyright (C) 2005 Michael Foord, Mark Andrews, Nicola Larosa
-# E-mail: fuzzyman AT voidspace DOT org DOT uk
-# mark AT la-la DOT com
-# nico AT tekNico DOT net
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
# This software is licensed under the terms of the BSD license.
# http://www.voidspace.org.uk/python/license.shtml
diff --git a/pysollib/customgame.py b/pysollib/customgame.py
index 15c800ec..1567d59e 100644
--- a/pysollib/customgame.py
+++ b/pysollib/customgame.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/game.py b/pysollib/game.py
index 2ef455fe..17907d4f 100644
--- a/pysollib/game.py
+++ b/pysollib/game.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/gamedb.py b/pysollib/gamedb.py
index c019a6a6..965903ab 100644
--- a/pysollib/gamedb.py
+++ b/pysollib/gamedb.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -366,7 +354,7 @@ class GI:
('fc-0.9.4', tuple(range(661, 671))),
('fc-1.0', tuple(range(671, 711))),
('fc-1.1', tuple(range(711, 759))),
- ('fc-1.2', tuple(range(11011, 11014))),
+ ('fc-2.0', tuple(range(11011, 11014)) + tuple(range(759, 767)) ),
)
# deprecated - the correct way is to or a GI.GT_XXX flag
diff --git a/pysollib/games/__init__.py b/pysollib/games/__init__.py
index 5bb03ec7..ce23f9fe 100644
--- a/pysollib/games/__init__.py
+++ b/pysollib/games/__init__.py
@@ -1,3 +1,25 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
import acesup
import algerian
import auldlangsyne
diff --git a/pysollib/games/acesup.py b/pysollib/games/acesup.py
index d7aecc7f..4fa5a12e 100644
--- a/pysollib/games/acesup.py
+++ b/pysollib/games/acesup.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/algerian.py b/pysollib/games/algerian.py
index 3f383199..841dee18 100644
--- a/pysollib/games/algerian.py
+++ b/pysollib/games/algerian.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/auldlangsyne.py b/pysollib/games/auldlangsyne.py
index 8eba1e75..77a287e1 100644
--- a/pysollib/games/auldlangsyne.py
+++ b/pysollib/games/auldlangsyne.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/bakersdozen.py b/pysollib/games/bakersdozen.py
index 9b4512e2..60fd2be9 100644
--- a/pysollib/games/bakersdozen.py
+++ b/pysollib/games/bakersdozen.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/bakersgame.py b/pysollib/games/bakersgame.py
index 8b4d95be..53d5f4ce 100644
--- a/pysollib/games/bakersgame.py
+++ b/pysollib/games/bakersgame.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/beleagueredcastle.py b/pysollib/games/beleagueredcastle.py
index 99a8d01b..bfd2bb9a 100644
--- a/pysollib/games/beleagueredcastle.py
+++ b/pysollib/games/beleagueredcastle.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/bisley.py b/pysollib/games/bisley.py
index 8a0b75f2..e8bf2f79 100644
--- a/pysollib/games/bisley.py
+++ b/pysollib/games/bisley.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/braid.py b/pysollib/games/braid.py
index 9b25ffda..61cbbed5 100644
--- a/pysollib/games/braid.py
+++ b/pysollib/games/braid.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/bristol.py b/pysollib/games/bristol.py
index 118b44c5..d8bfcd26 100644
--- a/pysollib/games/bristol.py
+++ b/pysollib/games/bristol.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/buffalobill.py b/pysollib/games/buffalobill.py
index 24c0ebd4..976244e5 100644
--- a/pysollib/games/buffalobill.py
+++ b/pysollib/games/buffalobill.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/calculation.py b/pysollib/games/calculation.py
index 72b118a6..5ae7de89 100644
--- a/pysollib/games/calculation.py
+++ b/pysollib/games/calculation.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/camelot.py b/pysollib/games/camelot.py
index cfb8bb4a..5f75e270 100644
--- a/pysollib/games/camelot.py
+++ b/pysollib/games/camelot.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/canfield.py b/pysollib/games/canfield.py
index 79b5aa48..5828f3b6 100644
--- a/pysollib/games/canfield.py
+++ b/pysollib/games/canfield.py
@@ -1,17 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Andrew Csillag
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -20,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/capricieuse.py b/pysollib/games/capricieuse.py
index 73d0c955..925327b2 100644
--- a/pysollib/games/capricieuse.py
+++ b/pysollib/games/capricieuse.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/curdsandwhey.py b/pysollib/games/curdsandwhey.py
index 8bdf5286..df0a78e2 100644
--- a/pysollib/games/curdsandwhey.py
+++ b/pysollib/games/curdsandwhey.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/dieboesesieben.py b/pysollib/games/dieboesesieben.py
index 1bbdeb63..65aa1250 100644
--- a/pysollib/games/dieboesesieben.py
+++ b/pysollib/games/dieboesesieben.py
@@ -1,17 +1,14 @@
-## -*- coding: utf-8 -*-
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -20,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/diplomat.py b/pysollib/games/diplomat.py
index 88176fb5..748622e0 100644
--- a/pysollib/games/diplomat.py
+++ b/pysollib/games/diplomat.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/doublets.py b/pysollib/games/doublets.py
index 49150621..3b8798df 100644
--- a/pysollib/games/doublets.py
+++ b/pysollib/games/doublets.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/eiffeltower.py b/pysollib/games/eiffeltower.py
index 1586a996..559b0424 100644
--- a/pysollib/games/eiffeltower.py
+++ b/pysollib/games/eiffeltower.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/fan.py b/pysollib/games/fan.py
index 8b3e5cb3..4eaa12b6 100644
--- a/pysollib/games/fan.py
+++ b/pysollib/games/fan.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/fortythieves.py b/pysollib/games/fortythieves.py
index 33292e4f..00b04543 100644
--- a/pysollib/games/fortythieves.py
+++ b/pysollib/games/fortythieves.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/freecell.py b/pysollib/games/freecell.py
index 047b64f6..59df3fcb 100644
--- a/pysollib/games/freecell.py
+++ b/pysollib/games/freecell.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/glenwood.py b/pysollib/games/glenwood.py
index def1e643..4e320650 100644
--- a/pysollib/games/glenwood.py
+++ b/pysollib/games/glenwood.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/golf.py b/pysollib/games/golf.py
index 51613a2b..14af14a4 100644
--- a/pysollib/games/golf.py
+++ b/pysollib/games/golf.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/grandduchess.py b/pysollib/games/grandduchess.py
index 0336f7eb..c00c0852 100644
--- a/pysollib/games/grandduchess.py
+++ b/pysollib/games/grandduchess.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/grandfathersclock.py b/pysollib/games/grandfathersclock.py
index 5f0a1167..0229be9e 100644
--- a/pysollib/games/grandfathersclock.py
+++ b/pysollib/games/grandfathersclock.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/gypsy.py b/pysollib/games/gypsy.py
index 00b3b3c9..76d351c9 100644
--- a/pysollib/games/gypsy.py
+++ b/pysollib/games/gypsy.py
@@ -1,17 +1,14 @@
-## -*- coding: utf-8 -*-
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -20,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/harp.py b/pysollib/games/harp.py
index 00b124b7..42a54f2f 100644
--- a/pysollib/games/harp.py
+++ b/pysollib/games/harp.py
@@ -1,17 +1,14 @@
-# -*- mode: python; coding: utf-8 -*-
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -20,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/headsandtails.py b/pysollib/games/headsandtails.py
index 18912d13..10d321ef 100644
--- a/pysollib/games/headsandtails.py
+++ b/pysollib/games/headsandtails.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/katzenschwanz.py b/pysollib/games/katzenschwanz.py
index e45ba8b3..ae8e8231 100644
--- a/pysollib/games/katzenschwanz.py
+++ b/pysollib/games/katzenschwanz.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/klondike.py b/pysollib/games/klondike.py
index 659711e2..605d2959 100644
--- a/pysollib/games/klondike.py
+++ b/pysollib/games/klondike.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/labyrinth.py b/pysollib/games/labyrinth.py
index 4df100ff..6826786d 100644
--- a/pysollib/games/labyrinth.py
+++ b/pysollib/games/labyrinth.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/larasgame.py b/pysollib/games/larasgame.py
index d39eea3c..fb9ef7eb 100644
--- a/pysollib/games/larasgame.py
+++ b/pysollib/games/larasgame.py
@@ -1,15 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## Ultrasol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Matthew Hohlfeld
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -18,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/mahjongg/__init__.py b/pysollib/games/mahjongg/__init__.py
index f92860b0..e4974a50 100644
--- a/pysollib/games/mahjongg/__init__.py
+++ b/pysollib/games/mahjongg/__init__.py
@@ -1,3 +1,25 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
import mahjongg1
import mahjongg2
import mahjongg3
diff --git a/pysollib/games/mahjongg/mahjongg.py b/pysollib/games/mahjongg/mahjongg.py
index 3ec33e66..43c00ba6 100644
--- a/pysollib/games/mahjongg/mahjongg.py
+++ b/pysollib/games/mahjongg/mahjongg.py
@@ -1,15 +1,14 @@
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -18,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/mahjongg/mahjongg1.py b/pysollib/games/mahjongg/mahjongg1.py
index cc4c4eed..44be9d48 100644
--- a/pysollib/games/mahjongg/mahjongg1.py
+++ b/pysollib/games/mahjongg/mahjongg1.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/mahjongg/mahjongg2.py b/pysollib/games/mahjongg/mahjongg2.py
index 8e08db59..39cd344b 100644
--- a/pysollib/games/mahjongg/mahjongg2.py
+++ b/pysollib/games/mahjongg/mahjongg2.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/mahjongg/mahjongg3.py b/pysollib/games/mahjongg/mahjongg3.py
index 8d7c3797..f233f92d 100644
--- a/pysollib/games/mahjongg/mahjongg3.py
+++ b/pysollib/games/mahjongg/mahjongg3.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/mahjongg/shisensho.py b/pysollib/games/mahjongg/shisensho.py
index 8ebb8052..3298a511 100644
--- a/pysollib/games/mahjongg/shisensho.py
+++ b/pysollib/games/mahjongg/shisensho.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/matriarchy.py b/pysollib/games/matriarchy.py
index aa595dce..38c89bf8 100644
--- a/pysollib/games/matriarchy.py
+++ b/pysollib/games/matriarchy.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/montana.py b/pysollib/games/montana.py
index 633bd911..a003ee99 100644
--- a/pysollib/games/montana.py
+++ b/pysollib/games/montana.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/montecarlo.py b/pysollib/games/montecarlo.py
index e68331f6..cf91dc4e 100644
--- a/pysollib/games/montecarlo.py
+++ b/pysollib/games/montecarlo.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/napoleon.py b/pysollib/games/napoleon.py
index 00d87944..a0014bc4 100644
--- a/pysollib/games/napoleon.py
+++ b/pysollib/games/napoleon.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/needle.py b/pysollib/games/needle.py
index 71f5129b..1b3b8d9b 100644
--- a/pysollib/games/needle.py
+++ b/pysollib/games/needle.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/numerica.py b/pysollib/games/numerica.py
index 95e7aa2c..4d313ec1 100644
--- a/pysollib/games/numerica.py
+++ b/pysollib/games/numerica.py
@@ -1,17 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Galen Brooks
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -20,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/osmosis.py b/pysollib/games/osmosis.py
index be30d1b9..c70b3077 100644
--- a/pysollib/games/osmosis.py
+++ b/pysollib/games/osmosis.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/parallels.py b/pysollib/games/parallels.py
index 7fea31e0..f3f77ae2 100644
--- a/pysollib/games/parallels.py
+++ b/pysollib/games/parallels.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/pasdedeux.py b/pysollib/games/pasdedeux.py
index a0672d0b..9742d197 100644
--- a/pysollib/games/pasdedeux.py
+++ b/pysollib/games/pasdedeux.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/picturegallery.py b/pysollib/games/picturegallery.py
index 7d44973b..9cf0c768 100644
--- a/pysollib/games/picturegallery.py
+++ b/pysollib/games/picturegallery.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/pileon.py b/pysollib/games/pileon.py
index bad14e55..a408558d 100644
--- a/pysollib/games/pileon.py
+++ b/pysollib/games/pileon.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/pushpin.py b/pysollib/games/pushpin.py
index 5edbcba9..54aa25eb 100644
--- a/pysollib/games/pushpin.py
+++ b/pysollib/games/pushpin.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/pyramid.py b/pysollib/games/pyramid.py
index 70ff8173..ccba850c 100644
--- a/pysollib/games/pyramid.py
+++ b/pysollib/games/pyramid.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/royalcotillion.py b/pysollib/games/royalcotillion.py
index 78995c30..6eedba3c 100644
--- a/pysollib/games/royalcotillion.py
+++ b/pysollib/games/royalcotillion.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/royaleast.py b/pysollib/games/royaleast.py
index 14c40ba8..dbf4818f 100644
--- a/pysollib/games/royaleast.py
+++ b/pysollib/games/royaleast.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/sanibel.py b/pysollib/games/sanibel.py
index 0a57d0ec..a311b306 100644
--- a/pysollib/games/sanibel.py
+++ b/pysollib/games/sanibel.py
@@ -1,14 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
-## Copyright (C) 1998-2000 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Sanibel
-## Copyright (C) 1998,2000 John Stoneham
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -17,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/siebenbisas.py b/pysollib/games/siebenbisas.py
index a74eb6bf..ecbbb5b0 100644
--- a/pysollib/games/siebenbisas.py
+++ b/pysollib/games/siebenbisas.py
@@ -1,18 +1,14 @@
#!/usr/bin/env python
-# -*- mode: python; coding: iso8859-1; -*-
-## vim:ts=4:et:nowrap
-##
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -21,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/simplex.py b/pysollib/games/simplex.py
index 1eae92aa..bc3ea846 100644
--- a/pysollib/games/simplex.py
+++ b/pysollib/games/simplex.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/special/__init__.py b/pysollib/games/special/__init__.py
index 98a5e348..5486a9c7 100644
--- a/pysollib/games/special/__init__.py
+++ b/pysollib/games/special/__init__.py
@@ -1,3 +1,25 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
import hanoi
import memory
import pegged
diff --git a/pysollib/games/special/hanoi.py b/pysollib/games/special/hanoi.py
index d790c60d..92d00b4c 100644
--- a/pysollib/games/special/hanoi.py
+++ b/pysollib/games/special/hanoi.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/special/memory.py b/pysollib/games/special/memory.py
index b39c87a4..23597b6a 100644
--- a/pysollib/games/special/memory.py
+++ b/pysollib/games/special/memory.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/special/pegged.py b/pysollib/games/special/pegged.py
index eba92f25..491099d5 100644
--- a/pysollib/games/special/pegged.py
+++ b/pysollib/games/special/pegged.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/special/poker.py b/pysollib/games/special/poker.py
index 4257b8e7..114680e0 100644
--- a/pysollib/games/special/poker.py
+++ b/pysollib/games/special/poker.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/special/tarock.py b/pysollib/games/special/tarock.py
index 3ec65eef..d8a3ed94 100644
--- a/pysollib/games/special/tarock.py
+++ b/pysollib/games/special/tarock.py
@@ -1,17 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -20,17 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
-##
-## T. Kirk
-##
-## http://www.inetarena.com/~grania
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/spider.py b/pysollib/games/spider.py
index 1ba5b236..f8b22fae 100644
--- a/pysollib/games/spider.py
+++ b/pysollib/games/spider.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/sthelena.py b/pysollib/games/sthelena.py
index 2316bb42..9acd1c03 100644
--- a/pysollib/games/sthelena.py
+++ b/pysollib/games/sthelena.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/sultan.py b/pysollib/games/sultan.py
index 9c093390..258a7ebc 100644
--- a/pysollib/games/sultan.py
+++ b/pysollib/games/sultan.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/takeaway.py b/pysollib/games/takeaway.py
index 6071a156..c360a6c8 100644
--- a/pysollib/games/takeaway.py
+++ b/pysollib/games/takeaway.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/terrace.py b/pysollib/games/terrace.py
index a63c7d34..62ad99b6 100644
--- a/pysollib/games/terrace.py
+++ b/pysollib/games/terrace.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/threepeaks.py b/pysollib/games/threepeaks.py
index 27dd9f30..1c7345b3 100644
--- a/pysollib/games/threepeaks.py
+++ b/pysollib/games/threepeaks.py
@@ -1,16 +1,14 @@
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/tournament.py b/pysollib/games/tournament.py
index 246873f7..8df400d6 100644
--- a/pysollib/games/tournament.py
+++ b/pysollib/games/tournament.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/__init__.py b/pysollib/games/ultra/__init__.py
index ee1f0273..cac373cd 100644
--- a/pysollib/games/ultra/__init__.py
+++ b/pysollib/games/ultra/__init__.py
@@ -1,3 +1,25 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
import dashavatara
import hanafuda
import hanafuda1
diff --git a/pysollib/games/ultra/dashavatara.py b/pysollib/games/ultra/dashavatara.py
index e169eef8..5eef5d20 100644
--- a/pysollib/games/ultra/dashavatara.py
+++ b/pysollib/games/ultra/dashavatara.py
@@ -1,16 +1,14 @@
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## Ultrasol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/hanafuda.py b/pysollib/games/ultra/hanafuda.py
index 066ef94b..d48694ad 100644
--- a/pysollib/games/ultra/hanafuda.py
+++ b/pysollib/games/ultra/hanafuda.py
@@ -1,15 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## Ultrasol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -18,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/hanafuda1.py b/pysollib/games/ultra/hanafuda1.py
index 088aa641..0341dd5b 100644
--- a/pysollib/games/ultra/hanafuda1.py
+++ b/pysollib/games/ultra/hanafuda1.py
@@ -1,15 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## Ultrasol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -18,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/hanafuda_common.py b/pysollib/games/ultra/hanafuda_common.py
index 7eefe6db..e95abfae 100644
--- a/pysollib/games/ultra/hanafuda_common.py
+++ b/pysollib/games/ultra/hanafuda_common.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -110,6 +112,11 @@ class Flower_FoundationStack(AbstractFoundationStack):
b = 2
return a, b
+ def getBaseCard(self):
+ return '' # FIXME
+ def getHelp(self):
+ return '' # FIXME
+
class Hanafuda_SS_FoundationStack(Flower_FoundationStack):
diff --git a/pysollib/games/ultra/hexadeck.py b/pysollib/games/ultra/hexadeck.py
index 5a961494..300eb367 100644
--- a/pysollib/games/ultra/hexadeck.py
+++ b/pysollib/games/ultra/hexadeck.py
@@ -1,16 +1,14 @@
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/larasgame.py b/pysollib/games/ultra/larasgame.py
index df55f21b..b68cb660 100644
--- a/pysollib/games/ultra/larasgame.py
+++ b/pysollib/games/ultra/larasgame.py
@@ -1,15 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## Ultrasol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Matthew Hohlfeld
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -18,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/matrix.py b/pysollib/games/ultra/matrix.py
index 2e635667..8e966f11 100644
--- a/pysollib/games/ultra/matrix.py
+++ b/pysollib/games/ultra/matrix.py
@@ -1,16 +1,14 @@
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/mughal.py b/pysollib/games/ultra/mughal.py
index f100657e..04b518a4 100644
--- a/pysollib/games/ultra/mughal.py
+++ b/pysollib/games/ultra/mughal.py
@@ -1,15 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## Ultrasol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -18,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/ultra/tarock.py b/pysollib/games/ultra/tarock.py
index b846beb2..681f07f7 100644
--- a/pysollib/games/ultra/tarock.py
+++ b/pysollib/games/ultra/tarock.py
@@ -1,15 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## Ultrasol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 by T. Kirk
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -18,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/unionsquare.py b/pysollib/games/unionsquare.py
index 4fc3ad23..fe801680 100644
--- a/pysollib/games/unionsquare.py
+++ b/pysollib/games/unionsquare.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/wavemotion.py b/pysollib/games/wavemotion.py
index 96a66331..27daf034 100644
--- a/pysollib/games/wavemotion.py
+++ b/pysollib/games/wavemotion.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/windmill.py b/pysollib/games/windmill.py
index c19fa969..3065ebef 100644
--- a/pysollib/games/windmill.py
+++ b/pysollib/games/windmill.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/yukon.py b/pysollib/games/yukon.py
index 0753b511..9af22b48 100644
--- a/pysollib/games/yukon.py
+++ b/pysollib/games/yukon.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/games/zodiac.py b/pysollib/games/zodiac.py
index 48717945..73aef51d 100644
--- a/pysollib/games/zodiac.py
+++ b/pysollib/games/zodiac.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/help.py b/pysollib/help.py
index 4fc01fa0..13a3dbf9 100644
--- a/pysollib/help.py
+++ b/pysollib/help.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -65,7 +53,7 @@ def help_about(app, timeout=0, sound=True):
Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.
Copyright (C) 2003 Mt. Hood Playing Card Co.
-Copyright (C) 2005 - 2007 Skomoroh.
+Copyright (C) 2005 - 2009 Skomoroh.
All Rights Reserved.
PySol is free software distributed under the terms
diff --git a/pysollib/hint.py b/pysollib/hint.py
index 198e0486..1ae2316d 100644
--- a/pysollib/hint.py
+++ b/pysollib/hint.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -37,6 +25,7 @@
# imports
import os
import time
+import subprocess
# PySol imports
from settings import DEBUG, FCS_COMMAND
@@ -852,7 +841,12 @@ class FreeCellSolver_Hint:
command = FCS_COMMAND+' '+' '.join([str(i) for i in args])
if DEBUG:
print command
- pin, pout, perr = os.popen3(command)
+ p = subprocess.Popen(command, shell=True,
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ close_fds=True)
+ pin, pout, perr = p.stdin, p.stdout, p.stderr
pin.write(board)
pin.close()
#
diff --git a/pysollib/images.py b/pysollib/images.py
index babf8214..f9cbe04a 100644
--- a/pysollib/images.py
+++ b/pysollib/images.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/init.py b/pysollib/init.py
index 334b7f2a..e39425d0 100644
--- a/pysollib/init.py
+++ b/pysollib/init.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,13 +17,11 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
-import sys, os, locale
+import sys, os, locale, subprocess
import traceback
import gettext
@@ -153,14 +155,15 @@ def init():
##os.environ['FREECELL_SOLVER_PRESETRC'] = f # defined in prefix.h
if os.name in ('posix', 'nt'):
try:
- pin, pout, perr = os.popen3(settings.FCS_COMMAND+' --help')
- if pout.readline().startswith('fc-solve'):
+ p = subprocess.Popen(settings.FCS_COMMAND+' --help', shell=True,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE, close_fds=True)
+ if p.stdout.readline().startswith('fc-solve'):
settings.USE_FREECELL_SOLVER = True
- del pin, pout, perr
if os.name == 'posix':
os.wait() # kill zombi
except:
- ##traceback.print_exc()
+ traceback.print_exc()
pass
os.environ['FREECELL_SOLVER_QUIET'] = '1'
diff --git a/pysollib/layout.py b/pysollib/layout.py
index 6294b0b8..a5f2ff14 100644
--- a/pysollib/layout.py
+++ b/pysollib/layout.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/macosx/__init__.py b/pysollib/macosx/__init__.py
index e69de29b..49ecb276 100644
--- a/pysollib/macosx/__init__.py
+++ b/pysollib/macosx/__init__.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
diff --git a/pysollib/macosx/appSupport.py b/pysollib/macosx/appSupport.py
index ce8cb090..4814a222 100644
--- a/pysollib/macosx/appSupport.py
+++ b/pysollib/macosx/appSupport.py
@@ -1,3 +1,25 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
"""
A number of function that enhance PySol on MacOSX when it used as a normal
GUI application (as opposed to an X11 application).
diff --git a/pysollib/main.py b/pysollib/main.py
index 9916072d..e0e8df42 100644
--- a/pysollib/main.py
+++ b/pysollib/main.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/mfxutil.py b/pysollib/mfxutil.py
index 9ada5a26..203474af 100644
--- a/pysollib/mfxutil.py
+++ b/pysollib/mfxutil.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/move.py b/pysollib/move.py
index 44c17391..dee37dc4 100644
--- a/pysollib/move.py
+++ b/pysollib/move.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/options.py b/pysollib/options.py
index 03504c22..f4e4d225 100644
--- a/pysollib/options.py
+++ b/pysollib/options.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -95,7 +97,7 @@ save_games_geometry = boolean
sound = boolean
sound_mode = integer(0, 1)
sound_sample_volume = integer(0, 128)
-sound_music_volume = integer(0, 128)
+sound_sample_buffer_size = integer(1, 4)
tabletile_name = string
recent_gameid = int_list
favorite_gameid = int_list
@@ -225,6 +227,7 @@ class Options:
('sound_mode', 'int'),
('sound_sample_volume', 'int'),
('sound_music_volume', 'int'),
+ ('sound_sample_buffer_size', 'int'),
('tabletile_name', 'str'),
('translate_game_names', 'bool'),
#('toolbar_vars', 'list'),
@@ -259,7 +262,7 @@ class Options:
self.mahjongg_create_solvable = 2 # 0 - none, 1 - easy, 2 - hard
self.shisen_show_hint = True
self.shisen_show_matching = False
- self.animations = 2 # default to Fast
+ self.animations = 3 # default to Medium
self.redeal_animation = True
self.win_animation = True
self.flip_animation = True
@@ -294,6 +297,7 @@ class Options:
self.sound_mode = 1
self.sound_sample_volume = 80
self.sound_music_volume = 100
+ self.sound_sample_buffer_size = 1 # 1 - 4 (1024 - 4096 bytes)
self.sound_samples = {
'areyousure' : True,
'autodrop' : True,
diff --git a/pysollib/pysolaudio.py b/pysollib/pysolaudio.py
index 8bb1ce64..c5cf7560 100644
--- a/pysollib/pysolaudio.py
+++ b/pysollib/pysolaudio.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -430,6 +418,18 @@ class PyGameAudioClient(AbstractAudioClient):
# for py2exe
import pygame.base, pygame.rwobject, pygame.mixer_music
self.mixer = pygame.mixer
+ self.time = pygame.time
+ self.music = self.mixer.music
+ self.audiodev = self.mixer
+ self.sound = None
+ self.sound_channel = None
+ self.sound_priority = -1
+
+ def startServer(self):
+ pass
+
+ def connectServer(self, app):
+ AbstractAudioClient.connectServer(self, app)
## http://www.pygame.org/docs/ref/mixer.html
## NOTE: there is currently a bug on some windows machines which
## makes sound play back 'scratchy'. There is not enough cpu in
@@ -439,17 +439,10 @@ class PyGameAudioClient(AbstractAudioClient):
## play the sound and when it gets played. Try calling this before
## the pygame.init or pygame.mixer.init calls.
## pygame.mixer.pre_init(44100,-16,2, 1024 * 3)
- self.mixer.pre_init(44100, -16, 2, 1024 * 3)
+ #self.mixer.pre_init(44100, -16, 2, 1024 * 3)
+ buff_size = self.app.opt.sound_sample_buffer_size
+ self.mixer.pre_init(44100, -16, 2, 1024*buff_size)
self.mixer.init()
- self.music = self.mixer.music
- self.time = pygame.time
- self.audiodev = self.mixer
- self.sound = None
- self.sound_channel = None
- self.sound_priority = -1
-
- def startServer(self):
- pass
def _playSample(self, filename, priority, loop, volume):
##print '_playSample:', filename, priority, loop, volume
diff --git a/pysollib/pysolgtk/__init__.py b/pysollib/pysolgtk/__init__.py
index e69de29b..49ecb276 100644
--- a/pysollib/pysolgtk/__init__.py
+++ b/pysollib/pysolgtk/__init__.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/card.py b/pysollib/pysolgtk/card.py
index 860a6460..39333461 100644
--- a/pysollib/pysolgtk/card.py
+++ b/pysollib/pysolgtk/card.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/colorsdialog.py b/pysollib/pysolgtk/colorsdialog.py
index a4bcf30f..c772f6d7 100644
--- a/pysollib/pysolgtk/colorsdialog.py
+++ b/pysollib/pysolgtk/colorsdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/edittextdialog.py b/pysollib/pysolgtk/edittextdialog.py
index 60fc06a5..02b15fea 100644
--- a/pysollib/pysolgtk/edittextdialog.py
+++ b/pysollib/pysolgtk/edittextdialog.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/findcarddialog.py b/pysollib/pysolgtk/findcarddialog.py
index ee358356..42babea9 100644
--- a/pysollib/pysolgtk/findcarddialog.py
+++ b/pysollib/pysolgtk/findcarddialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/fontsdialog.py b/pysollib/pysolgtk/fontsdialog.py
index e07edf5f..f12d052e 100644
--- a/pysollib/pysolgtk/fontsdialog.py
+++ b/pysollib/pysolgtk/fontsdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/gameinfodialog.py b/pysollib/pysolgtk/gameinfodialog.py
index fba75120..27f0c2a8 100644
--- a/pysollib/pysolgtk/gameinfodialog.py
+++ b/pysollib/pysolgtk/gameinfodialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/menubar.py b/pysollib/pysolgtk/menubar.py
index 79bb8add..23062106 100644
--- a/pysollib/pysolgtk/menubar.py
+++ b/pysollib/pysolgtk/menubar.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/playeroptionsdialog.py b/pysollib/pysolgtk/playeroptionsdialog.py
index 3b14fee0..187a488d 100644
--- a/pysollib/pysolgtk/playeroptionsdialog.py
+++ b/pysollib/pysolgtk/playeroptionsdialog.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/progressbar.py b/pysollib/pysolgtk/progressbar.py
index 378b45ee..b55e0d41 100644
--- a/pysollib/pysolgtk/progressbar.py
+++ b/pysollib/pysolgtk/progressbar.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/pysoltree.py b/pysollib/pysolgtk/pysoltree.py
index 430eb945..2f3d465a 100644
--- a/pysollib/pysolgtk/pysoltree.py
+++ b/pysollib/pysolgtk/pysoltree.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/selectcardset.py b/pysollib/pysolgtk/selectcardset.py
index 03594a27..dfcccf18 100644
--- a/pysollib/pysolgtk/selectcardset.py
+++ b/pysollib/pysolgtk/selectcardset.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/selectgame.py b/pysollib/pysolgtk/selectgame.py
index d4f4acdc..78f405f6 100644
--- a/pysollib/pysolgtk/selectgame.py
+++ b/pysollib/pysolgtk/selectgame.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/selecttile.py b/pysollib/pysolgtk/selecttile.py
index 4d6ace67..ccd51e80 100644
--- a/pysollib/pysolgtk/selecttile.py
+++ b/pysollib/pysolgtk/selecttile.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/solverdialog.py b/pysollib/pysolgtk/solverdialog.py
index cd6831fd..4206dbb7 100644
--- a/pysollib/pysolgtk/solverdialog.py
+++ b/pysollib/pysolgtk/solverdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/soundoptionsdialog.py b/pysollib/pysolgtk/soundoptionsdialog.py
index 5b0c13d4..a61b23b8 100644
--- a/pysollib/pysolgtk/soundoptionsdialog.py
+++ b/pysollib/pysolgtk/soundoptionsdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/statusbar.py b/pysollib/pysolgtk/statusbar.py
index ee92037c..34136fd4 100644
--- a/pysollib/pysolgtk/statusbar.py
+++ b/pysollib/pysolgtk/statusbar.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/timeoutsdialog.py b/pysollib/pysolgtk/timeoutsdialog.py
index 57d0aed0..0aeb2791 100644
--- a/pysollib/pysolgtk/timeoutsdialog.py
+++ b/pysollib/pysolgtk/timeoutsdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/tkcanvas.py b/pysollib/pysolgtk/tkcanvas.py
index 6e505d7c..7af354d2 100644
--- a/pysollib/pysolgtk/tkcanvas.py
+++ b/pysollib/pysolgtk/tkcanvas.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/tkconst.py b/pysollib/pysolgtk/tkconst.py
index 49192e31..313cf629 100644
--- a/pysollib/pysolgtk/tkconst.py
+++ b/pysollib/pysolgtk/tkconst.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/tkhtml.py b/pysollib/pysolgtk/tkhtml.py
index 13dcdadd..cad465ab 100644
--- a/pysollib/pysolgtk/tkhtml.py
+++ b/pysollib/pysolgtk/tkhtml.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/tkstats.py b/pysollib/pysolgtk/tkstats.py
index cf5e8d9d..403a3b93 100644
--- a/pysollib/pysolgtk/tkstats.py
+++ b/pysollib/pysolgtk/tkstats.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/tkutil.py b/pysollib/pysolgtk/tkutil.py
index 531ea6f0..97bf55ae 100644
--- a/pysollib/pysolgtk/tkutil.py
+++ b/pysollib/pysolgtk/tkutil.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/tkwidget.py b/pysollib/pysolgtk/tkwidget.py
index 67c8663b..7575d238 100644
--- a/pysollib/pysolgtk/tkwidget.py
+++ b/pysollib/pysolgtk/tkwidget.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/tkwrap.py b/pysollib/pysolgtk/tkwrap.py
index 1a0d2e84..e6917cda 100644
--- a/pysollib/pysolgtk/tkwrap.py
+++ b/pysollib/pysolgtk/tkwrap.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolgtk/toolbar.py b/pysollib/pysolgtk/toolbar.py
index 4218aa71..d8e4b100 100644
--- a/pysollib/pysolgtk/toolbar.py
+++ b/pysollib/pysolgtk/toolbar.py
@@ -1,16 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -19,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://wildsau.idv.uni-linz.ac.at/mfx/pysol.html
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysolrandom.py b/pysollib/pysolrandom.py
index 29669162..0ae56d0f 100644
--- a/pysollib/pysolrandom.py
+++ b/pysollib/pysolrandom.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/pysoltk.py b/pysollib/pysoltk.py
index e4c75e44..68940ea5 100644
--- a/pysollib/pysoltk.py
+++ b/pysollib/pysoltk.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/resource.py b/pysollib/resource.py
index d739c557..bac770a0 100644
--- a/pysollib/resource.py
+++ b/pysollib/resource.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -402,8 +390,9 @@ class CardsetManager(ResourceManager):
cs.ranks = range(13)
cs.suits = "cshd"
elif s == CSI.TYPE_HANAFUDA:
- cs.ranks = range(12)
- cs.suits = "cshd"
+ cs.nbottoms = 15
+ cs.ranks = range(4)
+ cs.suits = "abcdefghijkl"
elif s == CSI.TYPE_TAROCK:
cs.nbottoms = 8
cs.ranks = range(14)
diff --git a/pysollib/settings.py b/pysollib/settings.py
index 7836b229..9f5bd7b4 100644
--- a/pysollib/settings.py
+++ b/pysollib/settings.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
@@ -28,8 +30,8 @@ PACKAGE = 'PySolFC'
TITLE = 'PySol'
PACKAGE_URL = 'http://pysolfc.sourceforge.net/'
-VERSION = '1.1.1'
-VERSION_TUPLE = (1, 1, 1)
+VERSION = '2.0'
+VERSION_TUPLE = (2, 0)
# Tk windowing system (auto set up in init.py)
WIN_SYSTEM = 'x11' # win32, x11, aqua, classic
diff --git a/pysollib/stack.py b/pysollib/stack.py
index 45b36377..bcbb5afd 100644
--- a/pysollib/stack.py
+++ b/pysollib/stack.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/stats.py b/pysollib/stats.py
index b93715bf..48ecd5cc 100644
--- a/pysollib/stats.py
+++ b/pysollib/stats.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/__init__.py b/pysollib/tile/__init__.py
index e69de29b..49ecb276 100644
--- a/pysollib/tile/__init__.py
+++ b/pysollib/tile/__init__.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/card.py b/pysollib/tile/card.py
index ad9fce62..acba753e 100644
--- a/pysollib/tile/card.py
+++ b/pysollib/tile/card.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/colorsdialog.py b/pysollib/tile/colorsdialog.py
index 6ecdd8e8..dab7e894 100644
--- a/pysollib/tile/colorsdialog.py
+++ b/pysollib/tile/colorsdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/edittextdialog.py b/pysollib/tile/edittextdialog.py
index b5309138..12f299bb 100644
--- a/pysollib/tile/edittextdialog.py
+++ b/pysollib/tile/edittextdialog.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/findcarddialog.py b/pysollib/tile/findcarddialog.py
index 26f9e4c0..8309a997 100644
--- a/pysollib/tile/findcarddialog.py
+++ b/pysollib/tile/findcarddialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/fontsdialog.py b/pysollib/tile/fontsdialog.py
index 30602da2..d55e5091 100644
--- a/pysollib/tile/fontsdialog.py
+++ b/pysollib/tile/fontsdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/gameinfodialog.py b/pysollib/tile/gameinfodialog.py
index ee0c9344..eb303492 100644
--- a/pysollib/tile/gameinfodialog.py
+++ b/pysollib/tile/gameinfodialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/menubar.py b/pysollib/tile/menubar.py
index 07517902..ef7347cc 100644
--- a/pysollib/tile/menubar.py
+++ b/pysollib/tile/menubar.py
@@ -1,21 +1,14 @@
-# -*- coding: koi8-r -*-
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -24,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/playeroptionsdialog.py b/pysollib/tile/playeroptionsdialog.py
index 75279b5a..5d25c62a 100644
--- a/pysollib/tile/playeroptionsdialog.py
+++ b/pysollib/tile/playeroptionsdialog.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/progressbar.py b/pysollib/tile/progressbar.py
index 2cd08c5e..d781a120 100644
--- a/pysollib/tile/progressbar.py
+++ b/pysollib/tile/progressbar.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/selectcardset.py b/pysollib/tile/selectcardset.py
index 3362f3ba..7db38413 100644
--- a/pysollib/tile/selectcardset.py
+++ b/pysollib/tile/selectcardset.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/selectgame.py b/pysollib/tile/selectgame.py
index 0d1617d6..75c3d468 100644
--- a/pysollib/tile/selectgame.py
+++ b/pysollib/tile/selectgame.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/selecttile.py b/pysollib/tile/selecttile.py
index 626314ed..7d5912d7 100644
--- a/pysollib/tile/selecttile.py
+++ b/pysollib/tile/selecttile.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/selecttree.py b/pysollib/tile/selecttree.py
index 31aafc5d..fa2855bd 100644
--- a/pysollib/tile/selecttree.py
+++ b/pysollib/tile/selecttree.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/solverdialog.py b/pysollib/tile/solverdialog.py
index cb0378c6..c75c0215 100644
--- a/pysollib/tile/solverdialog.py
+++ b/pysollib/tile/solverdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/soundoptionsdialog.py b/pysollib/tile/soundoptionsdialog.py
index cdbe0d12..32c0a9fb 100644
--- a/pysollib/tile/soundoptionsdialog.py
+++ b/pysollib/tile/soundoptionsdialog.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/statusbar.py b/pysollib/tile/statusbar.py
index a650b708..edb1f4a2 100644
--- a/pysollib/tile/statusbar.py
+++ b/pysollib/tile/statusbar.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/timeoutsdialog.py b/pysollib/tile/timeoutsdialog.py
index e5edc93e..f4de902e 100644
--- a/pysollib/tile/timeoutsdialog.py
+++ b/pysollib/tile/timeoutsdialog.py
@@ -1,10 +1,14 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -13,9 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tkcanvas.py b/pysollib/tile/tkcanvas.py
index 173f4235..f4719232 100644
--- a/pysollib/tile/tkcanvas.py
+++ b/pysollib/tile/tkcanvas.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tkconst.py b/pysollib/tile/tkconst.py
index 7e215a65..c7fb4ec1 100644
--- a/pysollib/tile/tkconst.py
+++ b/pysollib/tile/tkconst.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tkhtml.py b/pysollib/tile/tkhtml.py
index 78facadf..f0a2371d 100644
--- a/pysollib/tile/tkhtml.py
+++ b/pysollib/tile/tkhtml.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tkstats.py b/pysollib/tile/tkstats.py
index 278a5d65..a647e91c 100644
--- a/pysollib/tile/tkstats.py
+++ b/pysollib/tile/tkstats.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tktree.py b/pysollib/tile/tktree.py
index d7071483..ae5e95ec 100644
--- a/pysollib/tile/tktree.py
+++ b/pysollib/tile/tktree.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tkutil.py b/pysollib/tile/tkutil.py
index d8e43389..84ba18e5 100644
--- a/pysollib/tile/tkutil.py
+++ b/pysollib/tile/tkutil.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tkwidget.py b/pysollib/tile/tkwidget.py
index a5c3dab0..0f145423 100644
--- a/pysollib/tile/tkwidget.py
+++ b/pysollib/tile/tkwidget.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/tkwrap.py b/pysollib/tile/tkwrap.py
index a71b462d..b93e9d9c 100644
--- a/pysollib/tile/tkwrap.py
+++ b/pysollib/tile/tkwrap.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/toolbar.py b/pysollib/tile/toolbar.py
index 226a8d58..f0e399ae 100644
--- a/pysollib/tile/toolbar.py
+++ b/pysollib/tile/toolbar.py
@@ -1,20 +1,14 @@
-## vim:ts=4:et:nowrap
-##
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
-## PySol -- a Python Solitaire game
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
##
-## Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
-## Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
-## All Rights Reserved.
-##
-## This program is free software; you can redistribute it and/or modify
+## 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
+## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
@@ -23,13 +17,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; see the file COPYING.
-## If not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## Markus F.X.J. Oberhumer
-##
-## http://www.oberhumer.com/pysol
+## along with this program. If not, see .
##
##---------------------------------------------------------------------------##
diff --git a/pysollib/tile/ttk.py b/pysollib/tile/ttk.py
index 6f6723e1..4baf1b58 100644
--- a/pysollib/tile/ttk.py
+++ b/pysollib/tile/ttk.py
@@ -1,3 +1,25 @@
+#!/usr/bin/env python
+# -*- mode: python; coding: utf-8; -*-
+##---------------------------------------------------------------------------##
+##
+## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
+## Copyright (C) 2003 Mt. Hood Playing Card Co.
+## Copyright (C) 2005-2009 Skomoroh
+##
+## 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 3 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.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see .
+##
+##---------------------------------------------------------------------------##
"""Ttk wrapper.
This module provides classes to allow using Tk themed widget set.
@@ -12,7 +34,7 @@ maintaining the widget state and invoking callbacks, all aspects
of the widgets appearance lies at Themes.
"""
-__version__ = "0.1.2"
+__version__ = "0.3"
__author__ = "Guilherme Polo "
@@ -21,7 +43,9 @@ __all__ = ["Button", "Checkbutton", "Combobox", "Entry", "Frame", "Label",
"PanedWindow", "Progressbar", "Radiobutton", "Scale", "Scrollbar",
"Separator", "Sizegrip", "Style", "Treeview",
# Extensions
- "LabeledScale", "OptionMenu"]
+ "LabeledScale", "OptionMenu",
+ # functions
+ "tclobjs_to_py"]
import Tkinter
@@ -52,7 +76,7 @@ def _loadttk(loadtk):
Tkinter.Tk._loadtk = _loadttk(Tkinter.Tk._loadtk)
def _format_optdict(optdict, script=False, ignore=None):
- """Formats optdict to pass it to tk.call.
+ """Formats optdict to a tuple to pass it to tk.call.
E.g. (script=False):
{'foreground': 'blue', 'padding': [1, 2, 3, 4]} returns:
@@ -71,13 +95,18 @@ def _format_optdict(optdict, script=False, ignore=None):
v.append(unicode(val) if val else '{}')
else:
v.append(str(val))
- value = format % ' '.join(v)
+
+ # format v according to the script option, but also check for
+ # space in any value in v in order to group them correctly
+ value = format % ' '.join(
+ ('{%s}' if ' ' in val else '%s') % val for val in v)
if script and value == '':
value = '{}' # empty string in Python is equivalent to {} in Tcl
opts.append(("-%s" % opt, value))
+ # Remember: _flatten skips over None
return _flatten(opts)
def _format_mapdict(mapdict, script=False):
@@ -155,7 +184,7 @@ def _format_elemcreate(etype, script=False, *args, **kw):
return spec, opts
-def _format_layoutlist(layout, indent=2, indent_size=2):
+def _format_layoutlist(layout, indent=0, indent_size=2):
"""Formats a layout list so we can pass the result to ttk::style
layout and ttk::style settings. Note that the layout doesn't has to
be a list necessarily.
@@ -194,7 +223,8 @@ def _format_layoutlist(layout, indent=2, indent_size=2):
if "children" in opts:
script.append(head + " -children {")
indent += indent_size
- newscript, indent = _format_layoutlist(opts['children'], indent)
+ newscript, indent = _format_layoutlist(opts['children'], indent,
+ indent_size)
script.append(newscript)
indent -= indent_size
script.append('%s}' % (' ' * indent))
@@ -213,11 +243,11 @@ def _script_from_settings(settings):
for name, opts in settings.iteritems():
# will format specific keys according to Tcl code
if opts.get('configure'): # format 'configure'
- s = ' '.join(map(str, _format_optdict(opts['configure'], True)))
+ s = ' '.join(map(unicode, _format_optdict(opts['configure'], True)))
script.append("ttk::style configure %s %s;" % (name, s))
if opts.get('map'): # format 'map'
- s = ' '.join(map(str, _format_mapdict(opts['map'], True)))
+ s = ' '.join(map(unicode, _format_mapdict(opts['map'], True)))
script.append("ttk::style map %s %s;" % (name, s))
if 'layout' in opts: # format 'layout' which may be empty
@@ -251,37 +281,29 @@ def _dict_from_tcltuple(ttuple, cut_minus=True):
be removed.
ttuple is expected to contain an even number of elements."""
- opts = []
opt_start = 1 if cut_minus else 0
+ retdict = {}
for opt, val in zip(iter(ttuple[::2]), iter(ttuple[1::2])):
- if isinstance(val, basestring):
- try:
- if ' ' in val: # could be the padding option
- val = map(int, val.split())
- elif val.isdigit():
- val = int(val)
- except ValueError: # leave val untouched for now
- pass
+ retdict[str(opt)[opt_start:]] = val
- elif val and hasattr(val, '__len__') and hasattr(val[0], 'typename'):
- # could be a statespec
- val = _list_from_statespec(val)
-
- elif hasattr(val, 'typename'):
- # some other Tcl object
- val = str(val)
-
- opts.append((str(opt)[opt_start:], val))
-
- return dict(opts)
+ return tclobjs_to_py(retdict)
def _list_from_statespec(stuple):
"""Construct a list from the given statespec tuple according to the
accepted statespec accepted by _format_mapdict."""
- split_it = lambda ob: getattr(ob, 'typename', None) == 'StateSpec'
- val = [str(val).split() if split_it(val) else val for val in stuple]
- return [_flatten(spec) for spec in zip(iter(val[::2]), iter(val[1::2]))]
+ nval = []
+ for val in stuple:
+ typename = getattr(val, 'typename', None)
+ if typename is None:
+ nval.append(val)
+ else: # this is a Tcl object
+ val = str(val)
+ if typename == 'StateSpec':
+ val = val.split()
+ nval.append(val)
+
+ return [_flatten(spec) for spec in zip(iter(nval[::2]), iter(nval[1::2]))]
def _list_from_layouttuple(ltuple):
"""Construct a list from the tuple returned by ttk::layout, this is
@@ -326,6 +348,33 @@ def _val_or_dict(options, func, *args):
return _dict_from_tcltuple(res)
+def _convert_stringval(value):
+ """Converts a value to, hopefully, a more appropriate Python object."""
+ value = unicode(value)
+ try:
+ value = int(value)
+ except (ValueError, TypeError):
+ pass
+
+ return value
+
+def tclobjs_to_py(adict):
+ """Returns adict with its values converted from Tcl objects to Python
+ objects."""
+ for opt, val in adict.iteritems():
+ if val and hasattr(val, '__len__') and not isinstance(val, basestring):
+ if getattr(val[0], 'typename', None) == 'StateSpec':
+ val = _list_from_statespec(val)
+ else:
+ val = map(_convert_stringval, val)
+
+ elif hasattr(val, 'typename'): # some other (single) Tcl object
+ val = _convert_stringval(val)
+
+ adict[opt] = val
+
+ return adict
+
class Style(object):
"""Manipulate style database."""
@@ -333,12 +382,15 @@ class Style(object):
_name = "ttk::style"
def __init__(self, master=None):
- if not master:
- if not Tkinter._default_root:
- Tkinter._default_root = Tkinter.Tk()
- master = Tkinter._default_root
+ if master is None:
+ if Tkinter._support_default_root:
+ master = Tkinter._default_root or Tkinter.Tk()
+ else:
+ raise RuntimeError("No master specified and Tkinter is "
+ "configured to not support default master")
- self.tk = master.tk
+ self.master = master
+ self.tk = self.master.tk
def configure(self, style, query_opt=None, **kw):
@@ -347,12 +399,9 @@ class Style(object):
Each key in kw is an option and each value is either a string or
a sequence identifying the value for that option."""
- if query_opt:
- query_opt = ('' if query_opt.startswith('-') else '-') + query_opt
- return self.tk.call(self._name, "configure", style, query_opt)
-
- return _dict_from_tcltuple(self.tk.call(self._name, "configure", style,
- *(_format_optdict(kw))))
+ if query_opt is not None:
+ kw[query_opt] = None
+ return _val_or_dict(kw, self.tk.call, self._name, "configure", style)
def map(self, style, query_opt=None, **kw):
@@ -363,13 +412,12 @@ class Style(object):
tuple (usually) containing statespecs grouped in tuples, or list,
or something else of your preference. A statespec is compound of
one or more states and then a value."""
- if query_opt:
- query_opt = ('' if query_opt.startswith('-') else '-') + query_opt
- return _list_from_statespec(self.tk.call(self._name, "map", style,
- query_opt))
+ if query_opt is not None:
+ return _list_from_statespec(
+ self.tk.call(self._name, "map", style, '-%s' % query_opt))
- return _dict_from_tcltuple(self.tk.call(self._name, "map", style,
- *(_format_mapdict(kw))))
+ return _dict_from_tcltuple(
+ self.tk.call(self._name, "map", style, *(_format_mapdict(kw))))
def lookup(self, style, option, state=None, default=None):
@@ -379,9 +427,9 @@ class Style(object):
or more states. If the default argument is set, it is used as
a fallback value in case no specification for option is found."""
state = ' '.join(state) if state else ''
- option = ('-' if not option.startswith('-') else '') + option
- return self.tk.call(self._name, "lookup", style, option, state, default)
+ return self.tk.call(self._name, "lookup", style, '-%s' % option,
+ state, default)
def layout(self, style, layoutspec=None):
@@ -423,15 +471,15 @@ class Style(object):
lspec = "null" # could be any other word, but this may make sense
# when calling layout(style) later
- return _list_from_layouttuple(self.tk.call(self._name, "layout", style,
- lspec))
+ return _list_from_layouttuple(
+ self.tk.call(self._name, "layout", style, lspec))
def element_create(self, elementname, etype, *args, **kw):
"""Create a new element in the current theme of given etype."""
spec, opts = _format_elemcreate(etype, False, *args, **kw)
self.tk.call(self._name, "element", "create", elementname, etype,
- spec, *opts)
+ spec, *opts)
def element_names(self):
@@ -455,10 +503,10 @@ class Style(object):
if parent:
self.tk.call(self._name, "theme", "create", themename,
- "-parent", parent, "-settings", script)
+ "-parent", parent, "-settings", script)
else:
self.tk.call(self._name, "theme", "create", themename,
- "-settings", script)
+ "-settings", script)
def theme_settings(self, themename, settings):
@@ -478,9 +526,19 @@ class Style(object):
return self.tk.call(self._name, "theme", "names")
- def theme_use(self, themename):
- """Sets the current theme to themename and refreshes all widgets."""
- self.tk.call(self._name, "theme", "use", themename)
+ def theme_use(self, themename=None):
+ """If themename is None, returns the theme in use, otherwise, set
+ the current theme to themename, refreshes all widgets and emits
+ a <> event."""
+ if themename is None:
+ # Starting on Tk 8.6, checking this global is no longer needed
+ # since it allows doing self.tk.call(self._name, "theme", "use")
+ return self.tk.eval("return $ttk::currentTheme")
+
+ # using "ttk::setTheme" instead of "ttk::style theme use" causes
+ # the variable currentTheme to be updated, also, ttk::setTheme calls
+ # "ttk::style theme use" in order to change theme.
+ self.tk.call("ttk::setTheme", themename)
class Widget(Tkinter.Widget):
@@ -520,15 +578,15 @@ class Widget(Tkinter.Widget):
def instate(self, statespec, callback=None, *args, **kw):
"""Test the widget's state.
- If callback is not specified, returns 1 if the widget state
- matches statespec and 0 otherwise. If callback is specified,
+ If callback is not specified, returns True if the widget state
+ matches statespec and False otherwise. If callback is specified,
then it will be invoked with *args, **kw if the widget state
matches statespec. statespec is expected to be a sequence."""
ret = self.tk.call(self._w, "instate", ' '.join(statespec))
if ret and callback:
return callback(*args, **kw)
- return ret
+ return bool(ret)
def state(self, statespec=None):
@@ -538,10 +596,10 @@ class Widget(Tkinter.Widget):
set according to the statespec flags and then a new state spec
is returned indicating which flags were changed. statespec is
expected to be a sequence."""
- statespec = statespec or ''
+ if statespec is not None:
+ statespec = ' '.join(statespec)
- return self.tk.splitlist(
- str(self.tk.call(self._w, "state", ' '.join(statespec))))
+ return self.tk.splitlist(str(self.tk.call(self._w, "state", statespec)))
class Button(Widget):
@@ -634,9 +692,9 @@ class Entry(Widget, Tkinter.Entry):
def validate(self):
"""Force revalidation, independent of the conditions specified
- by the validate option. Returns 0 if validation fails, 1 if it
- succeeds. Sets or clears the invalid state accordingly."""
- return self.tk.call(self._w, "validate")
+ by the validate option. Returns False if validation fails, True
+ if it succeeds. Sets or clears the invalid state accordingly."""
+ return bool(self.tk.call(self._w, "validate"))
class Combobox(Entry):
@@ -655,9 +713,30 @@ class Combobox(Entry):
exportselection, justify, height, postcommand, state,
textvariable, values, width
"""
+ # The "values" option may need special formatting, so leave to
+ # _format_optdict the responsability to format it
+ if "values" in kw:
+ kw["values"] = _format_optdict({'v': kw["values"]})[1]
+
Entry.__init__(self, master, "ttk::combobox", **kw)
+ def __setitem__(self, item, value):
+ if item == "values":
+ value = _format_optdict({item: value})[1]
+
+ Entry.__setitem__(self, item, value)
+
+
+ def configure(self, cnf=None, **kw):
+ """Custom Combobox configure, created to properly format the values
+ option."""
+ if "values" in kw:
+ kw["values"] = _format_optdict({'v': kw["values"]})[1]
+
+ return Entry.configure(self, cnf, **kw)
+
+
def current(self, newindex=None):
"""If newindex is supplied, sets the combobox value to the
element at position newindex in the list of values. Otherwise,
@@ -839,18 +918,20 @@ class Notebook(Widget):
return self.tk.call(self._w, "select", tab_id)
- def tab(self, tab_id, **kw):
- """Query or modify the options of the specific tab.
+ def tab(self, tab_id, option=None, **kw):
+ """Query or modify the options of the specific tab_id.
- If no option is specified, returns a dictionary of the tab option
- values. If one option is specified, returns the value of that
- option. Otherwise, sets the options to the corresponding values."""
+ If kw is not given, returns a dict of the tab option values. If option
+ is specified, returns the value of that option. Otherwise, sets the
+ options to the corresponding values."""
+ if option is not None:
+ kw[option] = None
return _val_or_dict(kw, self.tk.call, self._w, "tab", tab_id)
def tabs(self):
"""Returns a list of windows managed by the notebook."""
- return self.tk.call(self._w, "tabs")
+ return self.tk.call(self._w, "tabs") or ()
def enable_traversal(self):
@@ -901,6 +982,9 @@ class Panedwindow(Widget, Tkinter.PanedWindow):
Widget.__init__(self, master, "ttk::panedwindow", kw)
+ forget = Tkinter.PanedWindow.forget # overrides Pack.forget
+
+
def insert(self, pos, child, **kw):
"""Inserts a pane at the specified positions.
@@ -910,13 +994,15 @@ class Panedwindow(Widget, Tkinter.PanedWindow):
self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
- def pane(self, pane, **kw):
+ def pane(self, pane, option=None, **kw):
"""Query or modify the options of the specified pane.
- pane is either an integer index or the name of a managed
- subwindow. If no options are specified, returns a dict of the
- pane option values, if an option is specified without a value,
- returns the value of that option. Otherwise, the options are set."""
+ pane is either an integer index or the name of a managed subwindow.
+ If kw is not given, returns a dict of the pane option values. If
+ option is specified then the value for that option is returned.
+ Otherwise, sets the options to the correspoding values."""
+ if option is not None:
+ kw[option] = None
return _val_or_dict(kw, self.tk.call, self._w, "pane", pane)
@@ -1021,6 +1107,18 @@ class Scale(Widget, Tkinter.Scale):
Widget.__init__(self, master, "ttk::scale", kw)
+ def configure(self, cnf=None, **kw):
+ """Modify or query scale options.
+
+ Setting a value for any of the "from", "from_" or "to" options
+ generates a <> event."""
+ if cnf:
+ kw.update(cnf)
+ Widget.configure(self, **kw)
+ if any(['from' in kw, 'from_' in kw, 'to' in kw]):
+ self.event_generate('<>')
+
+
def get(self, x=None, y=None):
"""Get the current value of the value option, or the value
corresponding to the coordinates x, y if they are specified.
@@ -1119,12 +1217,14 @@ class Treeview(Widget):
return self.tk.call(self._w, "bbox", item, column)
- def get_children(self, item):
- """Returns a tuple of children belonging to item."""
- return self.tk.call(self._w, "children", item)
+ def get_children(self, item=None):
+ """Returns a tuple of children belonging to item.
+
+ If item is not specified, returns root children."""
+ return self.tk.call(self._w, "children", item or '') or ()
- def set_children(self, item, newchildren):
+ def set_children(self, item, *newchildren):
"""Replaces item's child with newchildren.
Children present in item that are not present in newchildren
@@ -1133,13 +1233,14 @@ class Treeview(Widget):
self.tk.call(self._w, "children", item, newchildren)
- def column(self, column, **kw):
+ def column(self, column, option=None, **kw):
"""Query or modify the options for the specified column.
- If no options are specified, returns a dictionary of option/value
- pairs. If an option is specified with value None, returns the
- value of that option. Otherwise, the options are updated with the
- specified values."""
+ If kw is not given, returns a dict of the column option values. If
+ option is specified then the value for that option is returned.
+ Otherwise, sets the options to the corresponding values."""
+ if option is not None:
+ kw[option] = None
return _val_or_dict(kw, self.tk.call, self._w, "column", column)
@@ -1149,7 +1250,7 @@ class Treeview(Widget):
self.tk.call(self._w, "delete", items)
- def detach(self, items):
+ def detach(self, *items):
"""Unlinks all of the specified items from the tree.
The items and all of their descendants are still present, and may
@@ -1159,9 +1260,9 @@ class Treeview(Widget):
def exists(self, item):
- """Returns 1 if the specified item is present in the three,
- 0 otherwise."""
- return self.tk.call(self._w, "exists", item)
+ """Returns True if the specified item is present in the three,
+ False otherwise."""
+ return bool(self.tk.call(self._w, "exists", item))
def focus(self, item=None):
@@ -1170,9 +1271,13 @@ class Treeview(Widget):
return self.tk.call(self._w, "focus", item)
- def heading(self, column, **kw):
+ def heading(self, column, option=None, **kw):
"""Query or modify the heading options for the specified column.
+ If kw is not given, returns a dict of the heading option values. If
+ option is specified then the value for that option is returned.
+ Otherwise, sets the options to the corresponding values.
+
Valid options/values are:
text: text
The text to display in the column heading
@@ -1192,6 +1297,9 @@ class Treeview(Widget):
# callback not registered yet, do it now
kw['command'] = self.master.register(cmd, self._substitute)
+ if option is not None:
+ kw[option] = None
+
return _val_or_dict(kw, self.tk.call, self._w, 'heading', column)
@@ -1214,6 +1322,25 @@ class Treeview(Widget):
return self.identify("column", x, 0)
+ def identify_region(self, x, y):
+ """Returns one of:
+
+ heading: Tree heading area.
+ separator: Space between two columns headings;
+ tree: The tree area.
+ cell: A data cell.
+
+ * Availability: Tk 8.6"""
+ return self.identify("region", x, y)
+
+
+ def identify_element(self, x, y):
+ """Returns the element at position x, y.
+
+ * Availability: Tk 8.6"""
+ return self.identify("element", x, y)
+
+
def index(self, item):
"""Returns the integer index of item within its parent's list
of children."""
@@ -1233,28 +1360,24 @@ class Treeview(Widget):
is specified, it is used as the item identifier, iid must not
already exist in the tree. Otherwise, a new unique identifier
is generated."""
- opts, values = _format_optdict(kw, ignore='values'), kw.get('values')
- # values may need special formatting if any value contains a space
- if values:
- values = map(unicode, values)
- opts += ("-values",
- ' '.join(('{%s}' if ' ' in v else '%s') % v for v in values))
+ opts = _format_optdict(kw)
if iid:
- res = self.tk.call(self._w, "insert", parent, index, "-id", iid,
- *opts)
+ res = self.tk.call(self._w, "insert", parent, index,
+ "-id", iid, *opts)
else:
res = self.tk.call(self._w, "insert", parent, index, *opts)
return res
- def item(self, item, **kw):
+ def item(self, item, option=None, **kw):
"""Query or modify the options for the specified item.
- If no options are specified, returns a dictionary of option/value
- pairs. If a single option is specified with value None, returns
- the value of that option. Otherwise, the item's options are
- updated with the specified values."""
+ If kw is not given, returns a dict of item option values. If option
+ is specified then the value for that option is returned. Otherwise,
+ sets the options to the corresponding values."""
+ if option is not None:
+ kw[option] = None
return _val_or_dict(kw, self.tk.call, self._w, "item", item)
@@ -1341,17 +1464,26 @@ class Treeview(Widget):
self._bind((self._w, "tag", "bind", tagname), sequence, callback, add=0)
- def tag_configure(self, tagname, **kw):
+ def tag_configure(self, tagname, option=None, **kw):
"""Query or modify the options for the specified tagname.
- If one or more option/value pairs are specified, sets the value
- of those options for the specified tag. If a single option
- is specified with value None, returns the value of that option
- (or the empty string if the option has not been specified for
- tagname). With no additional arguments, returns a dictionary of
- the option settings for tagname."""
+ If kw is not given, returns a dict of the option settings for tagname.
+ If option is specified, returns the value for that option for the
+ specified tagname. Otherwise, sets the options to the corresponding
+ values for the given tagname."""
+ if option is not None:
+ kw[option] = None
return _val_or_dict(kw, self.tk.call, self._w, "tag", "configure",
- tagname)
+ tagname)
+
+
+ def tag_has(self, tagname, item=None):
+ """If item is specified, returns 1 or 0 depending on whether the
+ specified item has the given tagname. Otherwise, returns a list of
+ all items which have the specified tag.
+
+ * Availability: Tk 8.6"""
+ return self.tk.call(self._w, "tag", "has", tagname, item)
def xview(self, *args):
@@ -1367,17 +1499,17 @@ class Treeview(Widget):
# Extensions
class LabeledScale(Frame, object):
- """A Ttk Scale widget with a Ttk Label widget over it indicating its
+ """A Ttk Scale widget with a Ttk Label widget indicating its
current value.
The Ttk Scale can be accessed through instance.scale, and Ttk Label
can be accessed through instance.label"""
def __init__(self, master=None, variable=None, from_=0, to=10, **kw):
- """Construct a LabeledScale with parent master, a variable to be
- associated with the Ttk Scale widget and its range. If variable is
- not specified, a Tkinter.IntVar is created.
-
+ """Construct an horizontal LabeledScale with parent master, a
+ variable to be associated with the Ttk Scale widget and its range.
+ If variable is not specified, a Tkinter.IntVar is created.
+
WIDGET-SPECIFIC OPTIONS
compound: 'top' or 'bottom'
@@ -1385,11 +1517,15 @@ class LabeledScale(Frame, object):
Defaults to 'top'.
"""
self._label_top = kw.pop('compound', 'top') == 'top'
+
Frame.__init__(self, master, **kw)
- self._variable = variable or Tkinter.IntVar(master, value=from_)
+ self._variable = variable or Tkinter.IntVar(master)
+ self._variable.set(from_)
+ self._last_valid = from_
self.label = Label(self)
self.scale = Scale(self, variable=self._variable, from_=from_, to=to)
+ self.scale.bind('<>', self._adjust)
# position scale and label according to the compound option
scale_side = 'bottom' if self._label_top else 'top'
@@ -1399,28 +1535,43 @@ class LabeledScale(Frame, object):
self.label.place(anchor='n' if label_side == 'top' else 's')
# update the label as scale or variable changes
- self._variable.trace_variable('w', self._adjust)
- self.scale.bind('', self._adjust)
- self.scale.bind('