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
7a528800
Commit
7a528800
authored
May 16, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes : mark 2 strings for translations + cleanup
One of the strings is to give a hint for wrong baudrates (#276)
parent
df00b7e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
pronterface.py
pronterface.py
+5
-6
No files found.
pronterface.py
View file @
7a528800
...
...
@@ -204,9 +204,9 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def
endcb
(
self
):
if
self
.
p
.
queueindex
==
0
:
print
"Print ended at: "
+
format_time
(
time
.
time
())
print_duration
=
int
(
time
.
time
()
-
self
.
starttime
+
self
.
extra_print_time
)
print
"and took: "
+
format_duration
(
print_duration
)
print
_
(
"Print ended at:
%(end_time)
s and took
%(duration)
s"
)
%
{
"end_time"
:
format_time
(
time
.
time
()))
"duration"
:
format_duration
(
print_duration
)}
wx
.
CallAfter
(
self
.
pausebtn
.
Disable
)
wx
.
CallAfter
(
self
.
printbtn
.
SetLabel
,
_
(
"Print"
))
...
...
@@ -591,7 +591,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
wx
.
CallAfter
(
self
.
btemp
.
SetInsertionPoint
,
0
)
def
showwin
(
self
,
event
):
if
(
self
.
f
is
not
None
)
:
if
self
.
f
is
not
None
:
self
.
gwindow
.
Show
(
True
)
self
.
gwindow
.
SetToolTip
(
wx
.
ToolTip
(
"Mousewheel zooms the display
\n
Shift / Mousewheel scrolls layers"
))
self
.
gwindow
.
Raise
()
...
...
@@ -1018,8 +1018,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
try
:
self
.
logbox
.
AppendText
(
text
)
except
:
print
"attempted to write invalid text to console"
pass
print
_
(
"Attempted to write invalid text to console, which could be due to an invalid baudrate"
)
def
setloud
(
self
,
e
):
self
.
p
.
loud
=
e
.
IsChecked
()
...
...
@@ -1519,5 +1518,5 @@ if __name__ == '__main__':
main
.
Show
()
try
:
app
.
MainLoop
()
except
:
except
KeyboardInterrupt
:
pass
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