Commit bf0681e0 authored by Spencer Du's avatar Spencer Du

add menu for device import

parent cb138566
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment