Skip to content

Commit c31a9a9

Browse files
Update setup file.
1 parent e7e9f14 commit c31a9a9

File tree

1 file changed

+72
-3
lines changed

1 file changed

+72
-3
lines changed

setup.py

+72-3
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,77 @@ def run(self):
4040
fh.write(content)
4141

4242

43+
long_description = \
44+
"""
45+
Welcome to pygubu a GUI designer for tkinter
46+
============================================
47+
48+
Pygubu is a RAD tool to enable quick & easy development of user interfaces
49+
for the python tkinter module.
50+
51+
The user interfaces designed are saved as XML, and by using the pygubu builder
52+
these can be loaded by applications dynamically as needed.
53+
Pygubu is inspired by Glade.
54+
55+
56+
Installation
57+
------------
58+
59+
Pygubu requires python >= 2.7 (Tested only in python 2.7.3 and 3.2.3 with tk8.5)
60+
61+
Download and extract the tarball. Open a console in the extraction path and execute:
62+
63+
::
64+
65+
python setup.py install
66+
67+
68+
Usage
69+
-----
70+
71+
Create an UI definition using pygubu and save it to a file. Then, create
72+
your aplication script as shown below:
73+
74+
::
75+
76+
#test.py
77+
import tkinter as tk
78+
import pygubu
79+
80+
class Application:
81+
def __init__(self, master):
82+
83+
#1: Create a builder
84+
self.builder = builder = pugubu.Builder()
85+
86+
#2: Load an ui file
87+
builder.add_from_file('test.ui')
88+
89+
#3: Create the widget using a master as parent
90+
self.mainwindow = builder.get_object('mainwindow', master)
91+
92+
if __name__ == '__main__':
93+
root = tk.Tk()
94+
app = Application(root)
95+
root.mainloop()
96+
97+
98+
See the examples directory or watch this hello world example on video http://youtu.be/wuzV9P8geDg
99+
"""
43100
setup(
44101
name='pygubu',
45102
version=VERSION,
46103
license='GPL-3',
47104
author='Alejandro Autalán',
48105
author_email='[email protected]',
49106
description='A tkinter GUI builder.',
50-
long_description='A tkinter GUI builder.',
107+
long_description=long_description,
51108
url='https://github.com/alejandroautalan/pygubu',
52109

53110
packages=['pygubu', 'pygubu.builder', 'pygubu.builder.widgets',
54-
'pygubu.uidesigner', 'pygubu.uidesigner.util', 'pygubu.widgets'],
111+
'pygubu.widgets', 'pygubudesigner', 'pygubudesigner.util'],
55112
package_data={
56-
'pygubu.uidesigner': [
113+
'pygubudesigner': [
57114
'images/*.gif', 'images/widgets/16x16/*.gif',
58115
'images/widgets/22x22/*.gif', 'ui/*.ui',
59116
'locale/*/*/*.mo'],
@@ -62,4 +119,16 @@ def run(self):
62119
cmdclass={
63120
'install': CustomInstall,
64121
},
122+
classifiers=[
123+
"Programming Language :: Python",
124+
"Programming Language :: Python :: 2.7",
125+
"Programming Language :: Python :: 3",
126+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
127+
"Operating System :: OS Independent",
128+
"Development Status :: 4 - Beta",
129+
"Intended Audience :: Developers",
130+
"Topic :: Software Development :: Libraries :: Python Modules",
131+
"Topic :: Utilities",
132+
"Topic :: Software Development :: User Interfaces",
133+
],
65134
)

0 commit comments

Comments
 (0)