Skip to content

Instantly share code, notes, and snippets.

@zacdezgeo
Created August 14, 2025 16:47
Show Gist options
  • Save zacdezgeo/7cf95892fa4cd8e4f57ba687b90aabdb to your computer and use it in GitHub Desktop.
Save zacdezgeo/7cf95892fa4cd8e4f57ba687b90aabdb to your computer and use it in GitHub Desktop.
def update_band_dropdowns(self):
band_selection_items = (
get_available_bands(self.image_collection_id.text().strip(), silent=True)
or []
)
for i in range(3):
band_dropdown = self.findChild(QComboBox, f"viz_band_{i}")
current = band_dropdown.currentText()
band_dropdown.clear()
band_dropdown.addItems(band_selection_items)
band_dropdown.setCurrentText(current)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment