diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 2005-03-09 13:31:08 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 2005-03-09 13:31:08 +0000 |
commit | 66376e75d7ab64df234fcd1e0a37e03d37fddabf (patch) | |
tree | 3e1275c0ced981fc128bbea354b5797ad24f1ebc /games/pysol/files/patch-src::tk::soundoptionsdialog.py | |
parent | - no python implies no pyste (fix conditionally created plist) [1] (diff) |
Use sources, not the pre-compiled package. PySol will now run with
Python-2.4, too.
Notes
Notes:
svn path=/head/; revision=130719
Diffstat (limited to 'games/pysol/files/patch-src::tk::soundoptionsdialog.py')
-rw-r--r-- | games/pysol/files/patch-src::tk::soundoptionsdialog.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games/pysol/files/patch-src::tk::soundoptionsdialog.py b/games/pysol/files/patch-src::tk::soundoptionsdialog.py new file mode 100644 index 000000000000..8936cc8ec17f --- /dev/null +++ b/games/pysol/files/patch-src::tk::soundoptionsdialog.py @@ -0,0 +1,23 @@ +--- src/tk/soundoptionsdialog.py.orig 2004-12-04 15:33:34.218987696 +0200 ++++ src/tk/soundoptionsdialog.py 2004-12-04 15:29:08.306412552 +0200 +@@ -47,6 +47,11 @@ + from tkconst import EVENT_HANDLED, EVENT_PROPAGATE + from tkwidget import _ToplevelDialog, MfxDialog + ++def bool2int(b): ++ if b: ++ return 1 ++ else: ++ return 0 + + # /*********************************************************************** + # // +@@ -114,7 +119,7 @@ + + def mDone(self, button): + if button == 0 or button == 1: +- self.app.opt.sound = self.sound.get() ++ self.app.opt.sound = bool2int(self.sound.get()) + self.app.opt.sound_mode = self.sound_mode.get() + self.app.opt.sound_sample_volume = self.sample_volume.get() + self.app.opt.sound_music_volume = self.music_volume.get() |