From 3e857368d3de6acbfbbba06f62a4caab0c3ac16c Mon Sep 17 00:00:00 2001 From: BanYiMeng <2499642753@qq.com> Date: Tue, 14 Dec 2021 18:41:25 +0800 Subject: [PATCH 1/2] fix bug Fixed the error of incomplete display of "plot option". The TTK library does not support the "- relief" option, so some contents cannot be displayed. Therefore, the TTK library is disabled and the TK library is used. --- tkintertable/Plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tkintertable/Plot.py b/tkintertable/Plot.py index 22f9b1a..4cb21ad 100644 --- a/tkintertable/Plot.py +++ b/tkintertable/Plot.py @@ -24,10 +24,10 @@ import copy try: from tkinter import * - from tkinter.ttk import * +# from tkinter.ttk import * except: from Tkinter import * - from ttk import * +# from ttk import * if (sys.version_info > (3, 0)): from tkinter import filedialog, messagebox, simpledialog else: From 366030f625fa61fa124764fb6bb8cbd35fe22421 Mon Sep 17 00:00:00 2001 From: BanYiMeng <2499642753@qq.com> Date: Tue, 14 Dec 2021 18:42:58 +0800 Subject: [PATCH 2/2] fix bug Fixed an error where "plot option" could not be opened Pylabplot library does not exist, use Tkinter table Plot library overrides --- tkintertable/Tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tkintertable/Tables.py b/tkintertable/Tables.py index 53999e2..570d612 100644 --- a/tkintertable/Tables.py +++ b/tkintertable/Tables.py @@ -1488,7 +1488,7 @@ def plotSetup(self): """Call pylab plot dialog setup, send data if we haven't already plotted""" - from PylabPlot import pylabPlotter + from .Plot import pylabPlotter if not hasattr(self, 'pyplot'): self.pyplot = pylabPlotter() plotdata = self.getSelectionValues()