]> git.saurik.com Git - wxWidgets.git/blame - distrib/gtk/README.txt
Now passes FILE* to wxExprDatabase instead of ofstream to compy with recent
[wxWidgets.git] / distrib / gtk / README.txt
CommitLineData
5664fc32
RR
1wxPython README
2---------------
3
da175b2c
RR
4Welcome to the wonderful world of wxPython!
5
6Once you have installed the wxPython extension module, you can try it
7out by going to the [install dir]\wxPython\demo directory and typing:
8
9 python demo.py
10
11There are also some other sample files there for you to play with and
12learn from.
13
14If you selected to install the documentation then point your browser
15to [install dir]\wxPython\docs\index.htm and you will then be looking
16at the docs for wxWindows. For the most part you can use the C++ docs
17as most classes and methods are used identically. Where there are
18differences they are documented with a "wxPython Note."
19
20On Win32 systems the binary self-installer creates a program group on
21the Start Menu that contains a link to running the demo and a link to
22the help file. To help you save disk space I'm now using Microsoft's
23HTML Help format. If your system doesn't know what to do with the help
24file, you can install the HTML Help Viewer as part of IE 4+, NT
25Service Pack 4+, or the HTML Workshop at
26http://msdn.microsoft.com/workshop/author/htmlhelp/download.asp.
15b24b14
RR
27
28
29
30Getting Help
31------------
32
33Since wxPython is a blending of multiple technologies, help comes from
34multiple sources. See the http://alldunn.com/wxPython for details on
35various sources of help, but probably the best source is the
36wxPython-users mail list. You can view the archive or subscribe by
37going to
38
39 http://starship.python.net/mailman/listinfo/wxpython-users
40
41Or you can send mail directly to the list using this address:
42
43 wxpython-users@starship.python.net
44
da175b2c
RR
45----------------------------------------------------------------------
46
47
48What's new in 2.1b1
49--------------------
50Fixed wxComboBox.SetSelection so that it actually sets the selected
51item. (Actually just removed it from wxPython and let it default to
52wxChoice.SetSelection which was already doing the right thing.)
53
54Added the Printing Framework.
55
56Switched back to using the wxWindows DLL for the pre-built Win32
57version. The problem was needing to reinitialize static class info
58data after loading each extension module.
59
60Lots of little tweaks and additions to reflect changes to various
61wxWindows classes.
62
63Fixed a bug with attaching objects to tree items. Actually was a
64symptom of a larger problem with not obtaining the interpreter lock
65when doing any Py_DECREFs.
66
67wxSizer and friends. Sizers are layout tools that manage a colection
68of windows and sizers. Different types of sizers apply different
69types of layout algorithms. You saw it here first! These classes are
70not even in the wxWindows C++ library yet!
71
15b24b14
RR
72
73
74What's new in 2.0b9
75-------------------
76Bug fix for ListCtrl in test4.py (Was a missing file... DSM!)
77
78Bug fix for occassional GPF on Win32 systems upon termination of a
79wxPython application.
80
81Added wxListBox.GetSelections returning selections as a Tuple.
82
83Added a wxTreeItemData that is able to hold any Python object and be
84associated with items in a wxTreeCtrl. Added test pytree.py to show
85this feature off.
86
87Added wxSafeYield function.
88
89OpenGL Canvas can be optionally compiled in to wxPython.
90
91Awesome new Demo Framework for showing off wxPython and for learning
92how it all works.
93
94The pre-built Win32 version is no longer distributing the wxWindows
95DLL. It is statically linked with the wxWindows library instead.
96
97Added a couple missing items from the docs.
98
99Added wxImage, wxImageHandler, wxPNGHandler, wxJPEGHandler,
100wxGIFHandler and wxBMPHandler.
101
102Added new methods to wxTextCtrl.
103
104
105
106What's new in 2.0b8
107-------------------
108Support for using Python threads in wxPython apps.
109
110Several missing methods from various classes.
111
112Various bug fixes.
113
114
115
116What's new in 2.0b7
117-------------------
118Added DLG_PNT and DLG_SZE convienience methods to wxWindow class.
119
120Added missing constructor and other methods for wxMenuItem.
121
122
123
124What's new in 2.0b6
125-------------------
126Just a quickie update to fix the self-installer to be compatible with
127Python 1.5.2b2's Registry settings.
128
129
130What's new in 2.0b5
131-------------------
132Well obviously the numbering scheme has changed. I did this to
133reflect the fact that this truly is the second major revision of
134wxPython, (well the third actually if you count the one I did for
135wxWindows 1.68 and then threw away...) and also that it is associated
136with the 2.0 version of wxWindows.
137
138I have finally started documenting wxPython. There are several pages
139in the wxWindows documentation tree specifically about wxPython, and I
140have added notes within the class references about where wxPython
141diverges from wxWindows.
142
143Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
144window handle. If you can get the window handle into the python code,
145it should just work... More news on this later.
146
147Added wxImageList, wxToolTip.
148
149Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
150wxRegConfig class.
151
152As usual, some bug fixes, tweaks, etc.
153
5664fc32
RR
154
155
156What's new in 0.5.3
157-------------------
158Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
159
160Various cleanup, tweaks, minor additions, etc. to maintain
161compatibility with the current wxWindows.
162
163
164
165What's new in 0.5.0
166-------------------
167Changed the import semantics from "from wxPython import *" to "from
168wxPython.wx import *" This is for people who are worried about
169namespace pollution, they can use "from wxPython import wx" and then
170prefix all the wxPython identifiers with "wx."
171
172Added wxTaskbarIcon for wxMSW.
173
174Made the events work for wxGrid.
175
176Added wxConfig.
177
178Added wxMiniFrame for wxGTK.
179
180Changed many of the args and return values that were pointers to gdi
181objects to references to reflect changes in the wxWindows API.
182
183Other assorted fixes and additions.
184
185
186
187
188What's new in 0.4.2
189-------------------
190
191wxPython on wxGTK works!!! Both dynamic and static on Linux and
192static on Solaris have been tested. Many thanks go to Harm
193<H.v.d.Heijden@phys.tue.nl> for his astute detective work on tracking
194down a nasty DECREF bug. Okay so I have to confess that it was just a
195DSM (Dumb Stupid Mistake) on my part but it was nasty none the less
196because the behavior was so different on different platforms.
197
198
199The dynamicly loaded module on Solaris is still segfaulting, so it
200must have been a different issue all along...
201
202
203
204What's New in 0.4
205-----------------
206
2071. Worked on wxGTK compatibility. It is partially working. On a
208Solaris/Sparc box wxPython is working but only when it is statically
209linked with the Python interpreter. When built as a dyamically loaded
210extension module, things start acting weirdly and it soon seg-faults.
211And on Linux both the statically linked and the dynamically linked
212version segfault shortly after starting up.
213
2142. Added Toolbar, StatusBar and SplitterWindow classes.
215
2163. Varioius bug fixes, enhancements, etc.
217
218
219
220Build Instructions
221------------------
222I used SWIG (http://www.swig.org) to create the source code for the
223extension module. This enabled me to only have to deal with a small
224amount of code and only have to bother with the exceptional issues.
225SWIG takes care of the rest and generates all the repetative code for
226me. You don't need SWIG to build the extension module as all the
227generated C++ code is included under the src directory.
228
229I added a few minor features to SWIG to control some of the code
230generation. If you want to playaround with this the patches are in
231wxPython/SWIG.patches and they should be applied to the 1.1p5 version
232of SWIG. These new patches are documented at
233http://starship.skyport.net/crew/robind/python/#swig, and they should
234also end up in the 1.2 version of SWIG.
235
236wxPython is organized as a Python package. This means that the
237directory containing the results of the build process should be a
238subdirectory of a directory on the PYTHONPATH. (And preferably should
239be named wxPython.) You can control where the build process will dump
240wxPython by setting the TARGETDIR makefile variable. The default is
241$(WXWIN)/utils/wxPython, where this README.txt is located. If you
242leave it here then you should add $(WXWIN)/utils to your PYTHONPATH.
243However, you may prefer to use something that is already on your
244PYTHONPATH, such as the site-packages directory on Unix systems.
245
246
247Win32
248-----
249
2501. Build wxWindows with wxUSE_RESOURCE_LOADING_IN_MSW set to 1 in
251include/wx/msw/setup.h so icons can be loaded dynamically. While
252there, make sure wxUSE_OWNER_DRAWN is also set to 1.
253
2542. Change into the $(WXWIN)/utils/wxPython/src directory.
255
15b24b14 2563. Edit makefile.vc and specify where your python installation is at.
5664fc32
RR
257You may also want to fiddle with the TARGETDIR variable as described
258above.
259
15b24b14 2604. Run nmake -f makefile.vc
5664fc32
RR
261
2625. If it builds successfully, congratulations! Move on to the next
263step. If not then you can try mailing me for help. Also, I will
264always have a pre-built win32 version of this extension module at
265http://starship.skyport.net/crew/robind/python.
266
2676. Change to the $(WXWIN)/utils/wxPython/tests directory.
268
2697. Try executing the test programs. Note that some of these print
270diagnositc or test info to standard output, so they will require the
271console version of python. For example:
272
273 python test1.py
274
275To run them without requiring a console, you can use the pythonw.exe
276version of Python either from the command line or from a shortcut.
277
278
279
280Unix
281----
282
15b24b14 2831. Change into the $(WXWIN)/utils/wxPython/src directory.
5664fc32
RR
284
2852. Edit Setup.in and ensure that the flags, directories, and toolkit
286options are correct. See the above commentary about TARGETDIR. There
287are a few sample Setup.in.[platform] files provided.
288
289[I've written a Setup which should work in almost all Unix systems,
290 so that the steps 1 and 2 don't have to be done. Robert Roebling. ]
291
2923. Run this command to generate a makefile:
293
294 make -f Makefile.pre.in boot
295
2964. Run these commands to build and then install the wxPython extension
297module:
298
299 make
300
3014b. Log in as root. [Robert Roebling]
15b24b14 302
5664fc32 303 make install
15b24b14
RR
304
3054c. Log out from root. [Robert Roebling]
5664fc32
RR
306
307
15b24b14 3085. Change to the $(WXWIN)/utils/wxPython/tests directory.
5664fc32
RR
309
3106. Try executing the test programs. For example:
311
312 python test1.py
313
15b24b14 314
5664fc32
RR
315------------------------
31610/20/1998
317
318Robin Dunn
319robin@alldunn.com
320
321
322