{ "info": { "author": "Bruno THOORENS", "author_email": "bruno.thoorens@free.fr", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Desktop Environment :: Window Managers" ], "description": "TtkWidget class is the core of the yawTtk package. It loads Tile and\noverride configure function to manage both widget options and style\noptions.\n\nSupport this project\n====================\n\n.. image:: http://bruno.thoorens.free.fr/img/gratipay.png\n :target: https://gratipay.com/yawttk\n\n---\n\n.. image:: http://bruno.thoorens.free.fr/img/bitcoin.png\n\n3Jgib9SQiDLYML7QKBYtJUkHq2nyG6Z63D\n\nExtend\n------\n\nA yawTtk widget extends TtkWidget and can be configured mostly as a\nTkinter widget if its extend option is True. There are two ways to \ndisable this feature :\n\n>>> # for all widgets\n>>> customize_all_widgets(False)\n>>> # or\n>>> # for a single widget on its creation\n>>> button = Button(extend = False, text = \"Simple button\")\n\nConfigure \n--------- \n\nIn Tile, widget options and style are separated. yawTtk merges them to\nsimplify and match as possible Tkinter way of coding. Remember that it is\nonly available if extend option is True. configure funcion is called \nby __init__ and __setattr__ class method so there are 3\ndifferent ways to configure widgets.\n\n>>> # configure widget with __init__ function\n>>> button = Button(\n... style = \"custom.Toolbutton\",\n... anchor = \"center\",\n... font = (\"Tahoma\", \"8\", \"bold\"),\n... )\n>>> # or with __setattr__ function\n>>> button[\"foreground\"] = \"steelblue3\"\n>>> button[\"background\"] = \"lightgreen\"\n>>> # or even with configure function\n>>> button.configure(\n... command = exit,\n... text = \"Toolbutton\",\n... padding = (5, 1, 5, 1)\n... )\n>>> # pack and see...\n>>> button.pack(fill = \"x\", padx = 5, pady = 5)\n\n.. image:: http://bruno.thoorens.free.fr/yawttk/wiki/images/steelblue_button.png\n\nIn this example, widget style is explicitly defined. If it is not, yawTtk\ngives one according to widget type and name. Next example shows different\npossibilities of style determination by yawTtk. Notice that name\noption is not necessary because of automatic naming in Tkinter.\n\n>>> b1 = Button(extend = False, text = \"Button 1\", name = \"button001\")\n>>> # style widget is \"TButton\"\n>>> b2 = Button(extend = False, text = \"Button 2\", name = \"button002\", style = \"custom.TButton\")\n>>> # style widget is \"custom.TButton\"\n>>> b3 = Button(extend = True, text = \"Button 3\", name = \"button003\")\n>>> # style widget is \"button003.TButton\"\n>>> b4 = Button(extend = True, text = \"Button 4\", name = \"button004\", style = \"TButton\")\n>>> # style widget is \"TButton\"\n\n\n* b1 and b2 can only be configured with ttk::style configure command\n* b3 and b4 can configure themselves with __setattr__ and configure functions\n* b1 and b4 are default button i.e. modifications affect all buttons\n\nLimitations \n----------- \n\nThere are many themes defined in tile (or Tk 8.5). The winnative and xpnative ones \ndo not allow modification for all widget options. Just see the example below :\n\n>>> # other way to configure widget is to give a dictionary...\n>>> cnf = dict(\n... # relief is not supported in \"xpnative\" and \"winnative\" theme\n... relief = \"solid\",\n... # options supported by all theme\n... anchor = \"center\",\n... font = (\"Tahoma\", \"8\", \"bold\"),\n... foreground = \"steelblue3\",\n... background = \"lightgreen\",\n... command = exit,\n... text = \"Flat button\",\n... padding = (5, 1, 5, 1)\n... )\n\nFor each theme fo Tile :\n\n>>> Button(None, cnf).pack(fill = \"x\", padx = 5, pady = 5)\n\nWindows themes :\n\n.. image:: http://bruno.thoorens.free.fr/yawttk/wiki/images/winnative_flatbutton.png\n.. image:: http://bruno.thoorens.free.fr/yawttk/wiki/images/xpnative_flatbutton.png\n\nOther themes :\n\n.. image:: http://bruno.thoorens.free.fr/yawttk/wiki/images/default_flatbutton.png\n.. image:: http://bruno.thoorens.free.fr/yawttk/wiki/images/alt_flatbutton.png\n.. image:: http://bruno.thoorens.free.fr/yawttk/wiki/images/clam_flatbutton.png\n.. image:: http://bruno.thoorens.free.fr/yawttk/wiki/images/classic_flatbutton.png\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Moustikitos/yawTtk", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bruno.thoorens.free.fr", "keywords": "ttk,tile,wrapper", "license": "Copyright\u00a9 2006-2016, THOORENS Bruno, BSD licence", "maintainer": "", "maintainer_email": "", "name": "yawTtk", "package_url": "https://pypi.org/project/yawTtk/", "platform": "", "project_url": "https://pypi.org/project/yawTtk/", "project_urls": { "Download": "https://github.com/Moustikitos/yawTtk", "Homepage": "http://bruno.thoorens.free.fr" }, "release_url": "https://pypi.org/project/yawTtk/1.0.5/", "requires_dist": null, "requires_python": "", "summary": "yawTtk is a Python wrapper for Tile. It provides classes which allow the display, positioning and control of native look'n feel widgets.", "version": "1.0.5" }, "last_serial": 3043674, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "bff9afd34b25ae4e15e9276c0bdadeeb", "sha256": "62a58c5a4c4f9fa9e9981b7cf34776e852e6b5548cf39a7ef6dd03ceb6600320" }, "downloads": -1, "filename": "yawTtk-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bff9afd34b25ae4e15e9276c0bdadeeb", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 53768, "upload_time": "2015-08-06T10:25:47", "url": "https://files.pythonhosted.org/packages/bb/51/ef143917fba760ea64e1b9df2c77dc66da195f2d58f0206cf71a938517b0/yawTtk-1.0.3-py2.py3-none-any.whl" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "ac485f2aae4bf672060bbd1361891f5d", "sha256": "8c426e03471e9a3ebfe3cb98be9c7a39091e3011c1d42ee668fd39730982d818" }, "downloads": -1, "filename": "yawTtk-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ac485f2aae4bf672060bbd1361891f5d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 51341, "upload_time": "2017-07-23T21:56:33", "url": "https://files.pythonhosted.org/packages/dd/9d/0509fe6d085e5ba1b30e77b39187328f6142722a33bd68143f567c8c6df7/yawTtk-1.0.4-py2.py3-none-any.whl" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "c32fd6c546030ecacbfef891ba0897fd", "sha256": "f5b9fbb85b2363f2a1713e6622174059b497b5a104c217b936c25b0106008fd2" }, "downloads": -1, "filename": "yawTtk-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c32fd6c546030ecacbfef891ba0897fd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 52178, "upload_time": "2017-07-23T21:56:35", "url": "https://files.pythonhosted.org/packages/b4/0b/c4e9961e3d1ba2ed97a55539b6631b7eeee7c7461be31621f2f376a46ec4/yawTtk-1.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e1336e48034e8f45c4c854c02436558", "sha256": "23b6f7ca0e5744b61d0916a4f8f004af7494e967aa9ad7f8609b15e87e14ebdb" }, "downloads": -1, "filename": "yawTtk-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "1e1336e48034e8f45c4c854c02436558", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 52173, "upload_time": "2017-07-23T21:56:36", "url": "https://files.pythonhosted.org/packages/ae/49/8021693273b803f82b30d777f667123853b8377fba8bbbbffba567689c7d/yawTtk-1.0.5-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c32fd6c546030ecacbfef891ba0897fd", "sha256": "f5b9fbb85b2363f2a1713e6622174059b497b5a104c217b936c25b0106008fd2" }, "downloads": -1, "filename": "yawTtk-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c32fd6c546030ecacbfef891ba0897fd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 52178, "upload_time": "2017-07-23T21:56:35", "url": "https://files.pythonhosted.org/packages/b4/0b/c4e9961e3d1ba2ed97a55539b6631b7eeee7c7461be31621f2f376a46ec4/yawTtk-1.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e1336e48034e8f45c4c854c02436558", "sha256": "23b6f7ca0e5744b61d0916a4f8f004af7494e967aa9ad7f8609b15e87e14ebdb" }, "downloads": -1, "filename": "yawTtk-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "1e1336e48034e8f45c4c854c02436558", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 52173, "upload_time": "2017-07-23T21:56:36", "url": "https://files.pythonhosted.org/packages/ae/49/8021693273b803f82b30d777f667123853b8377fba8bbbbffba567689c7d/yawTtk-1.0.5-py3-none-any.whl" } ] }