{ "info": { "author": "Kamil \u015aliwak", "author_email": "cameel2/at/gmail/com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications :: Qt", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: User Interfaces", "Topic :: Software Development :: Widget Sets", "Topic :: Text Editors" ], "description": "=======================\nAuto-resizing text edit\n=======================\n\nAutoResizingTextEdit is a simple Qt widget based on QTextEdit. Its purpose is to automatically adjust editor height to match the text, with the help of a layout it's placed in.\n\nIt works with both Python 2 and Python 3 as well as PyQt 4 and PyQt 5 [2]_\n\nStatus\n======\n\nThe project has not undergone extensive testing on multiple platorms yet and should be considered alpha-quality. It's already feature-complete though and, due to its simplicity and emphasis on working with Qt widget system rather than subverting it, should be safe for general use.\n\nThe code has only been tested on Arch Linux so far.\n\nInstallation\n============\n\nsetup.py\n--------\n\nThe repository contains standard setup.py script (using setuptools). To install run:\n\n.. code-block:: bash\n\n python setup.py install --root=/your/python/site-packages/path --optimize=1\n\nFor a complete command reference see `setuptools documentation`_.\n\nPyPI\n----\n\nIf you're using pip you can install the package from PyPI repository: `auto-resizing-text-edit on PyPI`_\n\n.. code-block:: bash\n\n pip install auto-resizing-text-edit\n \n\nYou can install the PyQt 4 versions that way as well:\n\n.. code-block:: bash\n\n pip install git+https://github.com/cameel/auto-resizing-text-edit.git@pyqt4-v0.1.0\n\nAUR\n---\n\nIf you're using Arch Linux you can get a PKGBUILD from AUR: `python-auto-resizing-text-edit in AUR`_\n\nDependencies\n============\n\n- Python >= 2.7\n- PyQt 5 or PyQt 4 [1]_ [2]_\n\n.. [1] Note that PyQt is not listed explicitly in setup.py. That's because it can't be easily installed from PyPI and setup.py/pip fails trying to do so. Moreover, it does not provide the .egg-info which makes setuptools fail to detect it even if you have already installed it from a different source. For these reasons you're expected to install PyQt yourself, possibly from your distribution's software repository. If you're installing in a virtualenv you can use --system-site-packages option or copy globally installed PyQt to it.\n\n.. [2] Only PyQt 5 version is provided as PyPI package but you can find versions ported to PyQt 4 under tags prefixed with pyqt4 (e.g. pyqt4-v0.1.0).\n\nUsage\n=====\n\nIt's as simple as:\n\n.. code-block:: python\n\n from auto_resizing_text_edit import AutoResizingTextEdit\n\n editor = AutoResizingTextEdit()\n\nThe widget also provides a simple way to constrain its minimum width to a specific number of lines (provided that all the text in the editor uses the same font; if not, you're on your own here):\n\n.. code-block:: python\n\n editor.setMinimumLines(3)\n\nThat's all there is to it. You put it in a layout and forget about it:\n\n.. code-block:: python\n\n from PyQt5.QtWidgets import QWidget, QVBoxLayout\n\n widget = QWidget()\n editor.setParent(widget)\n\n layout = QVBoxLayout(widget)\n layout.addWidget(editor)\n layout.addStretch()\n\n widget.setLayout(layout)\n\nIf you need more or just want to see the editor in action, there are a few simple but complete examples in examples/ directory.\n\nLicense\n=======\n\nCopyright \u00a9 Kamil \u015aliwak\n\nReleased under the `MIT License`_.\n\n.. _`auto-resizing-text-edit on PyPI`: https://pypi.python.org/pypi/auto-resizing-text-edit\n.. _`python-auto-resizing-text-edit in AUR`: https://aur.archlinux.org/packages/python-auto-resizing-text-edit\n.. _`setuptools documentation`: https://pythonhosted.org/setuptools/setuptools.html#command-reference\n.. _`MIT License`: http://opensource.org/licenses/MIT\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cameel/auto-resizing-text-edit", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "auto-resizing-text-edit", "package_url": "https://pypi.org/project/auto-resizing-text-edit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/auto-resizing-text-edit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cameel/auto-resizing-text-edit" }, "release_url": "https://pypi.org/project/auto-resizing-text-edit/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A Qt widget based on QTextEdit, that changes its height automatically to accommodate the text", "version": "0.1.0" }, "last_serial": 848756, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7df271daee9553af8cdc5ac3b377b3d2", "sha256": "283d912b989d86160f047b7e987f3e2153f9f04e3f6f6e653456509df74d7507" }, "downloads": -1, "filename": "auto-resizing-text-edit-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7df271daee9553af8cdc5ac3b377b3d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5686, "upload_time": "2013-08-26T01:22:17", "url": "https://files.pythonhosted.org/packages/e5/37/a1ba3535c212e9badc697f222c87e9878004c3dfdf6b4d11e1f1b70c0f27/auto-resizing-text-edit-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7df271daee9553af8cdc5ac3b377b3d2", "sha256": "283d912b989d86160f047b7e987f3e2153f9f04e3f6f6e653456509df74d7507" }, "downloads": -1, "filename": "auto-resizing-text-edit-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7df271daee9553af8cdc5ac3b377b3d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5686, "upload_time": "2013-08-26T01:22:17", "url": "https://files.pythonhosted.org/packages/e5/37/a1ba3535c212e9badc697f222c87e9878004c3dfdf6b4d11e1f1b70c0f27/auto-resizing-text-edit-0.1.0.tar.gz" } ] }