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
e9d686a5
Commit
e9d686a5
authored
May 06, 2012
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce size for buttons where text does not change
parent
523a2a4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pronterface.py
pronterface.py
+4
-4
No files found.
pronterface.py
View file @
e9d686a5
...
@@ -523,7 +523,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -523,7 +523,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
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"
),
size
=
buttonSize
)
self
.
resetbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Reset"
),
style
=
wx
.
BU_EXACTFIT
,
size
=
(
-
1
,
buttonSize
[
1
])
)
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)
...
@@ -537,14 +537,14 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -537,14 +537,14 @@ 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"
),
size
=
buttonSize
)
self
.
loadbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Load file"
),
style
=
wx
.
BU_EXACTFIT
,
size
=
(
-
1
,
buttonSize
[
1
])
)
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"
),
size
=
buttonSize
)
self
.
platebtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"Compose"
),
style
=
wx
.
BU_EXACTFIT
,
size
=
(
-
1
,
buttonSize
[
1
])
)
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"
),
size
=
buttonSize
)
self
.
sdbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
_
(
"SD"
),
style
=
wx
.
BU_EXACTFIT
,
size
=
(
-
1
,
buttonSize
[
1
])
)
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
)
...
...
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