@@ -40,20 +40,77 @@ def run(self):
40
40
fh .write (content )
41
41
42
42
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
+ """
43
100
setup (
44
101
name = 'pygubu' ,
45
102
version = VERSION ,
46
103
license = 'GPL-3' ,
47
104
author = 'Alejandro Autalán' ,
48
105
49
106
description = 'A tkinter GUI builder.' ,
50
- long_description = 'A tkinter GUI builder.' ,
107
+ long_description = long_description ,
51
108
url = 'https://github.com/alejandroautalan/pygubu' ,
52
109
53
110
packages = ['pygubu' , 'pygubu.builder' , 'pygubu.builder.widgets' ,
54
- 'pygubu.uidesigner ' , 'pygubu.uidesigner.util ' , 'pygubu.widgets ' ],
111
+ 'pygubu.widgets ' , 'pygubudesigner ' , 'pygubudesigner.util ' ],
55
112
package_data = {
56
- 'pygubu.uidesigner ' : [
113
+ 'pygubudesigner ' : [
57
114
'images/*.gif' , 'images/widgets/16x16/*.gif' ,
58
115
'images/widgets/22x22/*.gif' , 'ui/*.ui' ,
59
116
'locale/*/*/*.mo' ],
@@ -62,4 +119,16 @@ def run(self):
62
119
cmdclass = {
63
120
'install' : CustomInstall ,
64
121
},
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
+ ],
65
134
)
0 commit comments