eric7/E5Gui/E5TextInputDialog.py

branch
eric7
changeset 8350
74a3b2a6a944
parent 8318
962bce857696
equal deleted inserted replaced
8348:f4775ae8f441 8350:74a3b2a6a944
8 """ 8 """
9 9
10 from PyQt6.QtWidgets import ( 10 from PyQt6.QtWidgets import (
11 QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QLineEdit 11 QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QLineEdit
12 ) 12 )
13
14 from E5Gui.E5LineEdit import E5ClearableLineEdit
15 13
16 14
17 class E5TextInputDialog(QDialog): 15 class E5TextInputDialog(QDialog):
18 """ 16 """
19 Class implementing a dialog to enter some text. 17 Class implementing a dialog to enter some text.
32 self.__layout = QVBoxLayout(self) 30 self.__layout = QVBoxLayout(self)
33 31
34 self.__label = QLabel(self) 32 self.__label = QLabel(self)
35 self.__layout.addWidget(self.__label) 33 self.__layout.addWidget(self.__label)
36 34
37 self.__lineEdit = E5ClearableLineEdit(self) 35 self.__lineEdit = QLineEdit(self)
36 self.__lineEdit.setClearButtonEnabled(True)
38 self.__layout.addWidget(self.__lineEdit) 37 self.__layout.addWidget(self.__lineEdit)
39 38
40 self.__buttonBox = QDialogButtonBox( 39 self.__buttonBox = QDialogButtonBox(
41 QDialogButtonBox.StandardButton.Ok | 40 QDialogButtonBox.StandardButton.Ok |
42 QDialogButtonBox.StandardButton.Cancel, self) 41 QDialogButtonBox.StandardButton.Cancel, self)

eric ide

mercurial