Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions Gui/QtGUIutils/QtStartWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
QWidget,
QMessageBox,
QLineEdit,
QRadioButton
QRadioButton,
QCompleter,
)
from Gui.QtGUIutils.Loading import LoadingThread
from Gui.QtGUIutils.QtFwCheckDetails import QtFwCheckDetails
Expand All @@ -34,6 +35,7 @@
cooler
)
from icicle.icicle.instrument_cluster import DummyInstrument
from Gui.QtGUIutils.TestSearchCombo import configure_test_combo
from InnerTrackerTests.TestSequences import TestList


Expand Down Expand Up @@ -263,7 +265,6 @@ def createHead(self):
testlayout = QGridLayout()
TestLabel = QLabel("Test:")
self.TestCombo = QComboBox()
# self.TestList = getAllTests(self.master.connection)
self.TestList = TestList
if not self.master.instruments:
if "AllScan" in self.TestList:
Expand All @@ -274,6 +275,24 @@ def createHead(self):
self.TestList.remove("FullSequence")

self.TestCombo.addItems(self.TestList)
try:
self.TestCombo.setEditable(True)
# Clear any current edit text so the field appears empty
self.TestCombo.setEditText("")
self.TestCombo.setMaxVisibleItems(12)

le = self.TestCombo.lineEdit()
if le is not None:
le.setPlaceholderText("Select a test...")
except Exception:
logger.debug("Failed to clear TestCombo default text or set placeholder")
# Make the combo searchable: configure fuzzy completer in a helper
try:
completer, proxy, controller = configure_test_combo(self.TestCombo, self.TestList, parent=self)
self._test_completer = completer
self._test_controller = controller
except Exception:
logger.debug("Failed to configure TestCombo completer:\n" + traceback.format_exc())
TestLabel.setBuddy(self.TestCombo)

testlayout.addWidget(TestLabel, 0, 0, 1, 1)
Expand Down Expand Up @@ -363,6 +382,7 @@ def createMain(self):
module.SerialEdit.editingFinished.connect(self.txt_entry.clear)
module.SerialEdit.editingFinished.connect(lambda:self.customTxtCheck.setChecked(False))


def radio_selected(self, replaceArgs:tuple):
erroredFlag = False
for moduleBox in self.BeBoardWidget.getModules():
Expand Down
Loading
Loading