add time diff plugin
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
# extract icons from dll on windows
|
||||
# https://mail.python.org/pipermail/python-win32/2009-April/009078.html
|
||||
import sys
|
||||
|
||||
import PySide6.QtCore
|
||||
from PySide6.QtWidgets import QApplication, QWidget, QHBoxLayout, QComboBox, QMainWindow
|
||||
|
||||
# Prints PySide6 version
|
||||
print(PySide6.__version__)
|
||||
|
||||
# Prints the Qt version used to compile PySide6
|
||||
print(PySide6.QtCore.__version__)
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user