1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
Commit graph

26 commits

Author SHA1 Message Date
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
de3e8cc3f8 Expanded the solid color list in the table tile selection window. 2023-05-12 21:48:55 -04: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
de93df2de7 flake8 and other tests. 2017-09-18 16:37:02 +03:00
Shlomi Fish
f768b571ad 2to3 on pysollib/tk/[a-s]*.py 2017-05-22 19:42:11 +03:00
Shlomi Fish
72a2591ec1 Preemptive tkinter conversion to py2/py3.
Using the six module. Did it before 2to3 reports it.
2017-05-22 18:38:20 +03:00
Shlomi Fish
37c9535792 flake8 2017-04-19 12:03:45 +03:00
Shlomi Fish
99ef711af1 Change the licenses headers to please flake8. 2017-04-19 12:03:44 +03:00
Shlomi Fish
5dc2edda91 Get rid of gettext in init. 2012-11-25 19:43:46 +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
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
f86de9b176 * refactoring: replaced map(lambda...), filter(lambda...) to list comprehension (thanks to 2to3)
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@199 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-08-25 21:19:40 +00:00
skomoroh
46a2191011 + added config-file option `translate_game_names'
+ added accelerator ctrl-x: `Hold and quit'
* fixed games `Matriarchy', `Grandfather', `Bristol', `Chessboard', Twenty, `Q.C.'
* improved MfxScrolledCanvas
* improved hint
* fixed SelectTileDialogWithPreview


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@194 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-08-18 21:19:52 +00:00
skomoroh
ebb552c135 + 2 new games
+ new Layout method: createRoundText
+ added showing `Round #' for many games
* minor improvement of SelectTileDialogWithPreview
* improved `select random game'
* fixed setting bg image


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@193 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-08-15 21:44:20 +00:00
skomoroh
6c30899fd9 * improved look for x11
* renamed option `separatorwidth' to `separator' (dialogs)


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@179 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-06-30 21:24:04 +00:00
skomoroh
5fd0909114 * pysollib/tk: removed unused imports
* minor bugfixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@178 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-06-27 21:22:59 +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
1e0df4b925 + animated flip
* cleanup code


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@128 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-12-21 22:18:22 +00:00
skomoroh
17ac08594f + added x-shadow
* bugs fixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@68 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-09-17 23:45:11 +00:00
skomoroh
3ce24a088b * little reorganization: move some func. from pysollib/actions.py to pysollib/tk/menubar.py
* bug fixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@57 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-08-25 21:27:33 +00:00
skomoroh
d65367de02 + GTK bindings: sound-dialog
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@56 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-08-24 21:26:24 +00:00
skomoroh
dc038c8dc9 * improved GTK bindings; menu, stats-dialog, colors-dialog, timeouts-dialog
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@53 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-08-21 21:17:19 +00:00
skomoroh
2fcfcf8e99 * improved support GTK (alpha)
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@48 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-08-15 21:15:02 +00:00
skomoroh
00e73d252b - fixed game `Jane'
- added game `Granada'
- added support accel-keys for buttons of dialogs
- changed widget's styles
- updated russian translation
- updated GAMES_BY_PYSOL_VERSION (gamedb.py)
- other minor fixes



git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@4 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-06-08 01:35:18 +00:00
skomoroh
df80ec1047 Initial import.
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@1 efabe8c0-fbe8-4139-b769-b5e6d273206e
2006-05-26 21:25:18 +00:00