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
8c8e7b9d
Commit
8c8e7b9d
authored
Mar 25, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make temp display wrap around
parent
852d47d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
gui.py
printrun/gui.py
+13
-4
No files found.
printrun/gui.py
View file @
8c8e7b9d
...
...
@@ -228,9 +228,18 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None, mini_mode
root
.
bedtgauge
.
Bind
(
wx
.
EVT_MOUSEWHEEL
,
bedgauge_scroll_setpoint
)
## Temperature (M105) feedback display
# TODO: make it wrap around
root
.
tempdisp
=
wx
.
StaticText
(
parentpanel
,
-
1
,
""
)
add
(
"tempdisp"
,
root
.
tempdisp
)
root
.
tempdisp
=
wx
.
StaticText
(
parentpanel
,
-
1
,
""
,
style
=
wx
.
ST_NO_AUTORESIZE
)
def
on_tempdisp_size
(
evt
):
root
.
tempdisp
.
Wrap
(
root
.
tempdisp
.
GetSize
()
.
width
)
root
.
tempdisp
.
Bind
(
wx
.
EVT_SIZE
,
on_tempdisp_size
)
def
tempdisp_setlabel
(
label
):
wx
.
StaticText
.
SetLabel
(
root
.
tempdisp
,
label
)
root
.
tempdisp
.
Wrap
(
root
.
tempdisp
.
GetSize
()
.
width
)
root
.
tempdisp
.
SetSize
(
root
.
tempdisp
.
GetBestSize
())
root
.
tempdisp
.
SetLabel
=
tempdisp_setlabel
add
(
"tempdisp"
,
root
.
tempdisp
,
flag
=
wx
.
EXPAND
)
## Temperature graph
...
...
@@ -700,7 +709,7 @@ class MainWindow(wx.Frame):
self
.
lowersizer
,
mini_mode
=
mini
)
left_pane
.
Layout
()
# required to get correct rows/cols counts
left_sizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
left_sizer
.
Add
(
left_pane
,
0
)
left_sizer
.
Add
(
left_pane
,
1
,
wx
.
EXPAND
)
leftpanel
.
SetSizer
(
left_sizer
)
self
.
lowersizer
.
Add
(
leftpanel
,
0
,
wx
.
EXPAND
)
if
not
compact
:
# Use a splitterwindow to group viz and log
...
...
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