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
9cd04236
Commit
9cd04236
authored
Feb 25, 2014
by
Ilya Novoselov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relax toolbar combobox and button sizes
parent
5c451301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gui.py
printrun/gui.py
+3
-3
No files found.
printrun/gui.py
View file @
9cd04236
...
@@ -45,7 +45,7 @@ def make_sized_button(*args):
...
@@ -45,7 +45,7 @@ def make_sized_button(*args):
return
make_button
(
*
args
,
size
=
buttonSize
)
return
make_button
(
*
args
,
size
=
buttonSize
)
def
make_autosize_button
(
*
args
):
def
make_autosize_button
(
*
args
):
return
make_button
(
*
args
,
size
=
(
-
1
,
buttonSize
[
1
]
),
style
=
wx
.
BU_EXACTFIT
)
return
make_button
(
*
args
,
size
=
(
-
1
,
-
1
),
style
=
wx
.
BU_EXACTFIT
)
def
make_custom_button
(
root
,
parentpanel
,
i
,
style
=
0
):
def
make_custom_button
(
root
,
parentpanel
,
i
,
style
=
0
):
btn
=
make_button
(
parentpanel
,
i
.
label
,
root
.
procbutton
,
btn
=
make_button
(
parentpanel
,
i
.
label
,
root
.
procbutton
,
...
@@ -395,7 +395,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
...
@@ -395,7 +395,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
self
.
Add
(
root
.
rescanbtn
,
0
,
wx
.
TOP
|
wx
.
LEFT
,
0
)
self
.
Add
(
root
.
rescanbtn
,
0
,
wx
.
TOP
|
wx
.
LEFT
,
0
)
root
.
serialport
=
wx
.
ComboBox
(
parentpanel
,
-
1
,
choices
=
root
.
scanserial
(),
root
.
serialport
=
wx
.
ComboBox
(
parentpanel
,
-
1
,
choices
=
root
.
scanserial
(),
style
=
wx
.
CB_DROPDOWN
,
size
=
(
-
1
,
25
)
)
style
=
wx
.
CB_DROPDOWN
)
root
.
serialport
.
SetToolTip
(
wx
.
ToolTip
(
_
(
"Select Port Printer is connected to"
)))
root
.
serialport
.
SetToolTip
(
wx
.
ToolTip
(
_
(
"Select Port Printer is connected to"
)))
root
.
rescanports
()
root
.
rescanports
()
self
.
Add
(
root
.
serialport
)
self
.
Add
(
root
.
serialport
)
...
@@ -404,7 +404,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
...
@@ -404,7 +404,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
root
.
baud
=
wx
.
ComboBox
(
parentpanel
,
-
1
,
root
.
baud
=
wx
.
ComboBox
(
parentpanel
,
-
1
,
choices
=
[
"2400"
,
"9600"
,
"19200"
,
"38400"
,
choices
=
[
"2400"
,
"9600"
,
"19200"
,
"38400"
,
"57600"
,
"115200"
,
"250000"
],
"57600"
,
"115200"
,
"250000"
],
style
=
wx
.
CB_DROPDOWN
,
size
=
(
100
,
25
))
style
=
wx
.
CB_DROPDOWN
,
size
=
(
100
,
-
1
))
root
.
baud
.
SetToolTip
(
wx
.
ToolTip
(
_
(
"Select Baud rate for printer communication"
)))
root
.
baud
.
SetToolTip
(
wx
.
ToolTip
(
_
(
"Select Baud rate for printer communication"
)))
try
:
try
:
root
.
baud
.
SetValue
(
"115200"
)
root
.
baud
.
SetValue
(
"115200"
)
...
...
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