mirror of
https://github.com/nqrduck/nqrduck-pulseprogrammer.git
synced 2024-11-09 11:20:01 +00:00
Changed to toolbox buttons for event edit.
This commit is contained in:
parent
75aed1e2dd
commit
954a8f77b9
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ import logging
|
||||||
import functools
|
import functools
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from PyQt6.QtGui import QIcon
|
from PyQt6.QtGui import QIcon
|
||||||
from PyQt6.QtWidgets import QTableWidget, QVBoxLayout, QPushButton, QHBoxLayout, QLabel, QDialog, QLineEdit, QDialogButtonBox, QWidget, QCheckBox
|
from PyQt6.QtWidgets import QTableWidget, QVBoxLayout, QPushButton, QHBoxLayout, QLabel, QDialog, QLineEdit, QDialogButtonBox, QWidget, QCheckBox, QToolButton
|
||||||
from PyQt6.QtCore import pyqtSlot, pyqtSignal
|
from PyQt6.QtCore import pyqtSlot, pyqtSignal
|
||||||
from nqrduck.module.module_view import ModuleView
|
from nqrduck.module.module_view import ModuleView
|
||||||
from nqrduck_spectrometer.pulseparameters import BooleanOption, NumericOption
|
from nqrduck_spectrometer.pulseparameters import BooleanOption, NumericOption
|
||||||
|
@ -171,9 +171,9 @@ class EventOptionsWidget(QWidget):
|
||||||
self.event = event
|
self.event = event
|
||||||
|
|
||||||
layout = QHBoxLayout()
|
layout = QHBoxLayout()
|
||||||
self.edit_button = QPushButton("Edit")
|
self.edit_button = QToolButton()
|
||||||
self.edit_button.clicked.connect(self.edit_event)
|
self.edit_button.clicked.connect(self.edit_event)
|
||||||
self.delete_button = QPushButton("Delete")
|
self.delete_button = QToolButton()
|
||||||
self.delete_button.clicked.connect(self.create_delete_event_dialog)
|
self.delete_button.clicked.connect(self.create_delete_event_dialog)
|
||||||
layout.addWidget(self.edit_button)
|
layout.addWidget(self.edit_button)
|
||||||
layout.addWidget(self.delete_button)
|
layout.addWidget(self.delete_button)
|
||||||
|
|
Loading…
Reference in a new issue