{ "info": { "author": "Florian Diesch", "author_email": "devel@florian-diesch.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: X11 Applications :: GTK", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Natural Language :: German", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Desktop Environment :: Gnome", "Topic :: Software Development :: User Interfaces", "Topic :: System :: Software Distribution", "Topic :: Utilities" ], "description": "Peggy helps you to create GTK applicatiosn that run out-of-the-egg.\n\nIt offers functions to load ressources (like .glade files, images, locales)\nfrom a (zipped or unzipped) egg.\n\n\nPeggy is a thin layer on top of setuptools and PyGtk. It's not doing\nmuch fancy stuff but can save you from reading some docs ;-)\n\n\nLet's say we have the following module::\n\n mymodule\n |-- __init__.py\n `-- data\n |-- logo.png\n |-- main.glade\n `-- data.dat\n\n\nand want to distribute it as an EGG. Peggy helps us to use the files\nin the `data` subdirectory, no matter if mymodule is in a zipped egg\nor just somewhere in sys.path.::\n\n >>> import peggy\n\nFirst we create an instance of peggy.Peggy to handle our module::\n\n >>> p = peggy.Peggy('mymodule')\n\nNow we can load the glade file to get a gtk.glade.XML instance\nand use it to get our widgets::\n\n >>> gladefile = p.get_glade('data/test.glade')\n >>> gladefile\n \n >>> gladefile.get_widget('window1')\n \n\nNext we load the logo into a gtk.gdk.Pixbuf::\n\n >>> logo = p.get_pixbuf('data/logo.png')\n >>> logo\n \n\n\nFinally we get the contents of data.dat into a string::\n\n >>> s = p.get_string('data/test.txt')\n >>> s\n 'Just some data'", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.florian-diesch.de/software/peggy/", "keywords": "egg gtk pygtk glade gnome setuptools", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "peggy", "package_url": "https://pypi.org/project/peggy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/peggy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.florian-diesch.de/software/peggy/" }, "release_url": "https://pypi.org/project/peggy/0.02/", "requires_dist": null, "requires_python": null, "summary": "tools for working with PyGtk and setuptools", "version": "0.02" }, "last_serial": 96516, "releases": { "0.01": [], "0.02": [] }, "urls": [] }