mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -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
|
# imports
|
||||||
import sys
|
from six.moves import range, tkinter
|
||||||
from six.moves import tkinter
|
|
||||||
|
|
||||||
# PySol imports
|
# PySol imports
|
||||||
from pysollib.mygettext import _
|
from pysollib.mygettext import _
|
||||||
|
@ -33,11 +32,6 @@ from pysollib.mfxutil import KwStruct
|
||||||
from pysollib.tk.basetkmfxdialog import BaseTkMfxDialog
|
from pysollib.tk.basetkmfxdialog import BaseTkMfxDialog
|
||||||
from pysollib.ui.tktile.solverdialog import BaseSolverDialog, solver_dialog
|
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)
|
n = len(self.gamenames)
|
||||||
cb_max = int(self.top.winfo_screenheight()//23)
|
cb_max = int(self.top.winfo_screenheight()//23)
|
||||||
cb_max = n // (n//cb_max+1)
|
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)
|
om['menu'].entryconfig(i, columnbreak=True)
|
||||||
return var
|
return var
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue