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
3b2f8c2b
Commit
3b2f8c2b
authored
Jan 19, 2012
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #159 from cakeller98/experimental
Fixed the Options dialog so input boxes re-size but labels don't
parents
813b33f2
aeaaf583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pronterface.py
pronterface.py
+6
-3
No files found.
pronterface.py
View file @
3b2f8c2b
...
...
@@ -1639,7 +1639,10 @@ class options(wx.Dialog):
topsizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
vbox
=
wx
.
StaticBoxSizer
(
wx
.
StaticBox
(
self
,
label
=
_
(
"Defaults"
))
,
wx
.
VERTICAL
)
topsizer
.
Add
(
vbox
,
1
,
wx
.
ALL
+
wx
.
EXPAND
)
grid
=
wx
.
GridSizer
(
rows
=
0
,
cols
=
2
,
hgap
=
8
,
vgap
=
2
)
grid
=
wx
.
FlexGridSizer
(
rows
=
0
,
cols
=
2
,
hgap
=
8
,
vgap
=
2
)
grid
.
SetFlexibleDirection
(
wx
.
BOTH
)
grid
.
AddGrowableCol
(
1
)
grid
.
SetNonFlexibleGrowMode
(
wx
.
FLEX_GROWMODE_SPECIFIED
)
vbox
.
Add
(
grid
,
0
,
wx
.
EXPAND
)
ctrls
=
{}
for
k
,
v
in
sorted
(
pronterface
.
settings
.
_all_settings
()
.
items
()):
...
...
@@ -1648,8 +1651,8 @@ class options(wx.Dialog):
if
k
in
pronterface
.
helpdict
:
ctrls
[
k
,
0
]
.
SetToolTipString
(
pronterface
.
helpdict
.
get
(
k
))
ctrls
[
k
,
1
]
.
SetToolTipString
(
pronterface
.
helpdict
.
get
(
k
))
grid
.
Add
(
ctrls
[
k
,
0
],
0
,
wx
.
BOTTOM
+
wx
.
RIGHT
)
grid
.
Add
(
ctrls
[
k
,
1
],
1
,
wx
.
EXPAND
)
grid
.
Add
(
ctrls
[
k
,
0
],
0
,
wx
.
ALIGN_CENTER_VERTICAL
|
wx
.
ALL
|
wx
.
ALIGN_
RIGHT
)
grid
.
Add
(
ctrls
[
k
,
1
],
1
,
wx
.
ALIGN_CENTER_VERTICAL
|
wx
.
ALL
|
wx
.
EXPAND
)
topsizer
.
Add
(
self
.
CreateSeparatedButtonSizer
(
wx
.
OK
+
wx
.
CANCEL
),
0
,
wx
.
EXPAND
)
self
.
SetSizer
(
topsizer
)
topsizer
.
Layout
()
...
...
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