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
d19ee50c
Commit
d19ee50c
authored
May 06, 2012
by
jezmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set top buttons to consistant (70, 25) size
parent
8a0e7033
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
pronterface.py
pronterface.py
+10
-10
No files found.
pronterface.py
View file @
d19ee50c
...
@@ -498,30 +498,30 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -498,30 +498,30 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
#lower section contains the rest of the window - manual controls, console, visualizations
#lower section contains the rest of the window - manual controls, console, visualizations
#TOP ROW:
#TOP ROW:
uts
=
self
.
uppertopsizer
=
wx
.
BoxSizer
(
wx
.
HORIZONTAL
)
uts
=
self
.
uppertopsizer
=
wx
.
BoxSizer
(
wx
.
HORIZONTAL
)
self
.
rescanbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Port"
),
s
tyle
=
wx
.
BU_EXACTFIT
)
self
.
rescanbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Port"
),
s
ize
=
(
70
,
25
)
)
self
.
rescanbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
rescanports
)
self
.
rescanbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
rescanports
)
uts
.
Add
(
self
.
rescanbtn
,
0
,
wx
.
TOP
|
wx
.
LEFT
,
0
)
uts
.
Add
(
self
.
rescanbtn
,
0
,
wx
.
TOP
|
wx
.
LEFT
,
0
)
self
.
serialport
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
self
.
serialport
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
choices
=
self
.
scanserial
(),
choices
=
self
.
scanserial
(),
style
=
wx
.
CB_DROPDOWN
)
style
=
wx
.
CB_DROPDOWN
,
size
=
(
100
,
25
)
)
self
.
rescanports
()
self
.
rescanports
()
uts
.
Add
(
self
.
serialport
)
uts
.
Add
(
self
.
serialport
)
uts
.
Add
(
wx
.
StaticText
(
self
.
panel
,
-
1
,
"@"
),
0
,
wx
.
RIGHT
|
wx
.
ALIGN_CENTER
,
0
)
uts
.
Add
(
wx
.
StaticText
(
self
.
panel
,
-
1
,
"@"
),
0
,
wx
.
RIGHT
|
wx
.
ALIGN_CENTER
,
0
)
self
.
baud
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
self
.
baud
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
choices
=
[
"2400"
,
"9600"
,
"19200"
,
"38400"
,
"57600"
,
"115200"
,
"250000"
],
choices
=
[
"2400"
,
"9600"
,
"19200"
,
"38400"
,
"57600"
,
"115200"
,
"250000"
],
style
=
wx
.
CB_DROPDOWN
)
style
=
wx
.
CB_DROPDOWN
,
size
=
(
100
,
25
)
)
try
:
try
:
self
.
baud
.
SetValue
(
"115200"
)
self
.
baud
.
SetValue
(
"115200"
)
self
.
baud
.
SetValue
(
str
(
self
.
settings
.
baudrate
))
self
.
baud
.
SetValue
(
str
(
self
.
settings
.
baudrate
))
except
:
except
:
pass
pass
uts
.
Add
(
self
.
baud
)
uts
.
Add
(
self
.
baud
)
self
.
connectbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Connect"
),
style
=
wx
.
BU_EXACTFIT
)
self
.
connectbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Connect"
),
size
=
(
70
,
25
)
)
uts
.
Add
(
self
.
connectbtn
)
uts
.
Add
(
self
.
connectbtn
)
self
.
connectbtn
.
SetToolTipString
(
_
(
"Connect to the printer"
))
self
.
connectbtn
.
SetToolTipString
(
_
(
"Connect to the printer"
))
self
.
connectbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
connect
)
self
.
connectbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
connect
)
self
.
resetbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Reset"
),
style
=
wx
.
BU_EXACTFIT
)
self
.
resetbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Reset"
),
size
=
(
70
,
25
)
)
self
.
resetbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
reset
)
self
.
resetbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
reset
)
uts
.
Add
(
self
.
resetbtn
)
uts
.
Add
(
self
.
resetbtn
)
#self.minibtn=wx.Button(self.panel,-1,_("Mini mode"),style=wx.BU_EXACTFIT)
#self.minibtn=wx.Button(self.panel,-1,_("Mini mode"),style=wx.BU_EXACTFIT)
...
@@ -535,22 +535,22 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -535,22 +535,22 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
#SECOND ROW
#SECOND ROW
ubs
=
self
.
upperbottomsizer
=
uts
#wx.BoxSizer(wx.HORIZONTAL)
ubs
=
self
.
upperbottomsizer
=
uts
#wx.BoxSizer(wx.HORIZONTAL)
self
.
loadbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Load file"
),
style
=
wx
.
BU_EXACTFIT
)
self
.
loadbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Load file"
),
size
=
(
70
,
25
)
)
self
.
loadbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
loadfile
)
self
.
loadbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
loadfile
)
ubs
.
Add
(
self
.
loadbtn
)
ubs
.
Add
(
self
.
loadbtn
)
self
.
platebtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Compose"
),
style
=
wx
.
BU_EXACTFIT
)
self
.
platebtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Compose"
),
size
=
(
70
,
25
)
)
self
.
platebtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
plate
)
self
.
platebtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
plate
)
#self.printerControls.append(self.uploadbtn)
#self.printerControls.append(self.uploadbtn)
ubs
.
Add
(
self
.
platebtn
)
ubs
.
Add
(
self
.
platebtn
)
self
.
sdbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"SD"
),
style
=
wx
.
BU_EXACTFIT
)
self
.
sdbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"SD"
),
size
=
(
70
,
25
)
)
self
.
sdbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
sdmenu
)
self
.
sdbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
sdmenu
)
self
.
printerControls
.
append
(
self
.
sdbtn
)
self
.
printerControls
.
append
(
self
.
sdbtn
)
ubs
.
Add
(
self
.
sdbtn
)
ubs
.
Add
(
self
.
sdbtn
)
self
.
printbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Print"
),
style
=
wx
.
BU_EXACTFIT
)
self
.
printbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Print"
),
size
=
(
70
,
25
)
)
self
.
printbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
printfile
)
self
.
printbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
printfile
)
self
.
printbtn
.
Disable
()
self
.
printbtn
.
Disable
()
ubs
.
Add
(
self
.
printbtn
)
ubs
.
Add
(
self
.
printbtn
)
self
.
pausebtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Pause"
),
style
=
wx
.
BU_EXACTFIT
)
self
.
pausebtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Pause"
),
size
=
(
70
,
25
)
)
self
.
pausebtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
pause
)
self
.
pausebtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
pause
)
ubs
.
Add
(
self
.
pausebtn
)
ubs
.
Add
(
self
.
pausebtn
)
#Right full view
#Right full view
...
...
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