25 lines
603 B
Python
25 lines
603 B
Python
# extract icons from dll on windows
|
|
# https://mail.python.org/pipermail/python-win32/2009-April/009078.html
|
|
import sys
|
|
|
|
from PySide6.QtWidgets import QApplication, QWidget, QHBoxLayout, QComboBox, QMainWindow
|
|
|
|
|
|
def text_changed():
|
|
print("text changed")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = QApplication(sys.argv)
|
|
window = QMainWindow()
|
|
|
|
query_field = QComboBox()
|
|
query_field.setEditable(True)
|
|
query_field.setInsertPolicy(QComboBox.InsertAtTop)
|
|
query_field.lineEdit().textChanged.connect(text_changed)
|
|
window.setCentralWidget(query_field)
|
|
|
|
window.show()
|
|
|
|
app.exec()
|