mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Convert to six.py
This commit is contained in:
parent
b532c5bd22
commit
afcf0b5c9d
1 changed files with 2 additions and 8 deletions
|
@ -22,8 +22,7 @@
|
|||
# ---------------------------------------------------------------------------##
|
||||
|
||||
# imports
|
||||
import sys
|
||||
from six.moves import tkinter
|
||||
from six.moves import range, tkinter
|
||||
|
||||
# PySol imports
|
||||
from pysollib.mygettext import _
|
||||
|
@ -33,11 +32,6 @@ from pysollib.mfxutil import KwStruct
|
|||
from pysollib.tk.basetkmfxdialog import BaseTkMfxDialog
|
||||
from pysollib.ui.tktile.solverdialog import BaseSolverDialog, solver_dialog
|
||||
|
||||
|
||||
if sys.version_info > (3,):
|
||||
xrange = range
|
||||
|
||||
|
||||
# ************************************************************************
|
||||
# *
|
||||
# ************************************************************************
|
||||
|
@ -54,7 +48,7 @@ class SolverDialog(BaseSolverDialog, BaseTkMfxDialog):
|
|||
n = len(self.gamenames)
|
||||
cb_max = int(self.top.winfo_screenheight()//23)
|
||||
cb_max = n // (n//cb_max+1)
|
||||
for i in xrange(cb_max, n, cb_max):
|
||||
for i in range(cb_max, n, cb_max):
|
||||
om['menu'].entryconfig(i, columnbreak=True)
|
||||
return var
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue