pyqt-rounded-corners-lineedit
PyQt QLineEdit with rounded corners
Requirements
- PyQt5 >= 5.8
Install
python -m pip install pyqt-rounded-corners-lineedit
Included Packages
- absresgetter - To get absolute path of resource file
Detailed Description
Rounded corners, borderless line edit.
If you want to add the border, add code like below.
lineEdit.setStyleSheet(lineEdit.styleSheet() + 'QLineEdit { border: 1px solid black; }')
Example
Code Sample
from PyQt5.QtWidgets import QApplication, QGridLayout, QWidget
from pyqt_rounded_corners_lineedit import RoundedCornersLineEdit
class Widget(QWidget):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
lineEdit = RoundedCornersLineEdit()
# if you want to set the border
# lineEdit.setStyleSheet(lineEdit.styleSheet() + 'QLineEdit { border: 1px solid black; }')
lay = QGridLayout()
lay.addWidget(lineEdit)
self.setLayout(lay)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
widget = Widget()
widget.show()
app.exec_()
Result
Metadata
Release files for pyqt-rounded-corners-lineedit 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyqt-rounded-corners-lineedit-0.0.11.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / pyqt-rounded-corners-lineedit-0.0.11.tar.gz
| Download URL | pyqt-rounded-corners-lineedit-0.0.11.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4287c47bf474b906e1fda30b771b82b6ad279e9dc85c82a6e9cd3c4227446a12
|
|
BLAKE2b-256 checksum How to use checksums |
3949ff7aa59f5e8435b1f5a70bc1c21f644c7304a9a77475dc94f31abd55d692
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Release files / pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl
| Download URL | pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0250572875179d9d22d80bea4c5d59a960160638a916790a660ca2c27625f4f3
|
|
BLAKE2b-256 checksum How to use checksums |
4e3ef1e490cca0227a18868db21649d9da31c692baf7a2b61855fe229b7e36fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|