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
f35ce9cf
Commit
f35ce9cf
authored
Sep 05, 2012
by
iXce
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #280 from cakeller98/experimental
Improve resizing behavior of Pronterface main window
parents
093f6a45
a868e571
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
gviz.py
printrun/gviz.py
+2
-0
pronterface.py
pronterface.py
+1
-1
No files found.
printrun/gviz.py
View file @
f35ce9cf
...
@@ -218,6 +218,8 @@ class gviz(wx.Panel):
...
@@ -218,6 +218,8 @@ class gviz(wx.Panel):
def
resize
(
self
,
event
):
def
resize
(
self
,
event
):
size
=
self
.
GetClientSize
()
size
=
self
.
GetClientSize
()
size
=
[
max
(
1.0
,
size
[
0
]),
max
(
1.0
,
size
[
1
])]
self
.
size
=
[
max
(
1.0
,
self
.
size
[
0
]),
max
(
1.0
,
self
.
size
[
1
])]
newsize
=
min
(
float
(
size
[
0
])
/
self
.
size
[
0
],
float
(
size
[
1
])
/
self
.
size
[
1
])
newsize
=
min
(
float
(
size
[
0
])
/
self
.
size
[
0
],
float
(
size
[
1
])
/
self
.
size
[
1
])
self
.
size
=
self
.
GetClientSize
()
self
.
size
=
self
.
GetClientSize
()
wx
.
CallAfter
(
self
.
zoom
,
0
,
0
,
newsize
)
wx
.
CallAfter
(
self
.
zoom
,
0
,
0
,
newsize
)
...
...
pronterface.py
View file @
f35ce9cf
...
@@ -794,7 +794,7 @@ class PronterWindow(wx.Frame, pronsole.pronsole):
...
@@ -794,7 +794,7 @@ class PronterWindow(wx.Frame, pronsole.pronsole):
self
.
graph
=
Graph
(
self
.
panel
,
wx
.
ID_ANY
)
self
.
graph
=
Graph
(
self
.
panel
,
wx
.
ID_ANY
)
lls
.
Add
(
self
.
graph
,
pos
=
(
3
,
5
),
span
=
(
3
,
3
))
lls
.
Add
(
self
.
graph
,
pos
=
(
3
,
5
),
span
=
(
3
,
3
))
lls
.
Add
(
self
.
tempdisp
,
pos
=
(
6
,
0
),
span
=
(
1
,
1
))
lls
.
Add
(
self
.
tempdisp
,
pos
=
(
6
,
0
),
span
=
(
1
,
9
))
self
.
gviz
=
gviz
.
gviz
(
self
.
panel
,
(
300
,
300
),
self
.
gviz
=
gviz
.
gviz
(
self
.
panel
,
(
300
,
300
),
build_dimensions
=
self
.
build_dimensions_list
,
build_dimensions
=
self
.
build_dimensions_list
,
...
...
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