{ "info": { "author": "alhaynes82", "author_email": "alhaynes82@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Usage\r\n~~~~~\r\n\r\nInherit WidgetStyler class:\r\n\r\n::\r\n\r\n from qt_widgetstyler import WidgetStyler\r\n ws = WidgetStyler()\r\n\r\nCreate a new category. A category is a logical separation between\r\ndifferent sections of your program\u2019s widgets, and allows you to easily\r\napply new or updated stylesheets to one or more categories\r\nsimultaneously.\r\n\r\n::\r\n\r\n ws.new_style_category('top_navigation')\r\n\r\nA custom widget group is created below the category. The custom widget\r\ngroup is a collection of individual widgets, generally of the same type\r\n(QLabel, QTableView, etc.), and all individual widget objects assigned\r\nto this custom widget group will share the same stylesheet.\r\n\r\n::\r\n\r\n ws.add_custom_widget(category='top_navigation', widget_name='top_navigation_qlabel_text')\r\n\r\nFor this category of our program, we have three QLabel widget objects\r\nwhich we wish to assign to our custom widget group, QLabel1, QLabel2,\r\nand QLabel3. We can add them individually, or together in a list.\r\n\r\nIndividually:\r\n\r\n::\r\n\r\n ws.add_widget(widget_instance=QLabel1, category='top_navigation', widget_name='top_navigation_qlabel_text')\r\n\r\nTogether:\r\n\r\n::\r\n\r\n ws.add_widgets(widget_instances_list=[QLabel2, QLabel3], category='top_navigation', widget_name='top_navigation_qlabel_text')\r\n\r\nWe now add a StyleSheet to this custom widget group, which will be\r\nshared by all the widget objects assigned to it. This only stores the\r\nStyleSheet, it does not yet apply it:\r\n\r\n::\r\n\r\n ws.add_stylesheet(category='top_navigation', widget_name='top_navigation_qlabel_text', stylesheet='QLabel { color: rgb(0, 0, 0); }')\r\n\r\nTo apply the stylesheets to our widgets, we have three options.\r\n\r\nWe can apply one widget group\u2019s stylesheets individually:\r\n\r\n::\r\n\r\n ws.apply_stylesheet(category='top_navigation', widget_name='top_navigation_qlabel_text')\r\n\r\nTo all widgets within one category:\r\n\r\n::\r\n\r\n ws.apply_category_stylesheets(category='top_navigation')\r\n\r\nOr to all of our widgets in all of our categories:\r\n\r\n::\r\n\r\n ws.apply_all_stylesheets()\r\n\r\nTo view all of your defined categories:\r\n\r\n::\r\n\r\n ws.show_categories()\r\n\r\nTo view all of your defined widgets within a single category:\r\n\r\n::\r\n\r\n ws.show_category_widgets(category='top_navigation')", "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/alhaynes82/qt_widgetstyler.git", "keywords": "Qt, PySide, QtPy", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "qt_widgetstyler", "package_url": "https://pypi.org/project/qt_widgetstyler/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/qt_widgetstyler/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/alhaynes82/qt_widgetstyler.git" }, "release_url": "https://pypi.org/project/qt_widgetstyler/0.1/", "requires_dist": null, "requires_python": null, "summary": "qt_widgetstyler is a small Python class intended to make the dynamic styling of Qt widgets via either PySide or PyQt a simpler task.", "version": "0.1" }, "last_serial": 1830895, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c6075f69596c6b3681084fb1332dfaf1", "sha256": "f4202083b0a7c7788608958d38c932a94c1f2e1b1f9dba75a225a18cb0dc5e6f" }, "downloads": -1, "filename": "qt_widgetstyler-0.1.zip", "has_sig": false, "md5_digest": "c6075f69596c6b3681084fb1332dfaf1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3202, "upload_time": "2015-11-24T07:36:37", "url": "https://files.pythonhosted.org/packages/ad/a4/c0ffa5a23eacfc0b5145b33cb9a61525186fe213ce7c0158b9026db37385/qt_widgetstyler-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c6075f69596c6b3681084fb1332dfaf1", "sha256": "f4202083b0a7c7788608958d38c932a94c1f2e1b1f9dba75a225a18cb0dc5e6f" }, "downloads": -1, "filename": "qt_widgetstyler-0.1.zip", "has_sig": false, "md5_digest": "c6075f69596c6b3681084fb1332dfaf1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3202, "upload_time": "2015-11-24T07:36:37", "url": "https://files.pythonhosted.org/packages/ad/a4/c0ffa5a23eacfc0b5145b33cb9a61525186fe213ce7c0158b9026db37385/qt_widgetstyler-0.1.zip" } ] }