mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -04:00
2to3 on pysollib/winsystems/*.py
This commit is contained in:
parent
92db888328
commit
27e0e911ce
1 changed files with 6 additions and 5 deletions
|
@ -26,7 +26,8 @@ import traceback
|
||||||
|
|
||||||
from pysollib.settings import TITLE
|
from pysollib.settings import TITLE
|
||||||
from pysollib.settings import TOOLKIT, USE_TILE
|
from pysollib.settings import TOOLKIT, USE_TILE
|
||||||
from common import base_init_root_window, BaseTkSettings, get_font_name
|
from pysollib.winsystems.common import base_init_root_window, \
|
||||||
|
BaseTkSettings, get_font_name
|
||||||
if USE_TILE:
|
if USE_TILE:
|
||||||
from pysollib.tile import ttk
|
from pysollib.tile import ttk
|
||||||
|
|
||||||
|
@ -68,10 +69,10 @@ def init_root_window(root, app):
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
else:
|
else:
|
||||||
import tkFileDialog
|
from six.moves import tkinter_tkfiledialog
|
||||||
tkFileDialog.Open.command = 'ttk::getOpenFile'
|
tkinter_tkfiledialog.Open.command = 'ttk::getOpenFile'
|
||||||
tkFileDialog.SaveAs.command = 'ttk::getSaveFile'
|
tkinter_tkfiledialog.SaveAs.command = 'ttk::getSaveFile'
|
||||||
tkFileDialog.Directory.command = 'ttk::chooseDirectory'
|
tkinter_tkfiledialog.Directory.command = 'ttk::chooseDirectory'
|
||||||
|
|
||||||
style = ttk.Style(root)
|
style = ttk.Style(root)
|
||||||
color = style.lookup('.', 'background')
|
color = style.lookup('.', 'background')
|
||||||
|
|
Loading…
Add table
Reference in a new issue