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
2afaf4c6
Commit
2afaf4c6
authored
Feb 26, 2012
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use format strings as much as possible for translations
parent
9a20974d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
166 additions
and
247 deletions
+166
-247
pronterface.pot
locale/pronterface.pot
+156
-236
pronterface.py
pronterface.py
+10
-11
No files found.
locale/pronterface.pot
View file @
2afaf4c6
...
...
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2012-0
1-19 09:21
+CET\n"
"POT-Creation-Date: 2012-0
2-26 02:12
+CET\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -15,61 +15,11 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n"
#: pronsole.py:250
msgid "Communications Speed (default: 115200)"
msgstr ""
#: pronsole.py:251
msgid "Heated Build Platform temp for ABS (default: 110 deg C)"
msgstr ""
#: pronsole.py:252
msgid "Heated Build Platform temp for PLA (default: 60 deg C)"
msgstr ""
#: pronsole.py:253
msgid "Feedrate for Control Panel Moves in Extrusions (default: 300mm/min)"
msgstr ""
#: pronsole.py:254
msgid "Port used to communicate with printer"
msgstr ""
#: pronsole.py:255
msgid ""
"Slice command\n"
" default:\n"
" python skeinforge/skeinforge_application/skeinforge_utilities/skeinforge_craft.py $s)"
msgstr ""
#: pronsole.py:256
msgid ""
"Slice settings command\n"
" default:\n"
" python skeinforge/skeinforge_application/skeinforge.py"
msgstr ""
#: pronsole.py:257
msgid "Extruder temp for ABS (default: 230 deg C)"
msgstr ""
#: pronsole.py:258
msgid "Extruder temp for PLA (default: 185 deg C)"
msgstr ""
#: pronsole.py:259
msgid "Feedrate for Control Panel Moves in X and Y (default: 3000mm/min)"
msgstr ""
#: pronsole.py:260
msgid "Feedrate for Control Panel Moves in Z (default: 200mm/min)"
msgstr ""
#: pronterface.py:15
#: pronterface.py:30
msgid "WX is not installed. This program requires WX to run."
msgstr ""
#: pronterface.py:
66
#: pronterface.py:
81
msgid ""
"Dimensions of Build Platform\n"
" & optional offset of origin\n"
...
...
@@ -80,575 +30,545 @@ msgid ""
" XXXxYYYxZZZ+OffX+OffY+OffZ"
msgstr ""
#: pronterface.py:
67
#: pronterface.py:
82
msgid "Last Set Temperature for the Heated Print Bed"
msgstr ""
#: pronterface.py:
68
#: pronterface.py:
83
msgid "Folder of last opened file"
msgstr ""
#: pronterface.py:
69
#: pronterface.py:
84
msgid "Last Temperature of the Hot End"
msgstr ""
#: pronterface.py:
70
#: pronterface.py:
85
msgid "Width of Extrusion in Preview (default: 0.5)"
msgstr ""
#: pronterface.py:
71
#: pronterface.py:
86
msgid "Fine Grid Spacing (default: 10)"
msgstr ""
#: pronterface.py:
72
#: pronterface.py:
87
msgid "Coarse Grid Spacing (default: 50)"
msgstr ""
#: pronterface.py:
73
#: pronterface.py:
88
msgid "Pronterface background color (default: #FFFFFF)"
msgstr ""
#: pronterface.py:
76
#: pronterface.py:
91
msgid "Printer Interface"
msgstr ""
#: pronterface.py:
93
#: pronterface.py:
108
msgid "Motors off"
msgstr ""
#: pronterface.py:
94
#: pronterface.py:
109
msgid "Check temp"
msgstr ""
#: pronterface.py:
95
#: pronterface.py:
110
msgid "Extrude"
msgstr ""
#: pronterface.py:
96
#: pronterface.py:
111
msgid "Reverse"
msgstr ""
#: pronterface.py:1
14
#: pronterface.py:1
29
msgid ""
"# I moved all your custom buttons into .pronsolerc.\n"
"# Please don't add them here any more.\n"
"# Backup of your old buttons is in custombtn.old\n"
msgstr ""
#: pronterface.py:1
19
#: pronterface.py:1
34
msgid "Note!!! You have specified custom buttons in both custombtn.txt and .pronsolerc"
msgstr ""
#: pronterface.py:1
20
#: pronterface.py:1
35
msgid "Ignoring custombtn.txt. Remove all current buttons to revert to custombtn.txt"
msgstr ""
#: pronterface.py:1
48 pronterface.py:499 pronterface.py:1319
#: pronterface.py:13
73 pronterface.py:1495 pronterface.py:1529
#: pronterface.py:15
44
#: pronterface.py:1
63 pronterface.py:514 pronterface.py:1333
#: pronterface.py:13
87 pronterface.py:1509 pronterface.py:1543
#: pronterface.py:15
58
msgid "Print"
msgstr ""
#: pronterface.py:1
52
#: pronterface.py:1
67
msgid "Printer is now online."
msgstr ""
#: pronterface.py:
212
msgid "
Setting hotend temperature to
"
#: pronterface.py:
168
msgid "
Disconnect
"
msgstr ""
#: pronterface.py:2
12 pronterface.py:248
msgid " degrees Celsius."
#: pronterface.py:2
27
msgid "
Setting hotend temperature to %f
degrees Celsius."
msgstr ""
#: pronterface.py:2
31 pronterface.py:267 pronterface.py:325
#: pronterface.py:2
46 pronterface.py:282 pronterface.py:340
msgid "Printer is not online."
msgstr ""
#: pronterface.py:2
33
#: pronterface.py:2
48
msgid "You cannot set negative temperatures. To turn the hotend off entirely, set its temperature to 0."
msgstr ""
#: pronterface.py:248
msgid "Setting bed temperature to "
#: pronterface.py:250
msgid "You must enter a temperature. (%s)"
msgstr ""
#: pronterface.py:263
msgid "Setting bed temperature to %f degrees Celsius."
msgstr ""
#: pronterface.py:2
69
#: pronterface.py:2
84
msgid "You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0."
msgstr ""
#: pronterface.py:2
71
#: pronterface.py:2
86
msgid "You must enter a temperature."
msgstr ""
#: pronterface.py:
286
#: pronterface.py:
301
msgid "Do you want to erase the macro?"
msgstr ""
#: pronterface.py:
290
#: pronterface.py:
305
msgid "Cancelled."
msgstr ""
#: pronterface.py:3
31
#: pronterface.py:3
46
msgid " Opens file"
msgstr ""
#: pronterface.py:3
31
#: pronterface.py:3
46
msgid "&Open..."
msgstr ""
#: pronterface.py:3
32
#: pronterface.py:3
47
msgid " Edit open file"
msgstr ""
#: pronterface.py:3
32
#: pronterface.py:3
47
msgid "&Edit..."
msgstr ""
#: pronterface.py:3
33
#: pronterface.py:3
48
msgid " Clear output console"
msgstr ""
#: pronterface.py:3
33
#: pronterface.py:3
48
msgid "Clear console"
msgstr ""
#: pronterface.py:3
34
#: pronterface.py:3
49
msgid " Project slices"
msgstr ""
#: pronterface.py:3
34
#: pronterface.py:3
49
msgid "Projector"
msgstr ""
#: pronterface.py:3
35
#: pronterface.py:3
50
msgid " Closes the Window"
msgstr ""
#: pronterface.py:3
35
#: pronterface.py:3
50
msgid "E&xit"
msgstr ""
#: pronterface.py:3
36
#: pronterface.py:3
51
msgid "&File"
msgstr ""
#: pronterface.py:3
41
#: pronterface.py:3
56
msgid "&Macros"
msgstr ""
#: pronterface.py:3
42
#: pronterface.py:3
57
msgid "<&New...>"
msgstr ""
#: pronterface.py:3
43
#: pronterface.py:3
58
msgid " Options dialog"
msgstr ""
#: pronterface.py:3
43
#: pronterface.py:3
58
msgid "&Options"
msgstr ""
#: pronterface.py:3
45
#: pronterface.py:3
60
msgid " Adjust slicing settings"
msgstr ""
#: pronterface.py:3
45
#: pronterface.py:3
60
msgid "Slicing Settings"
msgstr ""
#: pronterface.py:3
52
#: pronterface.py:3
67
msgid "&Settings"
msgstr ""
#: pronterface.py:3
68
#: pronterface.py:3
83
msgid "Enter macro name"
msgstr ""
#: pronterface.py:3
71
#: pronterface.py:3
86
msgid "Macro name:"
msgstr ""
#: pronterface.py:3
74
#: pronterface.py:3
89
msgid "Ok"
msgstr ""
#: pronterface.py:3
78 pronterface.py:1330 pronterface.py:1587
#: pronterface.py:3
93 pronterface.py:1344 pronterface.py:1601
msgid "Cancel"
msgstr ""
#: pronterface.py:396
msgid "' is being used by built-in command"
msgstr ""
#: pronterface.py:396
msgid "Name '"
#: pronterface.py:411
msgid "Name '%s' is being used by built-in command"
msgstr ""
#: pronterface.py:
399
#: pronterface.py:
414
msgid "Macro name may contain only alphanumeric symbols and underscores"
msgstr ""
#: pronterface.py:4
48
#: pronterface.py:4
63
msgid "Port"
msgstr ""
#: pronterface.py:4
67
#: pronterface.py:4
82
msgid "Connect"
msgstr ""
#: pronterface.py:4
69
#: pronterface.py:4
84
msgid "Connect to the printer"
msgstr ""
#: pronterface.py:4
71
#: pronterface.py:4
86
msgid "Reset"
msgstr ""
#: pronterface.py:4
74 pronterface.py:751
#: pronterface.py:4
89 pronterface.py:766
msgid "Mini mode"
msgstr ""
#: pronterface.py:4
78
#: pronterface.py:4
93
msgid "Monitor Printer"
msgstr ""
#: pronterface.py:
488
#: pronterface.py:
503
msgid "Load file"
msgstr ""
#: pronterface.py:
491
#: pronterface.py:
506
msgid "Compose"
msgstr ""
#: pronterface.py:
495
#: pronterface.py:
510
msgid "SD"
msgstr ""
#: pronterface.py:5
03 pronterface.py:1374 pronterface.py:1419
#: pronterface.py:14
69 pronterface.py:1494 pronterface.py:1528
#: pronterface.py:15
43
#: pronterface.py:5
18 pronterface.py:1388 pronterface.py:1433
#: pronterface.py:14
83 pronterface.py:1508 pronterface.py:1542
#: pronterface.py:15
57
msgid "Pause"
msgstr ""
#: pronterface.py:5
16
#: pronterface.py:5
31
msgid "Send"
msgstr ""
#: pronterface.py:5
24 pronterface.py:625
#: pronterface.py:5
39 pronterface.py:640
msgid "mm/min"
msgstr ""
#: pronterface.py:5
26
#: pronterface.py:5
41
msgid "XY:"
msgstr ""
#: pronterface.py:5
28
#: pronterface.py:5
43
msgid "Z:"
msgstr ""
#: pronterface.py:5
51 pronterface.py:632
#: pronterface.py:5
66 pronterface.py:647
msgid "Heater:"
msgstr ""
#: pronterface.py:5
54 pronterface.py:574
#: pronterface.py:5
69 pronterface.py:589
msgid "Off"
msgstr ""
#: pronterface.py:5
66 pronterface.py:586
#: pronterface.py:5
81 pronterface.py:601
msgid "Set"
msgstr ""
#: pronterface.py:5
71 pronterface.py:634
#: pronterface.py:5
86 pronterface.py:649
msgid "Bed:"
msgstr ""
#: pronterface.py:6
19
#: pronterface.py:6
34
msgid "mm"
msgstr ""
#: pronterface.py:6
77 pronterface.py:1182 pronterface.py:1413
#: pronterface.py:6
92 pronterface.py:1196 pronterface.py:1427
msgid "Not connected to printer."
msgstr ""
#: pronterface.py:7
06
#: pronterface.py:7
21
msgid "SD Upload"
msgstr ""
#: pronterface.py:7
10
#: pronterface.py:7
25
msgid "SD Print"
msgstr ""
#: pronterface.py:7
58
#: pronterface.py:7
73
msgid "Full mode"
msgstr ""
#: pronterface.py:7
83
#: pronterface.py:7
98
msgid "Execute command: "
msgstr ""
#: pronterface.py:
794
#: pronterface.py:
809
msgid "click to add new custom button"
msgstr ""
#: pronterface.py:8
13
#: pronterface.py:8
28
msgid "Defines custom button. Usage: button <num> \"title\" [/c \"colour\"] command"
msgstr ""
#: pronterface.py:8
35
#: pronterface.py:8
50
msgid "Custom button number should be between 0 and 63"
msgstr ""
#: pronterface.py:9
27
#: pronterface.py:9
42
msgid "Edit custom button '%s'"
msgstr ""
#: pronterface.py:9
29
#: pronterface.py:9
44
msgid "Move left <<"
msgstr ""
#: pronterface.py:9
32
#: pronterface.py:9
47
msgid "Move right >>"
msgstr ""
#: pronterface.py:9
36
#: pronterface.py:9
51
msgid "Remove custom button '%s'"
msgstr ""
#: pronterface.py:9
39
#: pronterface.py:9
54
msgid "Add custom button"
msgstr ""
#: pronterface.py:10
84
#: pronterface.py:10
99
msgid "event object missing"
msgstr ""
#: pronterface.py:11
12
#: pronterface.py:11
27
msgid "Invalid period given."
msgstr ""
#: pronterface.py:11
15
#: pronterface.py:11
30
msgid "Monitoring printer."
msgstr ""
#: pronterface.py:11
17
#: pronterface.py:11
32
msgid "Done monitoring."
msgstr ""
#: pronterface.py:11
39
#: pronterface.py:11
54
msgid "Printer is online. "
msgstr ""
#: pronterface.py:11
41 pronterface.py:1317 pronterface.py:1372
#: pronterface.py:11
56 pronterface.py:1331
msgid "Loaded "
msgstr ""
#: pronterface.py:11
44
#: pronterface.py:11
59
msgid "Bed"
msgstr ""
#: pronterface.py:11
44
#: pronterface.py:11
59
msgid "Hotend"
msgstr ""
#: pronterface.py:11
54
#: pronterface.py:11
69
msgid " SD printing:%04.2f %%"
msgstr ""
#: pronterface.py:11
57
#: pronterface.py:11
72
msgid " Printing:%04.2f %% |"
msgstr ""
#: pronterface.py:1158
msgid " Line# "
msgstr ""
#: pronterface.py:1158
msgid " lines |"
msgstr ""
#: pronterface.py:1158
msgid "of "
msgstr ""
#: pronterface.py:1163
msgid " Est: "
msgstr ""
#: pronterface.py:1164
msgid " of: "
#: pronterface.py:1173
msgid " Line# %d of %d lines |"
msgstr ""
#: pronterface.py:11
65
msgid "
R
emaining | "
#: pronterface.py:11
78
msgid "
Est: %s of %s r
emaining | "
msgstr ""
#: pronterface.py:11
66
#: pronterface.py:11
80
msgid " Z: %0.2f mm"
msgstr ""
#: pronterface.py:12
33
#: pronterface.py:12
47
msgid "Opening file failed."
msgstr ""
#: pronterface.py:12
39
#: pronterface.py:12
53
msgid "Starting print"
msgstr ""
#: pronterface.py:12
62
#: pronterface.py:12
76
msgid "Pick SD file"
msgstr ""
#: pronterface.py:12
62
#: pronterface.py:12
76
msgid "Select the file to print"
msgstr ""
#: pronterface.py:1
297
#: pronterface.py:1
311
msgid "Failed to execute slicing software: "
msgstr ""
#: pronterface.py:13
04
#: pronterface.py:13
18
msgid "Slicing..."
msgstr ""
#: pronterface.py:13
17 pronterface.py:1372
#: pronterface.py:13
31
msgid ", %d lines"
msgstr ""
#: pronterface.py:13
24
#: pronterface.py:13
38
msgid "Load File"
msgstr ""
#: pronterface.py:13
31
#: pronterface.py:13
45
msgid "Slicing "
msgstr ""
#: pronterface.py:13
50
#: pronterface.py:13
64
msgid "Open file to print"
msgstr ""
#: pronterface.py:13
51
#: pronterface.py:13
65
msgid "OBJ, STL, and GCODE files (;*.gcode;*.gco;*.g;*.stl;*.STL;*.obj;*.OBJ;)"
msgstr ""
#: pronterface.py:13
58
#: pronterface.py:13
72
msgid "File not found!"
msgstr ""
#: pronterface.py:1382
msgid ""
"mm of filament used in this print\n"
msgstr ""
#: pronterface.py:1383
msgid ""
"mm in X\n"
"and is"
#: pronterface.py:1386
msgid "Loaded %s, %d lines"
msgstr ""
#: pronterface.py:13
83 pronterface.py:1384
#: pronterface.py:13
96
msgid ""
"mm wide\n"
msgstr ""
#: pronterface.py:1383 pronterface.py:1384 pronterface.py:1385
msgid "mm to"
msgstr ""
#: pronterface.py:1383 pronterface.py:1384 pronterface.py:1385
msgid "the print goes from"
"mm of filament used in this print\n"
msgstr ""
#: pronterface.py:13
84
#: pronterface.py:13
97
msgid ""
"
mm in Y
\n"
"and is"
"
the print goes from %f mm to %f mm in X
\n"
"and is
%f mm wide\n
"
msgstr ""
#: pronterface.py:13
85
#: pronterface.py:13
98
msgid ""
"mm high\n"
"the print goes from %f mm to %f mm in Y\n"
"and is %f mm wide\n"
msgstr ""
#: pronterface.py:13
85
#: pronterface.py:13
99
msgid ""
"mm in Z\n"
"and is"
"
the print goes from %f mm to %f
mm in Z\n"
"and is
%f mm high\n
"
msgstr ""
#: pronterface.py:1
386
#: pronterface.py:1
400
msgid "Estimated duration (pessimistic): "
msgstr ""
#: pronterface.py:14
10
#: pronterface.py:14
24
msgid "No file loaded. Please use load first."
msgstr ""
#: pronterface.py:14
21
#: pronterface.py:14
35
msgid "Restart"
msgstr ""
#: pronterface.py:14
25
#: pronterface.py:14
39
msgid "File upload complete"
msgstr ""
#: pronterface.py:14
44
#: pronterface.py:14
58
msgid "Pick SD filename"
msgstr ""
#: pronterface.py:14
52
#: pronterface.py:14
66
msgid "Paused."
msgstr ""
#: pronterface.py:14
62
#: pronterface.py:14
76
msgid "Resume"
msgstr ""
#: pronterface.py:14
78
#: pronterface.py:14
92
msgid "Connecting..."
msgstr ""
#: pronterface.py:15
09
#: pronterface.py:15
23
msgid "Disconnected."
msgstr ""
#: pronterface.py:15
36
#: pronterface.py:15
50
msgid "Reset."
msgstr ""
#: pronterface.py:15
37
#: pronterface.py:15
51
msgid "Are you sure you want to reset the printer?"
msgstr ""
#: pronterface.py:15
37
#: pronterface.py:15
51
msgid "Reset?"
msgstr ""
#: pronterface.py:15
83
#: pronterface.py:15
97
msgid "Save"
msgstr ""
#: pronterface.py:16
39
#: pronterface.py:16
53
msgid "Edit settings"
msgstr ""
#: pronterface.py:16
41
#: pronterface.py:16
55
msgid "Defaults"
msgstr ""
#: pronterface.py:16
70
#: pronterface.py:16
84
msgid "Custom button"
msgstr ""
#: pronterface.py:16
75
#: pronterface.py:16
89
msgid "Button title"
msgstr ""
#: pronterface.py:16
78
#: pronterface.py:16
92
msgid "Command"
msgstr ""
#: pronterface.py:1
687
#: pronterface.py:1
701
msgid "Color"
msgstr ""
pronterface.py
View file @
2afaf4c6
...
...
@@ -224,7 +224,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if
f
>=
0
:
if
self
.
p
.
online
:
self
.
p
.
send_now
(
"M104 S"
+
l
)
print
_
(
"Setting hotend temperature to
"
),
f
,
_
(
" degrees Celsius."
)
print
_
(
"Setting hotend temperature to
%
f degrees Celsius."
)
%
f
self
.
hsetpoint
=
f
self
.
hottgauge
.
SetTarget
(
int
(
f
))
if
f
>
0
:
...
...
@@ -260,7 +260,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if
f
>=
0
:
if
self
.
p
.
online
:
self
.
p
.
send_now
(
"M140 S"
+
l
)
print
_
(
"Setting bed temperature to
"
),
f
,
_
(
" degrees Celsius."
)
print
_
(
"Setting bed temperature to
%
f degrees Celsius."
)
%
f
self
.
bsetpoint
=
f
self
.
bedtgauge
.
SetTarget
(
int
(
f
))
if
f
>
0
:
...
...
@@ -408,7 +408,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if
self
.
macros
.
has_key
(
macro
):
old_def
=
self
.
macros
[
macro
]
elif
hasattr
(
self
.
__class__
,
"do_"
+
macro
):
print
_
(
"Name '
"
)
+
macro
+
_
(
"' is being used by built-in command"
)
print
_
(
"Name '
%
s' is being used by built-in command"
)
%
macro
return
elif
len
([
c
for
c
in
macro
if
not
c
.
isalnum
()
and
c
!=
"_"
]):
print
_
(
"Macro name may contain only alphanumeric symbols and underscores"
)
...
...
@@ -1170,14 +1170,13 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if
self
.
p
.
printing
:
fractioncomplete
=
float
(
self
.
p
.
queueindex
)
/
len
(
self
.
p
.
mainqueue
)
string
+=
_
(
" Printing:
%04.2
f
%%
|"
)
%
(
100
*
float
(
self
.
p
.
queueindex
)
/
len
(
self
.
p
.
mainqueue
),)
string
+=
_
(
" Line#
"
)
+
str
(
self
.
p
.
queueindex
)
+
_
(
"of "
)
+
str
(
len
(
self
.
p
.
mainqueue
))
+
_
(
" lines |"
)
string
+=
_
(
" Line#
%
d of
%
d lines |"
)
%
(
self
.
p
.
queueindex
,
len
(
self
.
p
.
mainqueue
)
)
if
fractioncomplete
>
0.0
:
secondselapsed
=
int
(
time
.
time
()
-
self
.
starttime
)
secondsestimate
=
secondselapsed
/
fractioncomplete
secondsremain
=
secondsestimate
-
secondselapsed
string
+=
_
(
" Est: "
)
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsremain
))
string
+=
_
(
" of: "
)
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsestimate
))
string
+=
_
(
" Remaining | "
)
string
+=
_
(
" Est:
%
s of
%
s remaining | "
)
%
(
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsremain
)),
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsestimate
)))
string
+=
_
(
" Z:
%0.2
f mm"
)
%
self
.
curlayer
wx
.
CallAfter
(
self
.
status
.
SetStatusText
,
string
)
wx
.
CallAfter
(
self
.
gviz
.
Refresh
)
...
...
@@ -1384,7 +1383,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
of
=
open
(
self
.
filename
)
self
.
f
=
[
i
.
replace
(
"
\n
"
,
""
)
.
replace
(
"
\r
"
,
""
)
for
i
in
of
]
of
.
close
self
.
status
.
SetStatusText
(
_
(
"Loaded
"
)
+
name
+
_
(
",
%
d lines"
)
%
(
len
(
self
.
f
),
))
self
.
status
.
SetStatusText
(
_
(
"Loaded
%
s,
%
d lines"
)
%
(
name
,
len
(
self
.
f
)
))
wx
.
CallAfter
(
self
.
printbtn
.
SetLabel
,
_
(
"Print"
))
wx
.
CallAfter
(
self
.
pausebtn
.
SetLabel
,
_
(
"Pause"
))
wx
.
CallAfter
(
self
.
pausebtn
.
Disable
)
...
...
@@ -1395,9 +1394,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
def
loadviz
(
self
):
Xtot
,
Ytot
,
Ztot
,
Xmin
,
Xmax
,
Ymin
,
Ymax
,
Zmin
,
Zmax
=
pronsole
.
measurements
(
self
.
f
)
print
pronsole
.
totalelength
(
self
.
f
),
_
(
"mm of filament used in this print
\n
"
)
print
_
(
"the print goes from
"
),
Xmin
,
_
(
"mm to"
),
Xmax
,
_
(
"mm in X
\n
and is"
),
Xtot
,
_
(
"mm wide
\n
"
)
print
_
(
"the print goes from
"
),
Ymin
,
_
(
"mm to"
),
Ymax
,
_
(
"mm in Y
\n
and is"
),
Ytot
,
_
(
"mm wide
\n
"
)
print
_
(
"the print goes from
"
),
Zmin
,
_
(
"mm to"
),
Zmax
,
_
(
"mm in Z
\n
and is"
),
Ztot
,
_
(
"mm high
\n
"
)
print
_
(
"the print goes from
%
f mm to
%
f mm in X
\n
and is
%
f mm wide
\n
"
)
%
(
Xmin
,
Xmax
,
Xtot
)
print
_
(
"the print goes from
%
f mm to
%
f mm in Y
\n
and is
%
f mm wide
\n
"
)
%
(
Ymin
,
Ymax
,
Ytot
)
print
_
(
"the print goes from
%
f mm to
%
f mm in Z
\n
and is
%
f mm high
\n
"
)
%
(
Zmin
,
Zmax
,
Ztot
)
print
_
(
"Estimated duration (pessimistic): "
),
pronsole
.
estimate_duration
(
self
.
f
)
#import time
#t0=time.time()
...
...
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