Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
42818bcd
Commit
42818bcd
authored
Aug 17, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add about dialog to Pronterface
parent
b2a9e448
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
printcore.py
printrun/printcore.py
+2
-0
pronterface.py
printrun/pronterface.py
+40
-0
No files found.
printrun/printcore.py
View file @
42818bcd
...
@@ -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
...
...
printrun/pronterface.py
View file @
42818bcd
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment