diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4cec1be --- /dev/null +++ b/LICENSE @@ -0,0 +1,15 @@ +pandastable +Copyright (C) 2014- + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . diff --git a/freeze.py b/freeze.py index dbf2fd9..aa7ce99 100644 --- a/freeze.py +++ b/freeze.py @@ -1,16 +1,24 @@ import sys, os from cx_Freeze import setup, Executable +sys.path.append('pandastable') + # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os","numpy","matplotlib","pandas","pandastable"], - "excludes": []} + "excludes": [], + "namespace_packages": ['mpl_toolkits'], + "include_msvcr": True } base = None if sys.platform == "win32": base = "Win32GUI" -executables = [Executable("pandastable/app.py", base=base)] -setup( name = "dataviewer", +executables = [Executable("pandastable/app.py", base=base, + copyDependentFiles = True, + targetName='DataViewer.exe', + icon="img/dataviewer.ico")] + +setup( name = "DataViewer", version = "0.2", description = "Data analysis and plotter", options = {"build_exe": build_exe_options}, diff --git a/pandastable/plotting.py b/pandastable/plotting.py index 773d703..50e1056 100644 --- a/pandastable/plotting.py +++ b/pandastable/plotting.py @@ -76,7 +76,7 @@ def hide(): self.mplopts3d = MPL3DOptions() w2 = self.mplopts3d.showDialog(self.nb) self.nb.add(w2, text='3D plot', sticky='news') - + self.table.add_callback() return def setMode(self, evt=None): @@ -106,6 +106,8 @@ def addFigure(self, parent): canvas = FigureCanvasTkAgg(f, master=parent) canvas.show() canvas.get_tk_widget().pack(side=TOP, fill=BOTH, expand=1) + canvas.get_tk_widget().configure(highlightcolor='gray75', + highlightbackground='gray75') toolbar = NavigationToolbar2TkAgg(canvas, parent) toolbar.update() canvas._tkcanvas.pack(side=TOP, fill=BOTH, expand=1)