Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Spencer Du
control software
Commits
bf0681e0
Commit
bf0681e0
authored
Nov 05, 2019
by
Spencer Du
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add menu for device import
parent
cb138566
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
GUI.py
GUI.py
+6
-3
No files found.
GUI.py
View file @
bf0681e0
...
...
@@ -47,13 +47,16 @@ class MainWindow(QtWidgets.QMainWindow):
self
.
combo
.
move
(
100
,
350
)
self
.
combo
.
resize
(
100
,
32
)
menubar
=
self
.
menuBar
()
devicesMenu
=
menubar
.
addMenu
(
"Devices"
)
def
readFile
(
fname
):
try
:
with
open
(
fname
,
"r"
)
as
f
:
for
item
in
f
:
menubar
=
self
.
menuBar
()
fileMenu
=
menubar
.
addMenu
(
'Devices'
)
deviceImport
=
QAction
(
item
,
self
)
deviceImport
.
triggered
.
connect
(
self
.
importbutton
)
fileMenu
.
addAction
(
deviceImport
)
self
.
combo
.
addItem
(
item
,
self
.
importbutton
)
except
:
print
(
"No devices active"
)
...
...
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