]> git.saurik.com Git - wxWidgets.git/blame - distrib/gtk/README.txt
Updates to the wxPython distribution builders
[wxWidgets.git] / distrib / gtk / README.txt
CommitLineData
5664fc32
RR
1wxPython README
2---------------
3
4Introduction
5------------
6The code in this subtree is a Python Extension Module that enables the
7use of wxWindows from the Python language. So what is Python? Go to
8http://www.python.org to learn more but in a nutshell, it's an
9extremly cool object oriented language. It's easier than Perl and
10nearly as powerful. It runs on more platforms than Java, and by some
11reports, is even faster than Java with a JIT compiler!
12
13So why would you want to use wxPython over just C++ and wxWindows?
14Personally I prefer using Python for everything. I only use C++ when
15I absolutly have to eek more performance out of an algorithm, and even
16then I ususally code it as an extension module and leave the majority
17of the program in Python. Another good thing to use wxPython for is
18quick prototyping of your wxWindows apps. With C++ you have to
19continuously go though the edit-compile-link-run cycle, which can be
20quite time comsuming. With Python it is only an edit-run cycle. You
21can easily build an application in a few hours with Python that would
22normally take a few days with C++. Converting a wxPython app to a
23C++/wxWindows app should be a straight forward task.
24
25This extension module attempts to mirror the class heiarchy of
26wxWindows as closely as possble. This means that there is a wxFrame
27class in wxPython that looks, smells, tastes and acts almost the same
28as the wxFrame class in the C++ version. Unfortunatly, I wasn't able
29to match things exactly because of differences in the languages, but
30the differences should be easy to absorb because they are natural to
31Python. For example, some methods that return mutliple values via
32argument pointers in C++ will return a tuple of values in Python.
33These differences have not been documented yet so if something isn't
34working the same as described in the wxWindows documents the best
35thing to do is to scan through the wxPython sources, especially the .i
36files, as that is where the interfaces for wxPython are defined.
37
15b24b14
RR
38I have reports of successfully embedding wxPython within a wxWindows
39C++ app on GTK. It hasn't yet been attempted on MSW (to my knowledge)
40so I don't know how successful such an attempt would be. However it
41is certainly possible.
42
43
44
45Getting Help
46------------
47
48Since wxPython is a blending of multiple technologies, help comes from
49multiple sources. See the http://alldunn.com/wxPython for details on
50various sources of help, but probably the best source is the
51wxPython-users mail list. You can view the archive or subscribe by
52going to
53
54 http://starship.python.net/mailman/listinfo/wxpython-users
55
56Or you can send mail directly to the list using this address:
57
58 wxpython-users@starship.python.net
59
60
61
62What's new in 2.0b9
63-------------------
64Bug fix for ListCtrl in test4.py (Was a missing file... DSM!)
65
66Bug fix for occassional GPF on Win32 systems upon termination of a
67wxPython application.
68
69Added wxListBox.GetSelections returning selections as a Tuple.
70
71Added a wxTreeItemData that is able to hold any Python object and be
72associated with items in a wxTreeCtrl. Added test pytree.py to show
73this feature off.
74
75Added wxSafeYield function.
76
77OpenGL Canvas can be optionally compiled in to wxPython.
78
79Awesome new Demo Framework for showing off wxPython and for learning
80how it all works.
81
82The pre-built Win32 version is no longer distributing the wxWindows
83DLL. It is statically linked with the wxWindows library instead.
84
85Added a couple missing items from the docs.
86
87Added wxImage, wxImageHandler, wxPNGHandler, wxJPEGHandler,
88wxGIFHandler and wxBMPHandler.
89
90Added new methods to wxTextCtrl.
91
92
93
94What's new in 2.0b8
95-------------------
96Support for using Python threads in wxPython apps.
97
98Several missing methods from various classes.
99
100Various bug fixes.
101
102
103
104What's new in 2.0b7
105-------------------
106Added DLG_PNT and DLG_SZE convienience methods to wxWindow class.
107
108Added missing constructor and other methods for wxMenuItem.
109
110
111
112What's new in 2.0b6
113-------------------
114Just a quickie update to fix the self-installer to be compatible with
115Python 1.5.2b2's Registry settings.
116
117
118What's new in 2.0b5
119-------------------
120Well obviously the numbering scheme has changed. I did this to
121reflect the fact that this truly is the second major revision of
122wxPython, (well the third actually if you count the one I did for
123wxWindows 1.68 and then threw away...) and also that it is associated
124with the 2.0 version of wxWindows.
125
126I have finally started documenting wxPython. There are several pages
127in the wxWindows documentation tree specifically about wxPython, and I
128have added notes within the class references about where wxPython
129diverges from wxWindows.
130
131Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
132window handle. If you can get the window handle into the python code,
133it should just work... More news on this later.
134
135Added wxImageList, wxToolTip.
136
137Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
138wxRegConfig class.
139
140As usual, some bug fixes, tweaks, etc.
141
5664fc32
RR
142
143
144What's new in 0.5.3
145-------------------
146Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
147
148Various cleanup, tweaks, minor additions, etc. to maintain
149compatibility with the current wxWindows.
150
151
152
153What's new in 0.5.0
154-------------------
155Changed the import semantics from "from wxPython import *" to "from
156wxPython.wx import *" This is for people who are worried about
157namespace pollution, they can use "from wxPython import wx" and then
158prefix all the wxPython identifiers with "wx."
159
160Added wxTaskbarIcon for wxMSW.
161
162Made the events work for wxGrid.
163
164Added wxConfig.
165
166Added wxMiniFrame for wxGTK.
167
168Changed many of the args and return values that were pointers to gdi
169objects to references to reflect changes in the wxWindows API.
170
171Other assorted fixes and additions.
172
173
174
175
176What's new in 0.4.2
177-------------------
178
179wxPython on wxGTK works!!! Both dynamic and static on Linux and
180static on Solaris have been tested. Many thanks go to Harm
181<H.v.d.Heijden@phys.tue.nl> for his astute detective work on tracking
182down a nasty DECREF bug. Okay so I have to confess that it was just a
183DSM (Dumb Stupid Mistake) on my part but it was nasty none the less
184because the behavior was so different on different platforms.
185
186
187The dynamicly loaded module on Solaris is still segfaulting, so it
188must have been a different issue all along...
189
190
191
192What's New in 0.4
193-----------------
194
1951. Worked on wxGTK compatibility. It is partially working. On a
196Solaris/Sparc box wxPython is working but only when it is statically
197linked with the Python interpreter. When built as a dyamically loaded
198extension module, things start acting weirdly and it soon seg-faults.
199And on Linux both the statically linked and the dynamically linked
200version segfault shortly after starting up.
201
2022. Added Toolbar, StatusBar and SplitterWindow classes.
203
2043. Varioius bug fixes, enhancements, etc.
205
206
207
208Build Instructions
209------------------
210I used SWIG (http://www.swig.org) to create the source code for the
211extension module. This enabled me to only have to deal with a small
212amount of code and only have to bother with the exceptional issues.
213SWIG takes care of the rest and generates all the repetative code for
214me. You don't need SWIG to build the extension module as all the
215generated C++ code is included under the src directory.
216
217I added a few minor features to SWIG to control some of the code
218generation. If you want to playaround with this the patches are in
219wxPython/SWIG.patches and they should be applied to the 1.1p5 version
220of SWIG. These new patches are documented at
221http://starship.skyport.net/crew/robind/python/#swig, and they should
222also end up in the 1.2 version of SWIG.
223
224wxPython is organized as a Python package. This means that the
225directory containing the results of the build process should be a
226subdirectory of a directory on the PYTHONPATH. (And preferably should
227be named wxPython.) You can control where the build process will dump
228wxPython by setting the TARGETDIR makefile variable. The default is
229$(WXWIN)/utils/wxPython, where this README.txt is located. If you
230leave it here then you should add $(WXWIN)/utils to your PYTHONPATH.
231However, you may prefer to use something that is already on your
232PYTHONPATH, such as the site-packages directory on Unix systems.
233
234
235Win32
236-----
237
2381. Build wxWindows with wxUSE_RESOURCE_LOADING_IN_MSW set to 1 in
239include/wx/msw/setup.h so icons can be loaded dynamically. While
240there, make sure wxUSE_OWNER_DRAWN is also set to 1.
241
2422. Change into the $(WXWIN)/utils/wxPython/src directory.
243
15b24b14 2443. Edit makefile.vc and specify where your python installation is at.
5664fc32
RR
245You may also want to fiddle with the TARGETDIR variable as described
246above.
247
15b24b14 2484. Run nmake -f makefile.vc
5664fc32
RR
249
2505. If it builds successfully, congratulations! Move on to the next
251step. If not then you can try mailing me for help. Also, I will
252always have a pre-built win32 version of this extension module at
253http://starship.skyport.net/crew/robind/python.
254
2556. Change to the $(WXWIN)/utils/wxPython/tests directory.
256
2577. Try executing the test programs. Note that some of these print
258diagnositc or test info to standard output, so they will require the
259console version of python. For example:
260
261 python test1.py
262
263To run them without requiring a console, you can use the pythonw.exe
264version of Python either from the command line or from a shortcut.
265
266
267
268Unix
269----
270
15b24b14 2711. Change into the $(WXWIN)/utils/wxPython/src directory.
5664fc32
RR
272
2732. Edit Setup.in and ensure that the flags, directories, and toolkit
274options are correct. See the above commentary about TARGETDIR. There
275are a few sample Setup.in.[platform] files provided.
276
277[I've written a Setup which should work in almost all Unix systems,
278 so that the steps 1 and 2 don't have to be done. Robert Roebling. ]
279
2803. Run this command to generate a makefile:
281
282 make -f Makefile.pre.in boot
283
2844. Run these commands to build and then install the wxPython extension
285module:
286
287 make
288
2894b. Log in as root. [Robert Roebling]
15b24b14 290
5664fc32 291 make install
15b24b14
RR
292
2934c. Log out from root. [Robert Roebling]
5664fc32
RR
294
295
15b24b14 2965. Change to the $(WXWIN)/utils/wxPython/tests directory.
5664fc32
RR
297
2986. Try executing the test programs. For example:
299
300 python test1.py
301
15b24b14 302
5664fc32
RR
303------------------------
30410/20/1998
305
306Robin Dunn
307robin@alldunn.com
308
309
310