added menus
parent
74b554015c
commit
82271182ba
|
@ -1,4 +1,5 @@
|
||||||
from PySide6 import QtWidgets
|
from PySide6 import QtWidgets
|
||||||
|
import gui_helper
|
||||||
import util
|
import util
|
||||||
|
|
||||||
app = QtWidgets.QApplication([])
|
app = QtWidgets.QApplication([])
|
||||||
|
@ -43,7 +44,8 @@ class Window(QtWidgets.QMainWindow):
|
||||||
elif inner == None:
|
elif inner == None:
|
||||||
menu_item.addSeparator()
|
menu_item.addSeparator()
|
||||||
else:
|
else:
|
||||||
menu_item.addAction(inner)
|
item = menu_item.addAction(inner)
|
||||||
|
item.triggered.connect(gui_helper.data())
|
||||||
|
|
||||||
|
|
||||||
#TODO: This needs to run in a thread but Qt really doesn't want it to. There are two ways around this:
|
#TODO: This needs to run in a thread but Qt really doesn't want it to. There are two ways around this:
|
||||||
|
|
Reference in New Issue