]> git.saurik.com Git - wxWidgets.git/blame - wxPython/CHANGES.txt
root is always hidden -> no icon needed
[wxWidgets.git] / wxPython / CHANGES.txt
CommitLineData
6d75ea8f
RD
1CHANGES.txt for wxPython
2
3----------------------------------------------------------------------
4
b5a5d647
RD
52.3.3
6-----
b5a5d647
RD
7Added wxSplashScreen.
8
68320e40
RD
9Added wxGenericDirCtrl.
10
ce914f73 11Added wxMultiChoiceDialog.
68320e40 12
769a9cb2
RD
13The calltip window and autocomplete window in wxSTC will now use a
14wxPopupWindow if available so they can extend beyond the client area
15of the STC if needed.
16
f74ff5ef
RD
17Finished wrapping and providing typemaps for wxInputStream and also
18added the stream ctor and other methods for wxImage so images can now
19be loaded from any Python "file-like" object.
20
afb810d9
RD
21Changed the img2py tool to use PNG instead of XPM for embedding image
22data in Python source code, and the generated code now uses streams to
23convert the image data to wxImage, wxBitmap, or wxIcon.
f74ff5ef 24
96de41c2
RD
25Added wxPython.lib.rcsizer which contains RowColSizer. This sizer is
26based on code from Niki Spahiev and lets you specify a row and column
27for each item, as well as optional column or row spanning. Cells with
dae710e7 28no item assigned to it are just left blank. Stretchable rows or
96de41c2
RD
29columns are specified and work the same as in wxFlexGridSizer.
30
18fc9fa3
RD
31Updated XRCed from Roman Rolinsky
32
e9159fe8
RD
33Added wxBufferedDC.
34
1a2fb4cd
RD
35Upgraded wxSTC from Scintilla 1.40 to Scintilla 1.45
36
137b5242
RD
37***---***---***---***---***---***---***---***---***---***---***---
38 UNICODE!
39
40 wxWindows and wxPython can be compiled with unicode support
41 enabled or disabled. Previous to wxPython 2.3.3 non-unicode mode
42 was always used. Starting with 2.3.3 either mode is supported,
43 but only if it is also available in wxWindow on the platform.
44 Currently wxWindows only supports unicode on MS Windows platforms,
45 but with the recent release of GTK+ 2.0 it is only a matter of
46 time until it can be done on wxGTK (Linux and other unixes) as
47 well.
48
49 When unicode is enabled, then all functions and methods in
50 wxPython that return a wxString from the C++ function will return
51 a Python unicode object, and parameters to C++ functions/methods
52 that expect a wxString can accept either a Python string or
53 unicode object. If a string object is passed then it will be
54 decoded into unicode using the converter pointed to by
55 wxConvCurrent, which will use the default system encoding. If you
56 need to use a string in some other encoding then you should
57 convert it to unicode using the Python codecs first and then pass
58 the unicode to the wxPython method.
59***---***---***---***---***---***---***---***---***---***---***---
a541c325 60
b5a5d647
RD
61
62
4268f798 632.3.2.1
71f1334b 64-------
4268f798
RD
65Changed (again) how the Python global interpreter lock is handled as
66well as the Python thread state. This time it works on SMP machines
67without barfing and is also still compatible with Python debuggers.
68
69Added some patches from library contributors.
70
71
72
71f1334b 73
ebf4302c 742.3.2
4f3449b4
RD
75-----
76Added EVT_HELP, EVT_HELP_RANGE, EVT_DETAILED_HELP,
77EVT_DETAILED_HELP_RANGE, EVT_CONTEXT_MENU, wxHelpEvent,
78wxContextMenuEvent, wxContextHelp, wxContextHelpButton, wxTipWindow,
79and a demo to show them in action.
80
fea018f8
RD
81Deprecated PyShell and PyShellWindow, added a snapshot of PyCrust (see
82http://sourceforge.net/projects/pycrust/. )
4f3449b4 83
c7e7022c 84Added the new virtual list capabilities to wxListCtrl.
4f3449b4 85
00b6c4e3 86Added a wxSTC style editor from Riaan Booysen to the sample apps.
4f3449b4 87
09f3d4e6
RD
88Added XRCed to the wxPython Tools directory, contributed by Roman
89Rolinsky.
90
91Added a new "constructor" to most of the window classes that calls the
6d19860f 92default C++ contructor, (the one with no parameters) and also added the
09f3d4e6
RD
93coresponding Create(...) method. This allows you to do a 2-step
94creation of windows which is sometimes required for doing things such
95as setting extended style flags before the window is created, or for
96passing the object to the XRC resource system to be created from the
97resource. The name of the new "constructor" is the original name of
98the class with a "Pre" in it. For example, wxPreWindow, wxPreFrame,
99etc.
100
fe0aca37 101Updated to version 1.40 of Scintilla and updated wxStyledTextCtrl
a6978454
RD
102accordingly. While doing this update I dropped the wxLB_SORT style
103from the wxListBox created for the AutoComplete functionality. This
104means that you will have to sort the keyword lists yourself, but you
105are free to do case sensitive or case insensitive sorts and set the
106wxSTC flag accordingly.
4f3449b4 107
6d19860f
RD
108Updated wxColumnSorterMixin to also be able to place sort icons on the
109column headers, and updated the wxListCtrl demo to show it off by
110using wxColumnSorterMixin.
111
53fe40ba 112Added wxGenBitmapTextButton, TablePrint, etc. contribs from Lorne White.
ddcb3d83 113
6d8b4f8d 114Added wxNativeFontInfo and wxFontMapper.
4f3449b4 115
431f4c16 116Added pySketch to the samples.
4f3449b4 117
19a97bd6
RD
118Significantly changed how the Python interpreter lock and thread state
119are managed, which should fix the problem of running on a
120multi-processor machine.
121
76bfdc78
RD
122Added wxPyLog so log targets can be created in Python to handle log
123messages however is wished. See demo/Main.py for an example.
124
0122b7e3
RD
125Added wxFindReplaceDialog.
126
71f1334b
RD
127The second phase of OOR is implemented for wxEvtHandler, wxSizer,
128wxShape and derived classes. This means that functions and methods
129that return an object derived from wxEvtHandler that was originally
130created in Python, will return the original Python object (if it still
131exists) instead of letting SWIG wrap a new shadow object around the
132original C++ pointer.
76bfdc78 133
9d37f964
RD
134Added some optimization methods to wxDC: GetBoundingBox, DrawLineList,
135DrawPointList.
136
79f1bf32
RD
137Added a set of sophisticated Error Dialogs from Chris Fama.
138
729f4276
RD
139Added wxRightTextCtrl from Josu Oyanguren to wxPython.lib for aligning
140text in a wxTextCtrl to the right side.
76bfdc78 141
71f1334b 142Added wxURLDataObject and an example showing drag and drop of URLs to
b37c7e1d
RD
143and from web browsers. It's still not 100% bullet-proof for all types
144of browsers, but it works for the majority of cases with the popular
145browsers on Windows. On wxGTK it seems that only Netscape 4.x works,
146if anybody has any suggestions about this please bring it up on the
147wx-dev list.
148
149Added wxStopWatch.
150
151Added wxMimeTypesManager and wxFileType.
152
c0c84fa0
RD
153Passing None for the handler parameter to one of the EVT_** functions
154will now Disconnect the event.
155
156Added wxPopupWindow and wxPopupTransientWindow.
157
7dbce44a
RD
158Added wxFileHistory.
159
71f1334b 160Added wxDynamicSashWindow, which allows you to endlessly split windows
ebf4302c 161by dragging a little tab next to the scrollbars. Added a demo to show
71f1334b 162this and also the ability of multiple wxStyledTextCtrls to share the
ebf4302c
RD
163same document.
164
611dc22c
RD
165Added wxEditableListBox gizmo.
166
78e8819c
RD
167Updated wxEditor with lots of enhancements from Steve Howell and Adam
168Feuer.
169
170Added the "SplitTree gizmos" which are a collection of classes that
171were designed to operate together and provide a tree control with
172additional columns for each item. The classes are
173wxRemotelyScrolledTreeCtrl, wxTreeCompanionWindow,
174wxThinSplitterWindow, and wxSplitterScrolledWindow, some of which may
175also be useful by themselves.
1918b6f7 176
4a61305d
RD
177Added wxDllWidget from Vaclav Slavik which allows wx widgets derived
178from wxWindow to be loaded from a C++ .dll (or .so) and be used in a
179wxPython program, without the widget having to be SWIGged first. The
180visible API of the widget is limited to wxWindow methods plus a
181SendCommand method, but it is still quite powerful. See
182wxPython/contrib/dllwidget and wxPython/demo/dllwidget for more
183details.
184
b37c7e1d 185
fea018f8
RD
186
187
286e2db6 1882.3.1
bf7945ce
RD
189-----
190Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
191code can get access to the edit control when it is created, (to push
192on a custom event handler for example.)
193
d56cebe7
RD
194Added wxTextAttr class and SetStyle, SetDefaultStyle and
195GetDefaultStyle methods to wxTextCtrl.
196
197Added ability to use xml resource files. Still need to add ability to
198subclass wxXmlResourceHandler, etc...
199
200Added wxGridAutoEditMixin to the mixins library package.
201
202Made ColourSelect be derived from wxButton.
203
286e2db6
RD
204Fixed img2py to work correctly with Python 2.1.
205
206Added enhanced wxVTKRenderWindow by Prabhu Ramachandran
207
bf7945ce 208
9416aa89
RD
209
2102.3.0
19cf4f80
RD
211-----
212Removed initial startup dependency on the OpenGL DLLs so only the
9416aa89 213glcanvasc.pyd depends on them, (on wxMSW.)
19cf4f80
RD
214
215Changed wxFont, wxPen, wxBrush to not implicitly use the
9416aa89
RD
216wxThe[Font|Pen|Brush]List objects behind the scenes, but to use normal
217ctor and dtors.
19cf4f80
RD
218
219Exposed the wxThe[Font|Pen|Brush]List to wxPython.
220
1af9e5c5 221Also added wxTheColourDatabase and added a library module (in the
19cf4f80
RD
222wxPython.lib.colourdb module) to load LOTS more colour names into the
223colour database.
224
6e18ca6c
RD
225Added wxWakeUpMainThread, wxMutexGuiEnter, wxMutexGuiLeave,
226wxMutexGuiLocker and wxThread_IsMain to assist with dealing with GUI
227access from non-GUI threads.
228
1af9e5c5
RD
229wxPyOnDemandOutputWindow is now (more) thread safe if non-GUI threads
230use print, sys.stdout.write, etc.
6e18ca6c 231
6bb38ab6
RD
232Added CreateTextSizer and CreateButtonSizer to wxDialog
233
6bb38ab6
RD
234Added wxPython/lib/infoframe.py from Chris Fama. It contains a class
235that can be used in place of wxPyOnDemandOutputWindow.
236
49875c53
RD
237Added colourselect.py, imagebrowser.py and an updated calendar.py to
238wxPython/lib from Lorne White.
239
e0672e2f
RD
240Added patch to wxPoint_LIST_helper from Tim Hochberg that should make
241it gobs faster in certain situations.
6bb38ab6 242
1af9e5c5
RD
243Added tools that will take an image file in a wx supported format and
244convert it to data embedded in a Python source file. The image is
9416aa89
RD
245converted to XPM format which is essentially a list of strings
246containing info about each pixel. The image's transparency mask is
247included, if there is one, or a mask can be added if a mask colour is
248specified on the command line. It is then pickled and optionally
249compressed and written to a Python source file along with functions to
250convert it to either a wxBitmap or a wxImage. See
251wxPython/demo/images.py for examples, and wxPython/Tools/img2py.py for
252the implementation.
1af9e5c5
RD
253
254Fixed wxStyledTextCtrl to be much faster on wxGTK. There was some
255experimental code that got left in place that ended up causing way too
256many refreshes.
257
d1679124
RD
258A couple more hacks in my_distutils.py so wxPython can be built with
259the distutils that comes with Python 2.1.
1af9e5c5 260
d7ec6564 261Added a ton of missing methods for wxPrintData.
1af9e5c5 262
d7ec6564 263Switched to InnoSetup for MSW distributions.
19cf4f80 264
3b36695d
RD
265Added wxToggleButton.
266
267Fixed bug that prevented wxTreeCtrl.OnCompareItems from being called.
d1679124 268
9416aa89
RD
269Added some methods to wxGrid:
270 GetCellHighlightPenWidth
271 GetCellHighlightROPenWidth
272 SetCellHighlightPenWidth
273 SetCellHighlightROPenWidth
274 GetGridWindow
275 GetGridRowLabelWindow
276 GetGridColLabelWindow
277 GetGridCornerLabelWindow
278
279Added wxGetClientDisplayRect which on wxMSW returns a wxRect
280representing the area on screen not occupied by the taskbar and such.
281On other platforms it is equivallent to wxGetDisplaySize.
282
283
284***---***---***---***---***---***---***---***---***---***---***---
285 Implemented the first phase of OOR (Original Object Return). See
286 the text in the demo for more details of what this means, but in a
287 nutshell methods such as wxWindow.GetParent or FindWindowById will
288 now return a shadow object of the proper type if it can. By
289 "proper type" I mean that if the wxWindow pointer returned from
290 FindWindowById really points to a wxButton then the Python object
291 constructed will be of a wxButtonPtr class instead of wxWindowPtr
292 as before. This should reduce or eliminiate the need for
293 wxPyTypeCast. (Woo Hoo!) The objects returned are still not the
294 original Python object, but that is the next step. (Although it
295 will probably only work on Python 2.1 and beyond because it will
296 use weak references.)
297
298 This first phase of the OOR plan is fairly significant and has
299 required a lot of changes all over wxPython, most of which should
300 be transparent to you, however I'm not 100% sure that it didn't
301 introduce any new bugs that are hiding somewhere and didn't get
302 stomped on during my testing. So please be sure to test everything
303 thoroughly when you install this version and be sure to report any
304 object-type related oddities to me.
305***---***---***---***---***---***---***---***---***---***---***---
306
307There is now a wxObject class that most other classes derive from like
308in C++, but the methods provided don't really match but are wxPython
bf7945ce
RD
309specific. It could have been added long ago but OOR required it so it
310finally got done.
9416aa89
RD
311
312Finally added wxPyLineShape.GetLineControlPoints, which has been on my
313list for a while. The above OOR modification made this easier.
d1679124 314
10e07c70 315Fixed the __cmp__ methods for wxPoint and others.
419c299a 316
493f1553
RD
317Added wxWave.
318
30aaddfe
RD
319Added the wxPython.lib.mixins package to the library, it is where
320useful mix-in classes can be placed. Currently there is one to help
bf7945ce
RD
321make the columns in a wxListCtrl sortable, and the MagicIMageList from
322Mike Fletcher. If you have any custom code that can be factored out
323of existing classes into a mix-in that would be useful to others
30aaddfe
RD
324please send it to me for inclusion in this package.
325
25832b3f
RD
326Added a few little sample applications to help newbies to get started
327by having smaller functional apps to play with. They can be found in
328wxPython/samples.
329
493f1553 330
19cf4f80
RD
331
332
b075a3bb
RD
3332.2.6
334-----
335
336No changes happened in the Python wrappers for this release, only
337changes and fixes in the wxWindows library.
338
1b62f00d 339
19cf4f80 340
1b62f00d 3412.2.5
185d7c3e
RD
342-----
343
344New typemaps for wxString when compiling for Python 2.0 and beyond
345that allow Unicode objects to be passed as well as String objects. If
346a Unicode object is passed PyString_AsStringAndSize is used to convert
347it to a wxString using the default encoding.
348
349Fixed the generic buttons so tool tips work for them.
350
351Fixed a bug in the demo's tree control.
352
353Added a listbox to the listbox demo that shows how to find items with
1e7ecb7b 354a matching prefix as keys are typed.
185d7c3e
RD
355
356Added code to the wxListCtrl demo to show how to get text from a
357column in report mode.
358
359Added code to the toolbar demo to clear the long help from the status
360bar after 2 seconds.
361
362Added wxJoystick.
363
364Fixed wxTimer so it can be used as described in the docs, either with
365a Notify method in a subclass, or sending an event to a wxEvtHandler
366object, (usually a window.)
367
368Added wxNotifyEvent.Allow()
369
de20db99
RD
370Fixed GOBS of reference leaks.
371
1e7ecb7b
RD
372Massive code changes and cleanup to allow wxPython to be split into
373multiple extension modules again. A Python CObject is used to allow
1b62f00d
RD
374the "export" of SWIG functions and other common helper functions from
375the wxc module to other modules, even if they are in separate shared
1e7ecb7b
RD
376libraries. Should also be usable from 3rd party code, just include
377wxPython/src/export.h
378
379Changed the default setup so the following are built as separate
380extension modules: calendar, glcanvas, grid, html, ogl, stc, and
381utils. Will probably add more later.
382
1b62f00d
RD
383Changed the wxPrinterDC to use the new constructor taking a
384wxPrintData object. The old ctor is still there using the
385wxPrinterDC2 name.
386
387Added wxPython.lib.anchors.py from Riaan Booysen. It contains a class
388that implements Delphi's Anchors with wxLayoutConstraints.
389
390Added wxPython.lib.fancytext from Timothy Hochberg.
391
392Changed the GenericButtons to send their event in idle time, so the
393mouse won't be captured when the event handler is called.
394
395Added wxPython.lib.rpcMixin from Greg Landrum, although it's not
396integrated with the demo yet. It allows a wxPython GUI to be an
397XML-RPC server.
398
185d7c3e
RD
399
400
c368d904
RD
401New in 2.2.2
402------------
403
404Significantly changed how the wxStyledtextCtrl code that wraps
405Scintilla is implemented. Most of it is now automatically generated
406from an interface definition file provided by Scintilla. This means
407that it will be much easier to stay in sync with new Scintilla
408releases, but also means that some of the method and identifier names
409have changed. See wxPython/demo/data/stc.h for a copy of the C++
410interface from which the Python interface is generated. There is now
411some inline documentation in that file that should really help explain
412how things work.
413
414I am now using the Python Distutils to build wxPython and to make some
415of the distribution files. (See http://www.python.org/sigs/distutils-sig/)
416This means no more messing with my kludgy build.py/Makefile hack,
417builds will be more consistent with other Python extensions that also
418use Distutils, and will hopefully make wxPython easier to build for
419platforms where there have been troubles before. If you are building
420wxPython for Python 1.5.2 or for 1.6, then you will need to get and
421install version 1.0 of Distutils from the website above. If you are
422using Python 2.0 then you already have it.
423
424Added wxInputStream and the wxFileSystem family of classes,
425contributed by Joerg Baumann.
426
427Added wxProcess and support for it to wxExecute. wxProcess lets you
428get notified when an asyncronous child process terminates, and also to
429get input/output streams for the child process's stdout, stderr and
430stdin.
431
432Removed the old python sizers.
433
434Added __add__, __sub__ and __cmp__ (equality check only) for wxPoint
435and wxRealPoint.
436
437Changed the build to make one big extension module instead of one for
438the core and each contrib. This allowed me to do away with the
439libwxPyHelpers.so on unix systems.
440
441Lots of little fixes here and there.
442
443Some hacks on wxGTK to try and make the AutoComplete listbox in the
444wxStyledTextCtrl to behave better. It's still not as nice as on
445wxMSW, but at least it's a bit more usable now.
446
447
448
449
3ca6a5f0
BP
450New in 2.2.1
451------------
452
453Various tweaks, fixes, missing methods, etc.
454
c368d904
RD
455Added example use of wxTaskBarIcon to the demo.
456
3ca6a5f0
BP
457
458
f6bcfd97
BP
459New in 2.2.0
460------------
461
462Added wxLog and friends.
463
464Added wxFrame.ShowFullScreen for MSW.
465
466Added PyShellWindow to the wxPython.lib package.
467
468
469
470New in 2.1.16
471-------------
472
473Added an attribute named labelDelta to the generic buttons that
474specifies how far to offset the label when the button is in the
475depressed state.
476
477Added wxTipProvider and friends. See the demo for an example.
478
479wxGrid can now change the cell highlight colour.
480
481Added wxDragImage.
482
483Fixed printing on wxGTK.
484
485Added wxDateTime, wxTimeSpan, and wxDateSpan to wxPython.utils.
486
487Added wxCalendarCtrl.
488
489WARNING: A while back I asked what should be done about the Magic
490Method Names. (Methods that are automatically turned into event
491handlers by virtue of their name.) The consensus was that it is more
492confusing to have them than to try and expand them to have greater
493coverage. I am finally getting around to removing the code that
494generates the event binding. This means that if you are using any of
495the following method names without a EVT_* call that you need to
496modify your code to add the EVT_* to hook the event to the method.
497
498 OnChar
499 OnSize
500 OnEraseBackground
501 OnSysColourChanged
502 OnInitDialog
503 OnPaint
504 OnIdle
505 OnActivate
506 OnMenuHighlight
507 OnCloseWindow
508 OnScroll
509
510Added wxSpinCtrl.
511
512
513
514
515New in 2.1.15
164b735b
RD
516-------------
517
518Fixed wxTreeCtrl.HitTest to return both the tree item as well as the
519flags that clairify where the click was in relation to the item.
520
854862f5
RD
521Fixed thread state problem in wxTreeCtrl.GetBoundingBox and
522GetSelections.
164b735b 523
99ab9f3b
RD
524Fixed some problems in OGL. Also wxShape.SetClientData and
525.GetClientData can now deal with Python objects.
714d23b4 526
dcd38683 527Added wxListCtrl.SortItems and changed the demo to show how to use it.
714d23b4 528
f6bcfd97
BP
529Plugged a memory leak.
530
531Wrapped the new wxGrid and friends. The old wxGrid class is no longer
532available. There are some incompatibilities, and unfortunately the
533new classes are not documented yet, (however the methods are more
534consistent with each other now so you may be able to guess pretty
535good...)
536
537Updated filebrowsebutton.py and calendar.py with changes from their
538authors. There is now a FileBrowseButtonWithHistory class (what a
539mouthful!) and wxCalendar has printing support.
540
541Added ActiveXWrapper to the library, and some good demos of it too.
542It works great for embedding a COM (a.k.a OCX, a.k.a ActiveX) control
543in a window and calling its methods. It actually creates a new class
544on the fly that derives from wxWindow, the COM CoClass and others
545needed to make it all work. The resulting class can be instantiated
546just like wxWindow, used in sizers, etc. It also responds to all COM
547method calls, properties, etc., and if the class or a mix-in has
548matching method names, then the COM events will be propogated back to
549them.
550
551Created a typemap that allows a string to be used for parameters
552expecting a wxColour type. The string is either a colour name as
553defined in the wxColourDatabase, or a colour spec of the form
554"#RRGGBB". See the wxStyledTextCtrl demo for an example.
555
556I almost forgot to mention the wxStyledTextCtrl! Yes, the
557wxStyledTextCtrl is finally in wxPython!! (And the crowd goes
558wild...) There's no documentaTion yet (the crowd boos and hisses...)
559but I've included a very readable source file in the
560wxPython/demo/data directory, a couple fairly good examples, and you
561can also refer to the Scintilla documentaion at
562http://www.scintilla.org/ScintillaDoc.html to help fill in the gaps
563until the docs are done. (The croud murmers contentedly as the tool
564provider smiles convincingly and removes his flame-proof suit.)
565
164b735b
RD
566
567
568
9e57c2a0 569What's new in 2.1.13
6d75ea8f 570--------------------
9e57c2a0
RD
571Skipped a version number to match what has been released for wxGTK.
572
6d75ea8f
RD
573Updated wxMVCTree and added a demo for it, also fixed layout on GTK
574and some flicker problems.
575
576Added a wrapper class for the Visualization ToolKit (or VTK) in the
577wxPython.lib.vtk module. (http://www.kitware.com/)
578
579Fixed wxTreeCtrl.SetItemImage and GetItemImage to recognise the new
580"which" parameter.
581
582Added wxPython.lib.spashscreen from Mike Fletcher.
583
584Added wxPython.lib.filebrowsebutton also from Mike Fletcher.
585
586Renamed wxTreeCtrl.GetParent to GetItemParent to avoid a name clash
587with wxWindow.GetParent.
588
589Added wxIntersectRect to compute the intersection of two wxRect's.
590It is used like this:
591
592 intersect = wxIntersectRect(rect1, rect2)
593
594If r1 and r2 don't intersect then None is returned, otherwise the
595rectangle representing the intersection is returned.
596
597Some bug fixes for Clipboard and Drag-n-Drop.
598
9b3d3bc4 599Rotated text!!! WooHoo! (See wxDC.DrawRotatedText())
6999b0d8
RD
600
601Added a set of Generic Buttons to the library. These are simple
602window classes that look and act like native buttons, but you can have
603a bit more control over them. The bezel width can be set in addition
604to colours, fonts, etc. There is a ToggleButton as well as Bitmap
9e57c2a0
RD
605versions too. They should also serve as a good example of how to
606create your own classes derived from wxControl.
6d75ea8f 607
9b3d3bc4
RD
608The C++ wxToolBar classes have been redone, and so have the wxPython
609wrappers. There have been slight modifications to some of the methods
610but shouldn't impact anybody too much. I took the opportunity to add
611support for setting user data on each toolbar tool. The new AddTool
612methods look like this:
613
614 def AddTool(ID,
615 bitmap,
616 pushedBitmap = wxNullBitmap,
617 toggle = FALSE,
618 clientData = NULL,
619 shortHelpString = "",
620 longHelpString = "")
621
622 def AddSimpleTool(ID,
623 bitmap,
624 shortHelpString = "",
625 longHelpString = "",
626 toggle=FALSE)
627
628
629There are also coresponding InsertTool and InsertSimpleTool methods
630that additionally take an integer position as the first parameter.
631
9e57c2a0 632Added a wrapper for the new PCX and TIFF ImageHandlers.
9b3d3bc4
RD
633
634wxRect now simulates attributes named left, right, top and bottom.
635
d2103cf2
RD
636Removed all non wx stuff from the glcanvas module since DA's PyOpenGL
637is better and compatible with the wxGLCanvas. You can get it at
638http://starship.python.net:9673/crew/da/Code/PyOpenGL.
9b3d3bc4 639
3af4e610 640Added some missing EVT_ functions.
9b3d3bc4 641
1b55cabf
RD
642Added Dirk Holtwic's editor classes to the wxPython.lib.editor
643package.
644
eec92d76
RD
645Changed all the "LIST" parameter names to "choices" to match the docs.
646
fe366bc9
RD
647More fixes for the wxFloatBar, and it now works on wxGTK even better
648than wxMSW! (The feat is accomplished by using the wxTB_DOCKABLE
649style flag instead of trying to float it ourselves.)
650
9b3d3bc4 651
6d75ea8f
RD
652
653
654What's new in 2.1.11
655--------------------
656Skipped a few version numbers so wxMSW, wxGTK and wxPython are all
657syncronized.
658
659wxImage.SetData now makes a copy of the image data before giving it to
660wxImage. I mistakenly thought that wxImage would copy the data
661itself.
662
663Fixed wxMSW's notebook so the pages get their size set as they are
664being added. This should remove the need for our
665wxNotebook.ResizeChildren hack.
666
667wxPanels now support AutoLayout, and wxNotebooks and wxSplitterWindows
668no longer tell their children to Layout() themselves. This will
669probably only effect you if you have a wxWindow with AutoLayout inside
670a notebook or splitter. If so, either change it to a wxPanel or add
671an EVT_SIZE handler that calls Layout().
672
673Fixed deadlock problem that happened when using threads.
674
675Added new HTML printing classes.
676
677Added wxWindow.GetHandle
678
679Apparently wxMouseEvent.Position has been depreciated in wxWindows as
680it is no longer available by default. You can use GetPositionTuple
681(returning a tuple with x,y) instead, or GetPosition (returning a
682wxPoint.)
683
684Added wxPostEvent function that allows events to be posted and then
685processed later. This is a thread-safe way to interact with the GUI
686thread from other threads.
687
688Added Clipboard and Drag-and-Drop classes.
689
690Added wxFontEnumerator.
691
692Many updates to wxMenu, wxMenuBar.
693
694wxPyEvent and wxPyCommandEvent derived classes now give you the actual
695Python object in the event handler instead of a new shadow.
696
697Added a Calendar widget from Lorne White to the library.
698
699Made some fixes to the wxFloatbar. It still has some troubles on
700wxGTK...
701
702Added an MVC tree control from Bryn Keller to the library.
703
704
705
706
707What's new in 2.1.5
708-------------------
709This is a quick bug-fix release to take care of a few nasties that
710crept in at the last minute before 2.1.4 was called done. No new
711major features.
712
713
714
715What's new in 2.1.4
716--------------------
717
718This release is NOT syncronized with a snapshot release of wxGTK or
719wxMSW. For MSW this isn't much of a problem since you can get the
720binaries from the web site. For other platforms you'll have to build
721wxGTK from CVS. (See http://web.ukonline.co.uk/julian.smart/wxwin/cvs.htm)
722To get the same set of sources from CVS that I used, checkout using
723the wxPy-2-1-4 tag.
724
725Now back to what's new...
726
727Much more support for event-less callbacks and add-on modules.
728
729Created add-on module with wxOGL classes.
730
731Added wxWindow.GetChildren(). Be careful of this. It returns a *copy*
732of the list of the window's children. While you are using the list if
733anything changes in the real list (a child is deleted, etc.) then the
734list you are holding will suddenly have window references to garbage
735memory and your app will likely crash. But if you are careful it works
736great!
737
738Added a bunch of new and missing methods to wxTreeCrtl. The
739SortChildren method is now supported, but currently only for the
740default sort order.
741
742Added typemaps for wxSize, wxPoint, wxRealPoint, and wxRect that allow
743either the actual objects or Python sequence values to be used. For
744example, the following are equivallent:
745
746 win = wxWindow(parent, size = wxSize(100, 100))
747 win = wxWindow(parent, size = (100, 100))
748
749Super-charged the wxHtml module. You can now create your own tag
750handlers and also have access to the parser and cell classes. There
751is a tag handler in the library at wxPython.lib.wxpTag that
752understands the WXP tag and is able to place wxPython windows on HTML
753pages. See the demo for an example.
754
755A bunch of the methods of wxMenuBar were previously ifdef'd out for
756wxGTK. Added them back in since the methods exist now.
757
758Wrapped the wxHtmlHelpController and related classes.
759
760Wrapped the C++ versions of wxSizer and friends. The Python-only
761versions are still in the library, but depreciated. (You will get a
762warning message if you try to use them, but the warning can be
763disabled.) The usage of the C++ versions is slightly different, and
764the functionality of wxBorderSizer is now part of wxBoxSizer. I have
765added a few methods to wxSizer to try and make the transition as
766smooth as possible, I combined all Add methods into a single method
767that handles all cases, added an AddMany method, etc. One step I did
768not take was to make the default value of flag in the Add method be
769wxGROW. This would have made it more backward compatible, but less
770portable to and from wxWin C++ code. Please see the docs and demo for
771further details.
772
773Added wxPyEvent and wxPyCommandEvent classes, derived from wxEvent and
774wxCommandEvent. Each of them has SetPyData and GetPyData methods that
775accept or return a single Python object. You can use these classes
776directly or derive from them to create your own types of event objects
777that can pass through the wxWindows event system without loosing their
778Python parts (as long as they are stored with SetPyData.) Stay tuned
779for more info and examples in future releases.
780
781Added wxPython.lib.grids as an example of how to derive a new sizer
782from the C++ sizers. In this module you will find wxGridSizer and
783wxFlexGridSizer. wxGridSizer arrainges its items in a grid in which
784all the widths and heights are the same. wxFlexgridSizer allows
785different widths and heights, and you can also specify rows and/or
786columns that are growable. See the demo for a couple examples for how
787to use them.
788
789Added the wxValidator class, and created a class named wxPyValidator
790that should be used for the base class of any Python validators. See
791the demo for an example. Please note that you MUST implement a Clone
792method in your validator classes because of the way some things work
793in the underlying C++ library. I did not add wxTextValidator because
794of some issues of how it transfers data to and from a wxString, which
795in wxPython is automatically translated to and from Python strings, so
796there would never be a concrete wxString that would hang around long
797enough for the validator to do its job. On the other hand, it should
798be real easy to duplicate the functionality of wxTextValidator in a
799pure Python class derived from wxPyValidator.
800
801I've finally added a feature that has been on my list for close to two
802years! Ever wondered what that zero is for when you create your app
803object? Well now you can leave it out or explicitly set it to a true
804value. This value now controls what is to be done with sys.stdout and
805sys.stderr. A false value leaves them alone, and a true value sets
806them to an instance of wxPyOnDemandOutputWindow. (On windows the
807default is true, on unix platforms the default is false.) This class
808creates a frame containing a wxTextCtrl as soon as anything is written
809to sys.stdout or sys.stderr. If you close the window it will come
810back again the next time something is written. (You can call
811app.RestoreStdio to turn this off.) If you would rather that the stdio be
812redirected to a file, you can provide a second parameter to your app
813object's constructor that is a filename. If you want to use your own
814class instead of wxPyOnDemandOutputWindow you can either implement
815RedirectStdio() in you app class or change the value of
816wxApp.outputWindowClass like this:
817
818 class MyApp(wxApp):
819 outputWindowClass = MyClass
820
821 def OnInit(self):
822 frame = MyFrame()
823 self.SetTopWindow(frame)
824 return true
825
826Please see the implementation of wxPyOnDemandOutputWindow and wxApp in
827wx.py for more details. A few words of caution: if you are running
828your app in a debugger, changing sys.stdout and sys.stderr is likely
829to really screw things up.
830
831Added wxCaret. Unfortunately it's author has still not documented it
832in the wxWindows docs...
833
834Some new 3rd party contributions in wxPython.lib. PyShell, in
835shell.py is an interesting implementaion of an interactive Python
836shell in wxWindows. floatbar.py has a class derived from wxToolBar
837that can sense mouse drags and then reparent itself into another
838frame. Moving the new frame close to where it came from puts the tool
839bar back into the original parent. (Unfortunately there is currently
840a bug in wxGTK's wxFrame.SetToolBar so the FloatBar has some
841problems...)
842
843
844
845
846What's new in 2.1b3
847--------------------
848
849This release is syncronized with release 2.1 snapshot 9 of wxWindows.
850
851Switched to using SWIG from CVS (see http://swig.cs.uchicago.edu/cvs.html)
852for some of the new features and such. Also they have encorporated my
853patches so there is really no reason to stick with the current (very
854old) release... This version of SWIG gives the following new
855features:
856
857 1. Keyword arguments. You no longer have to specify all the
858 parameters with defaults to a method just to specify a
859 non-default value on the end. You can now do this instead:
860
861 win = wxWindow(parent, -1, style = mystyle)
862
863 2. There is now an an equivalence between Python's None and C++'s
864 NULL. This means that any methods that might return NULL will
865 now return None and you can use none where wxWindows might be
866 expecting NULL. This makes things much more snake-ish.
867
868
869There is a new build system based on a new Python program instead of
870raw makefiles. Now wxPython builds are virtually the same on MSW or
871Unix systems. See the end of this file for new build instructions and
872see distrib/build.py for more details.
873
874wxDC.Bilt now includes the useMask parameter, and has been split into
875two different versions. wxDC.BlitXY is like what was there before and
876takes raw coordinants and sizes, and the new wxDC.Blit is for the new
877interface using wxPoints and a wxSize.
878
879
880
881
882
883What's new in 2.1b2
884--------------------
885
886Added the missing wxWindow.GetUpdateRegion() method.
887
888Made a new change in SWIG (update your patches everybody) that
889provides a fix for global shadow objects that get an exception in
890their __del__ when their extension module has already been deleted.
891It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about
892line 496 if you want to do it by hand.
893
894It is now possible to run through MainLoop more than once in any one
895process. The cleanup that used to happen as MainLoop completed (and
896prevented it from running again) has been delayed until the wxc module
897is being unloaded by Python.
898
899I fixed a bunch of stuff in the C++ version of wxGrid so it wouldn't
900make wxPython look bad.
901
902wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added
903wxWindow.PopupMenuXY to be consistent with some other methods.
904
905Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace.
906
907You can now provide your own app.MainLoop method. See
908wxPython/demo/demoMainLoop.py for an example and some explaination.
909
910Got the in-place-edit for the wxTreeCtrl fixed and added some demo
911code to show how to use it.
912
913Put the wxIcon constructor back in for GTK as it now has one that
914matches MSW's.
915
916Added wxGrid.GetCells
917
918Added wxSystemSettings static methods as functions with names like
919wxSystemSettings_GetSystemColour.
920
921Removed wxPyMenu since using menu callbacks have been depreciated in
922wxWindows. Use wxMenu and events instead.
923
924Added alternate wxBitmap constructor (for MSW only) as
925 wxBitmapFromData(data, type, width, height, depth = 1)
926
927Added a helper function named wxPyTypeCast that can convert shadow
928objects of one type into shadow objects of another type. (Like doing
929a down-cast.) See the implementation in wx.py for some docs.
930
931Fixed wxImage GetData and SetData to properly use String objects for
932data transfer.
933
934Added access methods to wxGridEvent.
935
936New Makefile/Setup files supporting multiple dynamic extension modules
937for unix systems.
938
939Fixes for the wxGLCanvas demo to work around a strange bug in gtk.
940
941SWIG support routines now compiled separately instead of being bundled
942in wx.cpp.
943
944
945
946
947
948What's new in 2.1b1
949--------------------
950Fixed wxComboBox.SetSelection so that it actually sets the selected
951item. (Actually just removed it from wxPython and let it default to
952wxChoice.SetSelection which was already doing the right thing.)
953
954Added the Printing Framework.
955
956Switched back to using the wxWindows DLL for the pre-built Win32
957version. The problem was needing to reinitialize static class info
958data after loading each extension module.
959
960Lots of little tweaks and additions to reflect changes to various
961wxWindows classes.
962
963Fixed a bug with attaching objects to tree items. Actually was a
964symptom of a larger problem with not obtaining the interpreter lock
965when doing any Py_DECREFs.
966
967wxSizer and friends. Sizers are layout tools that manage a colection
968of windows and sizers. Different types of sizers apply different
969types of layout algorithms. You saw it here first! These classes are
970not even in the wxWindows C++ library yet!
971
972
973
974What's new in 2.0b9
975-------------------
976Bug fix for ListCtrl in test4.py (Was a missing file... DSM!)
977
978Bug fix for occassional GPF on Win32 systems upon termination of a
979wxPython application.
980
981Added wxListBox.GetSelections returning selections as a Tuple.
982
983Added a wxTreeItemData that is able to hold any Python object and be
984associated with items in a wxTreeCtrl. Added test pytree.py to show
985this feature off.
986
987Added wxSafeYield function.
988
989OpenGL Canvas can be optionally compiled in to wxPython.
990
991Awesome new Demo Framework for showing off wxPython and for learning
992how it all works.
993
994The pre-built Win32 version is no longer distributing the wxWindows
995DLL. It is statically linked with the wxWindows library instead.
996
997Added a couple missing items from the docs.
998
999Added wxImage, wxImageHandler, wxPNGHandler, wxJPEGHandler,
1000wxGIFHandler and wxBMPHandler.
1001
1002Added new methods to wxTextCtrl.
1003
1004Fixed some problems with how SWIG was wrapping some wxTreeCtrl
1005methods.
1006
1007
1008
1009What's new in 2.0b8
1010-------------------
1011Support for using Python threads in wxPython apps.
1012
1013Several missing methods from various classes.
1014
1015Various bug fixes.
1016
1017
1018
1019What's new in 2.0b7
1020-------------------
1021Added DLG_PNT and DLG_SZE convienience methods to wxWindow class.
1022
1023Added missing constructor and other methods for wxMenuItem.
1024
1025
1026
1027What's new in 2.0b6
1028-------------------
1029Just a quickie update to fix the self-installer to be compatible with
1030Python 1.5.2b2's Registry settings.
1031
1032
1033What's new in 2.0b5
1034-------------------
1035Well obviously the numbering scheme has changed. I did this to
1036reflect the fact that this truly is the second major revision of
1037wxPython, (well the third actually if you count the one I did for
1038wxWindows 1.68 and then threw away...) and also that it is associated
1039with the 2.0 version of wxWindows.
1040
1041I have finally started documenting wxPython. There are several pages
1042in the wxWindows documentation tree specifically about wxPython, and I
1043have added notes within the class references about where and how wxPython
1044diverges from wxWindows.
1045
1046Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
1047window handle. If you can get the window handle into the python code,
1048it should just work... More news on this later.
1049
1050Added wxImageList, wxToolTip.
1051
1052Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
1053wxRegConfig class.
1054
1055As usual, some bug fixes, tweaks, etc.
1056
1057
1058
1059What's new in 0.5.3
1060-------------------
1061Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
1062
1063Various cleanup, tweaks, minor additions, etc. to maintain
1064compatibility with the current wxWindows.
1065
1066
1067
1068What's new in 0.5.0
1069-------------------
1070Changed the import semantics from "from wxPython import *" to "from
1071wxPython.wx import *" This is for people who are worried about
1072namespace pollution, they can use "from wxPython import wx" and then
1073prefix all the wxPython identifiers with "wx."
1074
1075Added wxTaskbarIcon for wxMSW.
1076
1077Made the events work for wxGrid.
1078
1079Added wxConfig.
1080
1081Added wxMiniFrame for wxGTK.
1082
1083Changed many of the args and return values that were pointers to gdi
1084objects to references to reflect changes in the wxWindows API.
1085
1086Other assorted fixes and additions.
1087
1088
1089
1090
1091What's new in 0.4.2
1092-------------------
1093
1094wxPython on wxGTK works!!! Both dynamic and static on Linux and
1095static on Solaris have been tested. Many thanks go to Harm
1096<H.v.d.Heijden@phys.tue.nl> for his astute detective work on tracking
1097down a nasty DECREF bug. Okay so I have to confess that it was just a
1098DSM (Dumb Stupid Mistake) on my part but it was nasty none the less
1099because the behavior was so different on different platforms.
1100
1101The dynamicly loaded module on Solaris is still segfaulting, so it
1102must have been a different issue all along...
1103
1104
1105
1106What's New in 0.4
1107-----------------
1108
11091. Worked on wxGTK compatibility. It is partially working. On a
1110Solaris/Sparc box wxPython is working but only when it is statically
1111linked with the Python interpreter. When built as a dyamically loaded
1112extension module, things start acting weirdly and it soon seg-faults.
1113And on Linux both the statically linked and the dynamically linked
1114version segfault shortly after starting up.
1115
11162. Added Toolbar, StatusBar and SplitterWindow classes.
1117
11183. Varioius bug fixes, enhancements, etc.
1119
1120----------------------------------------------------------------------