Commit 42818bcd authored by Guillaume Seguin's avatar Guillaume Seguin

Add about dialog to Pronterface

parent b2a9e448
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Printrun. If not, see <http://www.gnu.org/licenses/>. # along with Printrun. If not, see <http://www.gnu.org/licenses/>.
__version__ = "2013.08.17"
from serial import Serial, SerialException from serial import Serial, SerialException
from select import error as SelectError from select import error as SelectError
from threading import Thread, Lock from threading import Thread, Lock
......
...@@ -50,6 +50,7 @@ from printrun.printrun_utils import iconfile, configfile ...@@ -50,6 +50,7 @@ from printrun.printrun_utils import iconfile, configfile
from printrun.gui import MainWindow from printrun.gui import MainWindow
from printrun.excluder import Excluder from printrun.excluder import Excluder
from . import pronsole from . import pronsole
from . import printcore
from pronsole import dosify, wxSetting, HiddenSetting, StringSetting, SpinSetting, FloatSpinSetting, BooleanSetting, StaticTextSetting from pronsole import dosify, wxSetting, HiddenSetting, StringSetting, SpinSetting, FloatSpinSetting, BooleanSetting, StaticTextSetting
from printrun import gcoder from printrun import gcoder
...@@ -677,6 +678,45 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -677,6 +678,45 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self.update_macros_menu() self.update_macros_menu()
self.SetMenuBar(self.menustrip) self.SetMenuBar(self.menustrip)
m = wx.Menu()
self.Bind(wx.EVT_MENU, self.about,
m.Append(-1, _("&About Printrun"), _("Show about dialog")))
self.menustrip.Append(m, _("&?"))
def about(self, event):
info = wx.AboutDialogInfo()
info.SetIcon(wx.Icon(iconfile("P-face.ico"), wx.BITMAP_TYPE_ICO))
info.SetName('Printrun')
info.SetVersion(printcore.__version__)
description = _("\
Printrun is a pure Python 3D printing (and other types of CNC) host software.")
info.SetDescription(description)
info.SetCopyright('(C) 2011 - 2013')
info.SetWebSite('https://github.com/kliment/Printrun')
licence = """\
Printrun 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.
Printrun 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
Printrun. If not, see <http://www.gnu.org/licenses/>."""
info.SetLicence(licence)
info.AddDeveloper('Kliment Yanev')
info.AddDeveloper('Guillaume Seguin')
wx.AboutBox(info)
def load_slic3r_configs(self, menus): def load_slic3r_configs(self, menus):
# Hack to get correct path for Slic3r config # Hack to get correct path for Slic3r config
orig_appname = self.app.GetAppName() orig_appname = self.app.GetAppName()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment