{ "info": { "author": "Serguei Kalentchouk", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "## InputFormDialog\nInputFormDialog is a simple module that provides a multi-type input dialog for Qt5.\n\nThe purpose of the InputFormDialog is to compliment the static get methods of the [QInputDialog](https://doc-snapshots.qt.io/qtforpython/PySide2/QtWidgets/QInputDialog.html) such as `QInputDialog.getText` or `QInputDialog.getInt`.\n\n### Details\nUsing InputFormDialog is simple. First create a dictionary that will define the form entries and their default values. If the order of input widgets is important, use `OrderedDict`.\n\nCurrently the following input queries are supported:\n- boolean\n- color\n- numeric\n- text\n- options list\n- 2d/3d vector\n\nSecond, call the `get_input()` function and pass the data object as an argument. If the user accepts the dialog then the data object will hold the new values chosen by the user.\n\nAdditionally, you might want to create `FormOptions` object and specify some of the options that control the properties of widgets used by the dialog.\n\nCurrently the following options are available:\n- set numeric limits, step and decimal precision\n- set whether combo box or radio button group is used\n- set whether the combo box / radio button group returns current item text or index\n\n### Example\n```python\n# QApplication must be running prior to calling get_input\nfrom collections import OrderedDict\nfrom Qt import QtGui, QtWidgets\n\nfrom input_form_dialog import FormOptions, get_input\n\n# Define form inputs\ndata = OrderedDict()\ndata[\"Bool\"] = True\ndata['Color'] = QtGui.QColor('red')\ndata['Int'] = 1\ndata['String'] = 'Test'\ndata['ComboBox'] = ['One', 'Two']\ndata['Vector2'] = QtGui.QVector2D(10.0, 5.0)\n\n# Define form options\noptions = FormOptions()\noptions.list_displays_as_radios = True\noptions.list_returns_index = True\n\n# Ask user for input and retrieve data\nif get_input('Example', data, options):\n print(data['Bool'])\n print(data['Color'])\n print(data['Int'])\n print(data['String'])\n print(data['ComboBox'])\n print(data['Vector2'])\n```\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/serguei-k/input-form-dialog/tree/master/python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "input-form-dialog", "package_url": "https://pypi.org/project/input-form-dialog/", "platform": "", "project_url": "https://pypi.org/project/input-form-dialog/", "project_urls": { "Homepage": "https://github.com/serguei-k/input-form-dialog/tree/master/python" }, "release_url": "https://pypi.org/project/input-form-dialog/1.0.1/", "requires_dist": [ "Qt.py" ], "requires_python": "", "summary": "InputFormDialog provides a simple multi-type input dialog for Qt5", "version": "1.0.1" }, "last_serial": 4097549, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e5196a693c24ae9c1f6a95fe66ea70b7", "sha256": "90abfebaed1258d3d447ed9124c44aec05c47d0255a35462211c4d73a436a010" }, "downloads": -1, "filename": "input_form_dialog-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e5196a693c24ae9c1f6a95fe66ea70b7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4351, "upload_time": "2018-07-24T08:15:14", "url": "https://files.pythonhosted.org/packages/a1/1c/f4261f76f58e38a0f809559a7af77bc5df9ef7521e744b9eac5c3f4ff677/input_form_dialog-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44cf9470e57e4ceb85dfaeaec39b03c0", "sha256": "90f331a0f488f01830be575741936b2ae637f1f1b86c254791b0010bb6140765" }, "downloads": -1, "filename": "input_form_dialog-1.0.0.tar.gz", "has_sig": false, "md5_digest": "44cf9470e57e4ceb85dfaeaec39b03c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3973, "upload_time": "2018-07-24T08:15:15", "url": "https://files.pythonhosted.org/packages/37/71/eb5ebcd0a11d7f891dcacb2d50a56397261fcf164e0e965fef33d6daafeb/input_form_dialog-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8d0e3c994faa283cb7e93bdde6278334", "sha256": "46f36e18beb5a1d595dbaad34c3ebee3527b50a93811eb97b343c776b4abb03f" }, "downloads": -1, "filename": "input_form_dialog-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "8d0e3c994faa283cb7e93bdde6278334", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4357, "upload_time": "2018-07-24T16:09:30", "url": "https://files.pythonhosted.org/packages/c2/e8/7213888cbb5124e5e218450473a195635275cf6ee5628359ea63d93ddead/input_form_dialog-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81b183977a792642483166d3f8e1c59f", "sha256": "f6d4470cff9692dbdc4deeb1e015680162ff27a2d2cdacdcfce4c072a1d84769" }, "downloads": -1, "filename": "input_form_dialog-1.0.1.tar.gz", "has_sig": false, "md5_digest": "81b183977a792642483166d3f8e1c59f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4081, "upload_time": "2018-07-24T16:09:31", "url": "https://files.pythonhosted.org/packages/06/c0/cb40b59e98fa88fc76df5995d925ee649a8fb0863260d94e3eb57fac32c6/input_form_dialog-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8d0e3c994faa283cb7e93bdde6278334", "sha256": "46f36e18beb5a1d595dbaad34c3ebee3527b50a93811eb97b343c776b4abb03f" }, "downloads": -1, "filename": "input_form_dialog-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "8d0e3c994faa283cb7e93bdde6278334", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4357, "upload_time": "2018-07-24T16:09:30", "url": "https://files.pythonhosted.org/packages/c2/e8/7213888cbb5124e5e218450473a195635275cf6ee5628359ea63d93ddead/input_form_dialog-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81b183977a792642483166d3f8e1c59f", "sha256": "f6d4470cff9692dbdc4deeb1e015680162ff27a2d2cdacdcfce4c072a1d84769" }, "downloads": -1, "filename": "input_form_dialog-1.0.1.tar.gz", "has_sig": false, "md5_digest": "81b183977a792642483166d3f8e1c59f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4081, "upload_time": "2018-07-24T16:09:31", "url": "https://files.pythonhosted.org/packages/06/c0/cb40b59e98fa88fc76df5995d925ee649a8fb0863260d94e3eb57fac32c6/input_form_dialog-1.0.1.tar.gz" } ] }