From b30e3c6c4f9b91e58c75b42558c0233f4f4a9975 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 20 Jan 2020 11:16:46 +0100 Subject: Python 2.7.x-style tkinter imports, just to investigate compatibility --- jfr_playoff/gui/frames/__init__.py | 4 ++-- jfr_playoff/gui/frames/match.py | 6 +++--- jfr_playoff/gui/frames/network.py | 4 ++-- jfr_playoff/gui/frames/team.py | 6 +++--- jfr_playoff/gui/frames/translations.py | 4 ++-- jfr_playoff/gui/frames/visual.py | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) (limited to 'jfr_playoff/gui/frames') diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py index 983903a..348014d 100644 --- a/jfr_playoff/gui/frames/__init__.py +++ b/jfr_playoff/gui/frames/__init__.py @@ -3,8 +3,8 @@ from functools import partial import types -import tkinter as tk -from tkinter import ttk +import Tkinter as tk +import ttk import tkMessageBox from ..variables import BoolVar diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py index ad630d0..5437887 100644 --- a/jfr_playoff/gui/frames/match.py +++ b/jfr_playoff/gui/frames/match.py @@ -2,9 +2,9 @@ from collections import OrderedDict -import tkinter as tk -from tkinter.font import Font -from tkinter import ttk +import Tkinter as tk +from tkFont import Font +import ttk from ..frames import GuiFrame, RepeatableFrame, ScrollableFrame from ..frames import WidgetRepeater, RepeatableEntry, NumericSpinbox diff --git a/jfr_playoff/gui/frames/network.py b/jfr_playoff/gui/frames/network.py index 96c5daa..927c4b1 100644 --- a/jfr_playoff/gui/frames/network.py +++ b/jfr_playoff/gui/frames/network.py @@ -3,8 +3,8 @@ import socket from collections import OrderedDict -import tkinter as tk -from tkinter import ttk +import Tkinter as tk +import ttk import tkMessageBox as tkmb from ...db import PlayoffDB diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py index 8e17422..b174e27 100644 --- a/jfr_playoff/gui/frames/team.py +++ b/jfr_playoff/gui/frames/team.py @@ -2,9 +2,9 @@ from collections import OrderedDict -import tkinter as tk -from tkinter.font import Font -from tkinter import ttk +import Tkinter as tk +from tkFont import Font +import ttk from ..frames import GuiFrame, RepeatableFrame, ScrollableFrame from ..frames import WidgetRepeater, RepeatableEntry, NumericSpinbox diff --git a/jfr_playoff/gui/frames/translations.py b/jfr_playoff/gui/frames/translations.py index a369159..2045f64 100644 --- a/jfr_playoff/gui/frames/translations.py +++ b/jfr_playoff/gui/frames/translations.py @@ -3,8 +3,8 @@ import copy from collections import OrderedDict -import tkinter as tk -from tkinter import ttk +import Tkinter as tk +import ttk from ..frames import RepeatableFrame, WidgetRepeater, ScrollableFrame from ...i18n import PLAYOFF_I18N_DEFAULTS diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py index 1cbe177..9794ef3 100644 --- a/jfr_playoff/gui/frames/visual.py +++ b/jfr_playoff/gui/frames/visual.py @@ -2,8 +2,8 @@ from collections import OrderedDict -import tkinter as tk -from tkinter import ttk +import Tkinter as tk +import ttk import tkColorChooser as tkcc from ..frames import GuiFrame, RepeatableFrame, ScrollableFrame -- cgit v1.2.3