MCPcopy Create free account
hub / github.com/echQoQ/RustSL / choose_file

Method choose_file

gui/widgets.py:64–71  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

62 self.setCurrentIndex(0)
63
64 def choose_file(self, parent=None):
65 path, _ = QFileDialog.getOpenFileName(parent, 'Select Icon File', '.', 'Icon Files (*.ico);;All Files (*)')
66 if path:
67 display_name = os.path.basename(path)
68 for i in range(self.count()):
69 if self.itemData(i) == path:
70 self.setCurrentIndex(i)
71 return
72def list_bundle_files():
73 bundle_dir = os.path.join(os.getcwd(), 'bundle')
74 if not os.path.isdir(bundle_dir):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected