semvec/pypi-packages huggingface dataset:
pyqt-textbox-graphics-widget 0.0.1
PyQt text box which is movable, auto-resizable by text size. Parent class is QGraphicsWidget.
License: MIT


# pyqt-textbox-graphics-widget
PyQt text box which is movable, auto-resizable by text size. Parent class is QGraphicsWidget.

## Requirements
* PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-textbox-graphics-widget`

## Usage
You can move the box if you drag any areas near the border. If you click any areas near the middle of the box, cursor will be shown to let you write something down. Box will be auto-resized by text size. (See the result below)

## Example
Code Sample
```python
from PyQt5.QtWidgets import QApplication, QGraphicsView, QGraphicsScene, QMainWindow
from pyqt_textbox_graphics_widget import TextBoxGraphicsWidget


class DiagramMainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.__initUi()

    def __initUi(self):
        view = QGraphicsView()

        self.__scene = QGraphicsScene()
        self.__scene.setSceneRect(0, 0, 400, 400)
        
        textBox = TextBoxGraphicsWidget()
        self.__scene.addItem(textBox)
        view.setScene(self.__scene)

        self.setCentralWidget(view)


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    diagramMainWindow = DiagramMainWindow()
    diagramMainWindow.show()
    sys.exit(app.exec_())
```

Result

https://user-images.githubusercontent.com/55078043/153204254-cd5776c3-54c3-47a5-9285-98229b0376b1.mp4

## See Also
* <a href="https://github.com/yjg30737/pyqt-styled-graphics-text-item-example.git">pyqt-styled-graphics-text-item-example</a> - This is based on ```QGraphicsTextItem```. In terms of usefulness, ```pyqt-styled-graphics-text-item-example``` is more inferior than this one.
pyqt-tooltip-widget 0.0.1
PyQt QWidget as a tooltip
License: MIT


# pyqt-tooltip-widget
PyQt QWidget as a tooltip

## Requirements
* PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-tooltip-widget`

## Detailed Description
This is `QWidget` which is activated like tooltip. When mouse cursor enters to the widget, `ToolTipWidget` pops up at the bottom left of the widget. Leave from the widget tooltip will be disappeared.

I made it work by catching `QEnterEvent` and `QLeaveEvent` of widget.

`ToolTipWidget` inherits `QWidget`, so you can decorate it just like `QWidget`.

### Usage

Just make instance of it like `self.toolTip = ToolTipWidget(yourWidget)`. `yourWidget` argument is the widget which you want to set tooltip of. Instance should be class variable.

### Method Overview
* `setStillOpenWhenCursorLeaveFromToolTipWidget(f: bool)` - Tooltip will be kept showing when cursor is inside the tooltip. (this is disabled by default) 
* `isStillOpenWhenCursorLeaveFromToolTipWidget() -> bool`

## Example
Code Sample
```python
from PyQt5.QtWidgets import QWidget, QMainWindow, QHBoxLayout, QPushButton, QApplication, QVBoxLayout
from pyqt_date_table_widget import DateTableWidget
from pyqt_tooltip_widget import ToolTipWidget


class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.__initUi()

    def __initUi(self):
        btn = QPushButton('Show Date Table Widget')
        lay = QHBoxLayout()
        lay.addWidget(btn)

        mainWidget = QWidget()
        mainWidget.setLayout(lay)

        ### Make tooltip start ###
        dateTableWidget = DateTableWidget() # https://github.com/yjg30737/pyqt-date-table-widget.git
        lay = QVBoxLayout()
        lay.addWidget(dateTableWidget)
        lay.setContentsMargins(0, 0, 0, 0)

        self.__tooltip = ToolTipWidget(btn)
        self.__tooltip.setFixedSize(200, 200)
        self.__tooltip.setLayout(lay)
        ### Make tooltip end ###

        self.setCentralWidget(mainWidget)


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    example = MainWindow()
    example.show()
    app.exec_()

```

Result

![image](https://user-images.githubusercontent.com/55078043/161909861-a724e0c5-4b16-4fa0-ab0b-7144b1386d82.png)
pyqt-polygon-window 0.0.1
PyQt polygon window
License: MIT


# pyqt-polygon-window
PyQt polygon window

## Requirements
PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-polygon-window`

## Included packages
<a href="https://github.com/yjg30737/pyqt-resource-helper.git">pyqt-resource-helper</a>

## Feature
* `setBorderWidth(width: int)`
* `setCornerLength(corner_length: int)`

## Example
Code Sample
```python
from PyQt5.QtWidgets import QApplication
from pyqt_polygon_window import PolygonWindow


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    pw = PolygonWindow()
    pw.show()
    app.exec_()
```

Result

![image](https://user-images.githubusercontent.com/55078043/149039804-c080d8fc-379e-4ba5-87c2-c64d53308f99.png)
django-crawfish 0.0.18
pending...
License: MIT
Requires Python: >=3.6


<p align="center">
    <a href="https://crawfish.readthedocs.io/en/latest" target="_blank" rel="noopener noreferrer">
        <img src="https://res.cloudinary.com/dmuligbfy/image/upload/c_scale,r_25,w_150/Crawfish/crawfish.png" alt="logo">
    </a>
</p>

<h1 align="center">
Django Crawfish
</h1>
<p align="center">
    <a href=""><img src="https://img.shields.io/pypi/l/django-crawfish" alt="License"></a>
    <a href=""><img src="https://img.shields.io/pypi/v/django-crawfish" alt="PyPi"></a>
    <a href=""><img src="https://img.shields.io/gitlab/pipeline/crawfordleeds/crawfish" alt="GitLab Pipeline"></a>
    <a href=""><img src="https://img.shields.io/pypi/djversions/django-crawfish" alt="Django Versions"></a>
    <a href=""><img src="https://img.shields.io/pypi/pyversions/django-crawfish" alt="Python Versions"></a>
    <a href=""><img src="https://gitlab.com/crawfordleeds/crawfish/badges/master/pipeline.svg" alt="Pipeline"></a>

</p>

<p align="center">
    <a href="https://gitlab.com/crawfordleeds/crawfish/-/commits/master"><img src="https://gitlab.com/crawfordleeds/crawfish/badges/master/coverage.svg" alt="Coverage Report"></a>
    <a href="https://codecov.io/gl/crawfordleeds/crawfish/"><img src="https://img.shields.io/codecov/c/gl/crawfordleeds/crawfish?label=Codecov%20Coverage" alt="Codecov"></a>

</p>


This project contains a collection of code I re-use for most of my Django projects and is not [yet] well suited
for public consumption.

## Documentation

[https://crawfish.readthedocs.io/en/latest](https://crawfish.readthedocs.io/en/latest)

### Installation

```bash
pip install django-crawfish
```

## Development

Install package dependencies:

```bash
pip install -e .
```

Install dev dependencies:

```bash
pip install -e '.[dev]'
```

Run tests:

```bash
python runtests.py

```

### Building Documentation

Move to the docs directory:
```sh
cd docs/
```

Build the documentation (must have dev dependencies installed):
```sh
make html
```
pyqt-number-lineedit 0.0.1
QLineEdit which allows only numeric input
License: MIT


# pyqt-number-lineedit
QLineEdit which allows only numeric input. Isn't that awesome!?

`setComma(True)` insert comma between numbers like 1,333,333... Isn't that awesome!?

## Requirements
* PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-number-lineedit`
pyqt-color-button 0.0.1
circle-shaped color button
License: MIT


# pyqt-color-button
Circle-shaped color button

## Requirements
* PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-color-button`

## Class and Method Overview

Constructor - `ColorButton(size=20, r=255, g=255, b=255)`

You can make a new instance of ColorButton like below.

`btn = ColorButton(size=40, r=0, g=0, b=0)`

Size argument is value(px) of border-radius, color is value of background-color.

With `setColor(rgb: tuple)` or `setColor(rgb: QColor)`, you can set the color after you made a new instance.

`getColor()` let you get the current color of the box.

There is `colorChanged(QColor)` signal to detect the color of box changed.

## Preview

![image](https://user-images.githubusercontent.com/55078043/160053919-29dc6e08-4709-4d5e-8f6d-74a20f365357.png)
pyqt-description-tooltip 0.0.1
PyQt QToolTip that user can add description and so on.
License: MIT


# pyqt-description-tooltip
PyQt QToolTip that user can add description and so on.

## Setup
`python -m pip install pyqt-description-tooltip`

## Usage
You can get the qt tooltip text using static method below.
```python
DescriptionToolTipGetter.getToolTip(title: str = '', shortcut: str = '', description: str = '', 
shortcut_color: str = '#AAA', description_color: str = '#AAA')
```

## Example
Code Sample
```python
from PyQt5.QtWidgets import QMainWindow, QPushButton, QApplication
from pyqt_description_tooltip import DescriptionToolTipGetter
from pyqt_style_setter import StyleSetter


class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.__initUi()

    def __initUi(self):
        btn = QPushButton('ToolTip Button')

        btn.setToolTip(DescriptionToolTipGetter.getToolTip(title='ToolTip Title', shortcut='Ctrl+T',
                                                description='ToolTip Description.',))
        self.setCentralWidget(btn)


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    example = MainWindow()
    StyleSetter.setWindowStyle(example)
    # https://github.com/yjg30737/pyqt-style-setter.git
    example.show()
    app.exec_()
```

Result

![image](https://user-images.githubusercontent.com/55078043/159687417-3a6adfe8-4f52-4b2e-ad13-4dac51f3d17c.png)
pyqt-get-selected-filter 0.0.1
Get selected filter string for QFileDialog
License: MIT


# pyqt-get-selected-filter
Get selected filter string for QFileDialog

## Setup
`python -m pip install pyqt-get-selected-filter`

## Example
```python
### code start ###
from pyqt_get_selected_filter import getSelectedFilter

lst = ['.bmp', '.jpg', '.jpeg', '.gif', '.png']
print(getSelectedFilter(lst))
### code end ###

>> (*.bmp *.jpg *.jpeg *.gif *.png) # result
```