Alexandre Detiste
148f189a74
trim usage of six ( #382 )
...
This is artisanal manual craftwork :-)
def mDone(self, button):
if button == 0: # "OK" or double click
- if isinstance(self.tree.selection_key, six.string_types):
- self.key = str(self.tree.selection_key)
- else:
- self.key = self.tree.selection_key
+ self.key = self.tree.selection_key
2024-09-18 20:33:10 -04:00
Joe R
f3661a0aee
Additional options and documentation for Solitaire Wizard.
2022-12-30 09:56:00 -05:00
Shlomi Fish
ed18fd8156
Order imports based on flake8-import-order.
...
Tested on ci. See https://github.com/PyCQA/flake8-import-order . In the
process did some other cleanups and
https://en.wikipedia.org/wiki/Code_refactoring .
2019-01-11 23:55:06 +02:00
Shlomi Fish
11bafeba44
use six.py.
2018-09-01 18:40:50 +03:00
Shlomi Fish
73895c6bf3
flake 8
2017-04-19 12:03:44 +03:00
Shlomi Fish
4747fe1dbf
flake8.
2017-04-19 12:03:44 +03:00
Shlomi Fish
e2a6c00606
Merge remote-tracking branch 'jimsize/master' into pysolfc_modules_modularization
...
Conflicts:
.gitignore
Makefile
pysollib/acard.py
pysollib/actions.py
pysollib/app.py
pysollib/customgame.py
pysollib/game.py
pysollib/gamedb.py
pysollib/games/__init__.py
pysollib/games/auldlangsyne.py
pysollib/games/braid.py
pysollib/games/calculation.py
pysollib/games/camelot.py
pysollib/games/canfield.py
pysollib/games/curdsandwhey.py
pysollib/games/fan.py
pysollib/games/golf.py
pysollib/games/klondike.py
pysollib/games/larasgame.py
pysollib/games/mahjongg/mahjongg.py
pysollib/games/mahjongg/shisensho.py
pysollib/games/matriarchy.py
pysollib/games/napoleon.py
pysollib/games/numerica.py
pysollib/games/osmosis.py
pysollib/games/pileon.py
pysollib/games/royalcotillion.py
pysollib/games/special/memory.py
pysollib/games/special/poker.py
pysollib/games/special/tarock.py
pysollib/games/spider.py
pysollib/games/takeaway.py
pysollib/games/terrace.py
pysollib/games/threepeaks.py
pysollib/games/tournament.py
pysollib/games/ultra/dashavatara.py
pysollib/games/ultra/hanafuda.py
pysollib/games/ultra/hanafuda1.py
pysollib/games/ultra/hanafuda_common.py
pysollib/games/ultra/hexadeck.py
pysollib/games/ultra/mughal.py
pysollib/games/yukon.py
pysollib/help.py
pysollib/hint.py
pysollib/images.py
pysollib/init.py
pysollib/layout.py
pysollib/main.py
pysollib/mfxutil.py
pysollib/options.py
pysollib/pysolgtk/colorsdialog.py
pysollib/pysolgtk/fontsdialog.py
pysollib/pysolgtk/menubar.py
pysollib/pysolgtk/playeroptionsdialog.py
pysollib/pysolgtk/selectcardset.py
pysollib/pysolgtk/selectgame.py
pysollib/pysolgtk/selecttile.py
pysollib/pysolgtk/soundoptionsdialog.py
pysollib/pysolgtk/statusbar.py
pysollib/pysolgtk/timeoutsdialog.py
pysollib/pysolgtk/tkhtml.py
pysollib/pysolgtk/tkstats.py
pysollib/pysolgtk/tkwidget.py
pysollib/pysolrandom.py
pysollib/pysoltk.py
pysollib/resource.py
pysollib/stack.py
pysollib/stats.py
pysollib/tile/colorsdialog.py
pysollib/tile/edittextdialog.py
pysollib/tile/findcarddialog.py
pysollib/tile/fontsdialog.py
pysollib/tile/gameinfodialog.py
pysollib/tile/menubar.py
pysollib/tile/playeroptionsdialog.py
pysollib/tile/selectcardset.py
pysollib/tile/selectgame.py
pysollib/tile/selecttile.py
pysollib/tile/solverdialog.py
pysollib/tile/soundoptionsdialog.py
pysollib/tile/statusbar.py
pysollib/tile/timeoutsdialog.py
pysollib/tile/tkconst.py
pysollib/tile/tkhtml.py
pysollib/tile/tkstats.py
pysollib/tile/tkwidget.py
pysollib/tile/toolbar.py
pysollib/tile/ttk.py
pysollib/tile/wizarddialog.py
pysollib/tk/colorsdialog.py
pysollib/tk/edittextdialog.py
pysollib/tk/findcarddialog.py
pysollib/tk/fontsdialog.py
pysollib/tk/gameinfodialog.py
pysollib/tk/menubar.py
pysollib/tk/playeroptionsdialog.py
pysollib/tk/selectcardset.py
pysollib/tk/selectgame.py
pysollib/tk/selecttile.py
pysollib/tk/solverdialog.py
pysollib/tk/soundoptionsdialog.py
pysollib/tk/statusbar.py
pysollib/tk/timeoutsdialog.py
pysollib/tk/tkconst.py
pysollib/tk/tkhtml.py
pysollib/tk/tkstats.py
pysollib/tk/tkwidget.py
pysollib/tk/toolbar.py
pysollib/tk/wizarddialog.py
pysollib/util.py
pysollib/winsystems/common.py
pysollib/wizardpresets.py
pysollib/wizardutil.py
setup_osx.py
2012-12-07 16:32:30 +02:00
Shlomi Fish
d9e3d83e9f
wizardutil.
2012-11-25 19:15:36 +02:00
Shlomi Fish
65cc6b918c
Convert to explicit imports.
2012-11-25 18:52:01 +02:00
Shlomi Fish
ec3890995b
Test and convert pysollib.layout.
2012-11-25 18:32:15 +02:00
Shlomi Fish
0a7b4f0924
Add pysollib.hint.
2012-11-25 18:30:38 +02:00
Shlomi Fish
88634d2a8b
import stack.
2012-11-25 18:16:06 +02:00
Shlomi Fish
884a44ceb0
gamedb.
2012-11-25 18:07:40 +02:00
Shlomi Fish
0785307eb8
Test import of pysollib.util.
2012-11-25 18:00:48 +02:00
skomoroh
2744887cd4
* changed comments style
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@243 efabe8c0-fbe8-4139-b769-b5e6d273206e
2009-07-22 21:36:22 +00:00
skomoroh
232dca18fb
* changed comments style
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@243 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2009-07-22 21:36:22 +00:00
skomoroh
dfe790a101
* changed GPL version to 3
...
* added config-file option sound_sample_buffer_size
* bugfixes
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@234 efabe8c0-fbe8-4139-b769-b5e6d273206e
2009-06-12 09:32:43 +00:00
skomoroh
fb107c8727
* changed GPL version to 3
...
* added config-file option sound_sample_buffer_size
* bugfixes
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@234 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2009-06-12 09:32:43 +00:00
skomoroh
273cce0a7d
* added Spider_RK_Foundation to Solitaire Wizard
...
* minor fixes for py2exe
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@209 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-09-06 21:45:03 +00:00
skomoroh
a26182165c
* added Spider_RK_Foundation to Solitaire Wizard
...
* minor fixes for py2exe
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@209 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-09-06 21:45:03 +00:00
skomoroh
9d7698ecf1
* minor fixes
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@205 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-08-31 21:30:22 +00:00
skomoroh
7b547c2844
* minor fixes
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@205 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-08-31 21:30:22 +00:00
skomoroh
adcf65dca4
* bugfixes
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@180 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-07-01 21:29:51 +00:00
skomoroh
92105ae74f
* bugfixes
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@180 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-07-01 21:29:51 +00:00
skomoroh
93907151a8
* improved Tile.py
...
* added `clearlooks' theme for tile-binding
* added dialogs for tile-binding: File Selecton and Color Chooser (for x11)
* refactoring: tile: replaced Tkinter to Tile
* refactoring: tile: removed non-used imports
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@174 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-06-15 22:01:18 +00:00
skomoroh
c32521e841
* improved Tile.py
...
* added `clearlooks' theme for tile-binding
* added dialogs for tile-binding: File Selecton and Color Chooser (for x11)
* refactoring: tile: replaced Tkinter to Tile
* refactoring: tile: removed non-used imports
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@174 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-06-15 22:01:18 +00:00
skomoroh
9eaeadce61
* fixed scrolling in MfxScrolledCanvas
...
* added clickable url to About dialog
* many other improvements and bugfixes
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@173 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-06-09 21:59:16 +00:00
skomoroh
55bbfdddb2
* fixed scrolling in MfxScrolledCanvas
...
* added clickable url to About dialog
* many other improvements and bugfixes
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@173 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-06-09 21:59:16 +00:00
skomoroh
67bd2b8cd8
* improved initial dealing of custom games
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@172 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-27 21:27:07 +00:00
skomoroh
5c1c8c2eeb
* improved initial dealing of custom games
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@172 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-27 21:27:07 +00:00
skomoroh
f704ddd02b
+ added ngettext support
...
* updated russian translation
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@164 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-11 21:58:22 +00:00
skomoroh
600684acae
+ added ngettext support
...
* updated russian translation
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@164 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-11 21:58:22 +00:00
skomoroh
7601a8a27d
* improved solitaire wizard
...
* updated russin translation
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@163 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-10 21:16:12 +00:00
skomoroh
a9a4923e84
* improved solitaire wizard
...
* updated russin translation
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@163 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-10 21:16:12 +00:00
skomoroh
2022dbe599
* improved solitaire wizard
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@162 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-08 21:21:33 +00:00
skomoroh
e7714af87e
* improved solitaire wizard
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@162 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-08 21:21:33 +00:00
skomoroh
ccc11cb64d
* improved solitaire wizard
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@161 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-07 22:12:54 +00:00
skomoroh
4117e41bb0
* improved solitaire wizard
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@161 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-07 22:12:54 +00:00
skomoroh
a7e7aab703
* improved solitaire wizard
...
* removed round changes from turnStackMove
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@160 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-06 21:42:40 +00:00
skomoroh
9fd4942f23
* improved solitaire wizard
...
* removed round changes from turnStackMove
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@160 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-06 21:42:40 +00:00
skomoroh
9bf19c0f4c
* improved solitaire wizard
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@159 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-05 21:13:52 +00:00
skomoroh
bc4d344348
* improved solitaire wizard
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@159 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-05 21:13:52 +00:00
skomoroh
92cab44b85
+ added solitaire wizard to Tk-binding
...
* improved solitaire wizard
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@158 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-04 21:17:52 +00:00
skomoroh
4147a1ce20
+ added solitaire wizard to Tk-binding
...
* improved solitaire wizard
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@158 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-04 21:17:52 +00:00
skomoroh
8766c00a53
+ new feature: Solitaire Wizard (tile only yet)
...
* misc. minor improvements
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@157 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-03 21:21:33 +00:00
skomoroh
fb3b59bf3d
+ new feature: Solitaire Wizard (tile only yet)
...
* misc. minor improvements
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@157 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-03 21:21:33 +00:00