{ "info": { "author": "Hiroyuki Ohsaki", "author_email": "ohsaki@lsnl.jp", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX", "Programming Language :: Python :: 3" ], "description": "# x11util Package\n\nx11util - Wrapper fucntions to make X11 low-level Xlib programming easier\n\n# DESCRIPTION\n\nThis manual page documents **x11util** module, a Python module providing\nseveral wrapper function for Xlib programming easier.\n\n# EXAMPLE\n\n```python\nimport time\nfrom Xlib import X, display\nfrom x11util import create_window, create_gcs, load_font, draw_str, flush\n\ndisp = display.Display()\nfont = load_font(disp)\nscreen = disp.screen()\nwindow = create_window(disp, screen, width=320, height=240, x=100, y=200)\ngcs = create_gcs(disp, screen, window, font)\ndraw_str(disp, screen, window, gcs, 'Hello, World!', 10, 20)\ndraw_str(disp, screen, window, gcs, 'Hello, World!', 11, 21, level=50)\nflush(disp, screen)\ntime.sleep(10)\n```\n\n# FUNCTIONS\n\n**x11util** module provides the following functions.\n\n- create_window(disp, screen, width=640, height=480, x=0, y=0, override=1, mask=X.ExposureMask)\n\n Create a new window on screen SCREEN in display DISP with given WIDTH and\n HEIGHT, which is placed at the geometry of (X, Y) using Xlib's\n XCreateWindow. override_redirect and event_mask can specified by OVERRIDE\n and MASK, respectively.\n\n- load_font(disp, font=None)\n\n Load bitmap font FONT in display DISP, and return the loaded font object.\n If font loading failed, return None.\n\n- create_gcs(disp, screen, window, font)\n\n Create GCs (Graphics Content) on screen SCREEN in display DISP for window\n WINDOW with font FONT. GCs are returned as a dictionary, whose key is the\n color name (e.g., 'SteelBlue') and the value is a dictionary, whose items\n are (LEVEL, GC), where LEVEL is a brightness between 0 and 100 and GC is the\n GC for that brightness.\n\n- clear(window)\n\n Erase the window WINDOW.\n\n- draw_str(disp, screen, window, gcs, astr, col=0, row=0, color='PaleGreen', level=100, reverse=False)\n\n Render a string ASTR on window WINDOW on screen SCREEN in display DISP using\n graphics contents GC. Text color and brightness can be specified by COLOR\n and LEVEL, respectively. Reverse video is enabled if REVERSE is True.\n\n- flush(disp, screen)\n\n Flush all pending X11 requests.\n\n# CUSTOMIZATION\n\nOn startup, **x11util** module loads per-user RC script (`~/.x11utilrc`) if it\nexists. The RC script is any valid Python script. You can change the\nbehavior of **x11util** using the RC file.\n\nAn example `~/.x11utilrc` file is as follows.\n\n```python\nglobal FONT_NAME\nFONT_NAME = '-hiro-fixed-medium-r-normal--8-80-75-75-c-80-iso646.1991-irv'\n```\n\n# INSTALLATION\n\n```python\npip3 install x11util\n```\n\n# AVAILABILITY\n\nThe latest version of **x11util** module is available at PyPI\n(https://pypi.org/project/x11util/) .\n\n# SEE ALSO\n\n- Xlib - C Language X Interface\n- python3-xlib (https://pypi.org/project/python3-xlib/)\n\n# AUTHOR\n\nHiroyuki Ohsaki \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/h-ohsaki/x11util.git", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "x11util", "package_url": "https://pypi.org/project/x11util/", "platform": "", "project_url": "https://pypi.org/project/x11util/", "project_urls": { "Homepage": "https://github.com/h-ohsaki/x11util.git" }, "release_url": "https://pypi.org/project/x11util/1.3/", "requires_dist": [ "Xlib" ], "requires_python": "", "summary": "Wrapper fucntions to make X11 low-level Xlib programming easier", "version": "1.3" }, "last_serial": 5544350, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "b4a688fff2a0f7c619018560c588ab7b", "sha256": "a9ea7feb875eaca8a0e96a09aa2d6d077b7d1990bfbea5fcaa8964b37046e758" }, "downloads": -1, "filename": "x11util-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b4a688fff2a0f7c619018560c588ab7b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16640, "upload_time": "2019-07-05T14:16:02", "url": "https://files.pythonhosted.org/packages/ac/af/93221848743285aafc626b7936ecd87e3ba015caf6c853df33041f0cfe44/x11util-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dba78015e5c8ca51054d629f97ef64d9", "sha256": "720d7a4621546d5fec0e3794e64045f02664fdbf8849efd37691a2c288d288e4" }, "downloads": -1, "filename": "x11util-1.0.tar.gz", "has_sig": false, "md5_digest": "dba78015e5c8ca51054d629f97ef64d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3804, "upload_time": "2019-07-05T14:16:05", "url": "https://files.pythonhosted.org/packages/6a/ef/b0daf302046238f15c8101d4488c6b30572b434282ed10bde3bcdfc4f1b9/x11util-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "036ce5e699e060e8610dd10650d22fd3", "sha256": "07e3c35d65af96ee38a32e032c859e6f82f8b57445240f1ce0c8929eaa009085" }, "downloads": -1, "filename": "x11util-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "036ce5e699e060e8610dd10650d22fd3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17107, "upload_time": "2019-07-09T14:32:12", "url": "https://files.pythonhosted.org/packages/ac/68/0228e75f966bb841b6bce47b8b6366111ec06ad38a361f49d9253f5d3474/x11util-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0abcb962e2408004c9fecd7460f290df", "sha256": "add066c8aab25c1ee8579e004c41b9a2d2caaeb9c54d046afab887a75be0dca3" }, "downloads": -1, "filename": "x11util-1.1.tar.gz", "has_sig": false, "md5_digest": "0abcb962e2408004c9fecd7460f290df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4237, "upload_time": "2019-07-09T14:32:14", "url": "https://files.pythonhosted.org/packages/2c/a0/e57006f4c4995b2a2a8c6543c3f582ed90c42f0e8f0c5585e77fd51a3b23/x11util-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "58e48a9ddcc075505e231cdb3cc2b997", "sha256": "44724853df24362e7cb4b5358067239aab126d79768786f63689f962875da45d" }, "downloads": -1, "filename": "x11util-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "58e48a9ddcc075505e231cdb3cc2b997", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17101, "upload_time": "2019-07-09T14:35:14", "url": "https://files.pythonhosted.org/packages/2c/e7/1a33951fb49d33646f4a87f61e5a4092939cdf164966f90f187af193229e/x11util-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1e8e317bb33b0015838865a2492abb0", "sha256": "0514ebce2fdb1341c38a80765e55fdab9b1dd40456c2261cd7ac584a23c3f404" }, "downloads": -1, "filename": "x11util-1.2.tar.gz", "has_sig": false, "md5_digest": "d1e8e317bb33b0015838865a2492abb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4234, "upload_time": "2019-07-09T14:35:16", "url": "https://files.pythonhosted.org/packages/03/14/91f108b75c226977bfe1c1735e5acd943ecf3bbca88d82e0234dc026cf0f/x11util-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "51c96414d63df5459b63f1a546046c47", "sha256": "937577049b6b214fb8b05953792a8673ac7d387be55c1d43304a5aaf17c55dca" }, "downloads": -1, "filename": "x11util-1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "51c96414d63df5459b63f1a546046c47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17137, "upload_time": "2019-07-17T06:13:33", "url": "https://files.pythonhosted.org/packages/14/f5/21b71e98f194873e45bddba6c7e08faa59ccacdc98d8615a12d218418dd2/x11util-1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76c82a2c8cbaab8cd4be023e9e421e7b", "sha256": "3e93bbe8f848bd108cc943a1735322fd6640eec6a5afe84cad6c1dc5e8cb8571" }, "downloads": -1, "filename": "x11util-1.3.tar.gz", "has_sig": false, "md5_digest": "76c82a2c8cbaab8cd4be023e9e421e7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4270, "upload_time": "2019-07-17T06:13:35", "url": "https://files.pythonhosted.org/packages/ff/96/6333c5db4457fd4d65b44fd70561e7246f6344b6c4d30189eab33a39246b/x11util-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "51c96414d63df5459b63f1a546046c47", "sha256": "937577049b6b214fb8b05953792a8673ac7d387be55c1d43304a5aaf17c55dca" }, "downloads": -1, "filename": "x11util-1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "51c96414d63df5459b63f1a546046c47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17137, "upload_time": "2019-07-17T06:13:33", "url": "https://files.pythonhosted.org/packages/14/f5/21b71e98f194873e45bddba6c7e08faa59ccacdc98d8615a12d218418dd2/x11util-1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76c82a2c8cbaab8cd4be023e9e421e7b", "sha256": "3e93bbe8f848bd108cc943a1735322fd6640eec6a5afe84cad6c1dc5e8cb8571" }, "downloads": -1, "filename": "x11util-1.3.tar.gz", "has_sig": false, "md5_digest": "76c82a2c8cbaab8cd4be023e9e421e7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4270, "upload_time": "2019-07-17T06:13:35", "url": "https://files.pythonhosted.org/packages/ff/96/6333c5db4457fd4d65b44fd70561e7246f6344b6c4d30189eab33a39246b/x11util-1.3.tar.gz" } ] }