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
c5e6fe22
Commit
c5e6fe22
authored
Jun 09, 2011
by
kliment
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dropdowns on Windows
parent
80b22290
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pronterface.py
pronterface.py
+3
-3
No files found.
pronterface.py
View file @
c5e6fe22
...
...
@@ -193,7 +193,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
wx
.
StaticText
(
self
.
panel
,
-
1
,
"@"
,
pos
=
(
250
,
5
))
self
.
baud
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
choices
=
[
"2400"
,
"9600"
,
"19200"
,
"38400"
,
"57600"
,
"115200"
],
style
=
wx
.
CB_
SIMPLE
|
wx
.
CB_
DROPDOWN
|
wx
.
CB_SORT
,
size
=
(
90
,
30
),
pos
=
(
275
,
0
))
style
=
wx
.
CB_DROPDOWN
|
wx
.
CB_SORT
,
size
=
(
90
,
30
),
pos
=
(
275
,
0
))
self
.
baud
.
SetValue
(
"115200"
)
self
.
connectbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
"Connect"
,
pos
=
(
380
,
0
))
self
.
connectbtn
.
SetToolTipString
(
"Connect to the printer"
)
...
...
@@ -233,7 +233,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
wx
.
StaticText
(
self
.
panel
,
-
1
,
"Heater:"
,
pos
=
(
0
,
343
))
self
.
htemp
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
choices
=
[
self
.
temps
[
i
]
+
" ("
+
i
+
")"
for
i
in
sorted
(
self
.
temps
.
keys
())],
style
=
wx
.
CB_
SIMPLE
|
wx
.
CB_
DROPDOWN
,
size
=
(
90
,
25
),
pos
=
(
45
,
337
))
style
=
wx
.
CB_DROPDOWN
,
size
=
(
90
,
25
),
pos
=
(
45
,
337
))
self
.
htemp
.
SetValue
(
"0"
)
self
.
settbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
"Set"
,
size
=
(
30
,
-
1
),
pos
=
(
135
,
335
))
self
.
settbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
do_settemp
)
...
...
@@ -241,7 +241,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
wx
.
StaticText
(
self
.
panel
,
-
1
,
"Bed:"
,
pos
=
(
0
,
373
))
self
.
btemp
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
choices
=
[
self
.
bedtemps
[
i
]
+
" ("
+
i
+
")"
for
i
in
sorted
(
self
.
temps
.
keys
())],
style
=
wx
.
CB_
SIMPLE
|
wx
.
CB_
DROPDOWN
,
size
=
(
90
,
25
),
pos
=
(
45
,
367
))
style
=
wx
.
CB_DROPDOWN
,
size
=
(
90
,
25
),
pos
=
(
45
,
367
))
self
.
btemp
.
SetValue
(
"0"
)
self
.
setbbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
"Set"
,
size
=
(
30
,
-
1
),
pos
=
(
135
,
365
))
self
.
setbbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
do_bedtemp
)
...
...
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