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
f63e3800
Commit
f63e3800
authored
Nov 29, 2011
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #108 from cakeller98/master
Added Current Z-Height to the status message.
parents
a09633a2
225d6165
Changes
1
Show 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 @
f63e3800
...
@@ -122,10 +122,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -122,10 +122,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
def
startcb
(
self
):
def
startcb
(
self
):
self
.
starttime
=
time
.
time
()
self
.
starttime
=
time
.
time
()
print
"Print Started at: "
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
localtime
(
self
.
starttime
))
def
endcb
(
self
):
def
endcb
(
self
):
if
(
self
.
p
.
queueindex
==
0
):
if
(
self
.
p
.
queueindex
==
0
):
print
"Print took "
+
str
(
int
(
time
.
time
()
-
self
.
starttime
)
/
60
)
+
" minutes "
+
str
(
int
(
time
.
time
()
-
self
.
starttime
)
%
60
)
+
" seconds."
print
"Print ended at: "
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
localtime
(
time
.
time
()))
print
"and took: "
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
int
(
time
.
time
()
-
self
.
starttime
)))
#+str(int(time.time()-self.starttime)/60)+" minutes "+str(int(time.time()-self.starttime)%60)+" seconds."
wx
.
CallAfter
(
self
.
pausebtn
.
Disable
)
wx
.
CallAfter
(
self
.
pausebtn
.
Disable
)
wx
.
CallAfter
(
self
.
printbtn
.
SetLabel
,
_
(
"Print"
))
wx
.
CallAfter
(
self
.
printbtn
.
SetLabel
,
_
(
"Print"
))
...
@@ -1099,11 +1101,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -1099,11 +1101,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
secondsremain
=
secondsestimate
-
secondselapsed
secondsremain
=
secondsestimate
-
secondselapsed
string
+=
_
(
" Est: "
)
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsremain
))
string
+=
_
(
" Est: "
)
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsremain
))
string
+=
_
(
" of: "
)
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsestimate
))
string
+=
_
(
" of: "
)
+
time
.
strftime
(
'
%
H:
%
M:
%
S'
,
time
.
gmtime
(
secondsestimate
))
string
+=
_
(
" Remaining"
)
string
+=
_
(
" Remaining | "
)
#string+= _(" Est:%02.0f") % (int(secondsremain/60),)
string
+=
_
(
" Z:
%0.2
f mm"
)
%
self
.
curlayer
#string+= _(":%02.0f") % (int(secondsremain%60),)
#string+= _(" of %02.0f") % (int(secondsestimate/60),)
#string+= _(":%02.0f Remaining") % (int(secondsestimate%60),)
wx
.
CallAfter
(
self
.
status
.
SetStatusText
,
string
)
wx
.
CallAfter
(
self
.
status
.
SetStatusText
,
string
)
wx
.
CallAfter
(
self
.
gviz
.
Refresh
)
wx
.
CallAfter
(
self
.
gviz
.
Refresh
)
if
(
self
.
monitor
and
self
.
p
.
online
):
if
(
self
.
monitor
and
self
.
p
.
online
):
...
...
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