forked from wxWidgets/wxPyWeb
/
CHANGES.txt
4948 lines (3454 loc) · 179 KB
/
CHANGES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.. -*- coding: utf-8 -*-
Recent Changes for wxPython
=====================================================================
2.9.5.0
-------
* 31-Aug-2013
wx.media.MediaCtrl on OSX-cocoa now has a functioning back-end using
the QTKit framework, so it works when running in either 32-bit or
64-bit mode.
Printing triggered from a Javascript window.print() statement will now
work on OSX when using the old wx.webkit or the new wx.html2 browser
controls.
Updated Scintilla code to verison 3.21
Lots of fixes and improvements in the wxWidgets code.
Changed the wx.DateTime.Parse* methods to work like they did in
wxPython 2.8, they now return an integer indicating how far in to
the string that the parser parsed, or -1 on error.
Updated wx.lib.pdfviewer with patches from David Hughes.
2.9.4.1
-------
* 24-July-2012
A quick patch release to fix some C++ headers for the wxGTK port not
getting installed, causing a build error in wxPython.
2.9.4.0
-------
* 21-July-2012
wx.lib.pubsub: Pusub now defaults to the new "kwarg" version of the
API. In order to continue using the original "arg1" API you will need
to import wx.lib.pubsub.setuparg1 before importing any other pubsub
modules.
The wx.RA_USE_CHECKBOX and wx.RB_USE_CHECKBOX constants were removed.
They were only used by the incomplete PalmOS port which has been
removed from the wxWidgets source tree.
wx.Font: There is now GetStrikethrough and SetStrikethrough methods.
wx.StaticBox: Fixed the client origin and client size on MSW so
children of the static box should not overlap the box's label or
border lines.
Added wx.HTMLDataObject
Applied a patch from Sam Partington that fixes some threading issues
in the wrapper code and other cool stuff.
Added the missing wx/lib/agw/data dir to the installers.
Add wx.EnhMetaFile and wx.EnhMetaFileDC for MSW. This DC type is what
is used by the print framework in the print preview window, so it
needed to be wrapped so self.GetDC() would work properly.
2.9.3.1
-------
* 29-Dec-2011
Corrected some problems in the installer scripts that were not
including some new files.
Re-enabled the wrappers for the wx.GenericDatePickerCtrl class.
Applied some patches from Werner Bruhin for the sized controls classes
and demo, and which also adds the SizedScrolledPanel class.
Fixed several other minor bugs discovered in the last release.
2.9.3.0
-------
* 26-Dec-2011
wx.ListCtrl: Added a static method named HasColumnOrderSupport which
returns a boolen value indicating if the column ordering APIs (see
next item) are implemented for the current platform.
Added methods for querying and manipulating the ordering of the
columns (in wx.LC_REPORT mode only.) This is not implemented on all
platforms so use HasColumnOrderSupport to find out if the APIs are
supported. The new APIs are: GetColumnOrder, GetColumnIndexFromOrder,
GetColumnsOrder and SetColumnsOrder.
Added wrappers for new WebView classes which came from a successful
Google Summer of Code project this year. This new module allows you
to embed the platform's native HTML/CSS/Javascript rendering engine in
a wx application like we've always been able to do with wx.webkit on
Mac or with the various ActiveX modules that we've had for windows,
except in the new version it uses the exact same API on all platforms
and also provides an implementation for GTK. Currently on Windows the
IE Trident engine is used, and WebKit is used on OSX and GTK. The
code is organized to eventually allow alternate backend renderer
implementations. The GTK version requires at least version 1.3.1 of
libwebkitgtk-dev, which is the default on most of the recent Linux
distributions. Please note that although these new classes and
libraries are using names based on "WebView" I have put the wxPython
verison of them in the wx.html2 module because the wxWebKit project
already produces a wx.webview module for wxPython.
The wx.lib.pubsub package has been updated to the latest verison and
several examples have been added to the samples folder.
2.9.2.4
-------
* 9-Sept-2011
Try, try again... Fixed an indentation bug that crept in somewhere
along the way.
2.9.2.3
-------
* 8-Sept-2011
Fixed a bug that was causing the base class methods of
wx.richtext.RichTextCtrl to be called incorrectly, causing a crash.
2.9.2.2
-------
* 5-Sept-2011
Fixed a problem with wx.ListCtrl.InsertStringItem when an imageIndex
was not passed. Change the listctrl to not always assume that there
is an image.
Several fixes for the wx.lib.agw modules.
Fixed a problem in wxGrid on OSX-cocoa where it would close the cell
editor immediately because of extra kill focus events.
Added an OSX implementation for the wxRegion constructor taking a
sequence of points.
Added the ability to use the Cairo backend for wx.GraphicsContext on
Windows. The Cairo libraries are loaded dynamically on-demand, so
there is not a runtime dependency on Cairo for applications that do
not use it. The Cairo DLL and its dependencies are bundled with the
wxPython installers. We expect to be able to also add dynamic loading
of Cairo for OSX soon, (but if anybody would like to volunteer that
would be nice too.) To create a Cairo graphics context you first
have to get the Cairo GraphicsRenderer and then use it to create the
context, like this::
cr = wx.GraphicsRenderer.GetCairoRenderer()
ctx = cr.CreateContext(dc)
If either GetCairoRenderer or CreateContext fails (either it's not
supported or the Cairo shared libraries can not be found) then None
will be returned, so be sure to check the return values. Using Cairo
on Windows is usually faster and seems to be of better quality than
using the GDI+ backend.
The wx.GCDC class can now be constructed with an already exisiting
wx.GraphicsContext.
The wx.lib.softwareupdate module has been added. It implements a
class designed to be mixed with wx.App in a derived class and provides
code for enabling your applications to update themselves when new
releases are made available (very similar to how most applications on
the Mac will prompt you to allow it to self-update.) This is based on
the Esky library available from the Python package index at
http://pypi.python.org/pypi/esky. To enable your application to be
self-updatable it must be packaged as an Esky bundle, which is a .zip
file with a certain structure and meta-data, which means that you will
have to modify your setup.py files to enable this. There is an
example showing how to do this in the samples/doodle folder of the
wxPython source tarball or the docs and demos package.
Added a MultiMessageDialog class to wx.lib.dialogs that is similar to
the stock wx.MessageDialog, but is additionally able to have a
scrollable message area, custom icons, and customized button labels,
(although they will still use the stock IDs). There is also a
MultiMessageBox Function that is like the wx.MessageBox function.
2.9.2.1
-------
* 23-July-2011
Just before release of 2.9.2.0 an important bug was discovered in the
wxMSW printing code related to converting to and from native printer
definitions. To correct that glitch this .1 release was made with just
that one additional difference from the official wxWidgets 2.9.2
source tree.
2.9.2.0
-------
* (not released)
Added wx.CommandLinkButton. This button has both a label and a note
displayed on it. On Windows 7 it is a new native widget type, on the
other platforms it is a generic implementation using wx.Button.
Added wx.lib.itemspicker. This class allows items to be selected from
a list by moving them to another list.
Added wx.UIActionSimulator, which is able to programatically generate
platform specific keyboard and mouse events, (with varying degrees of
success depending on the platform.)
Added the ability to the build tools to make a Mac Framework for
wxWidgets, and use it in the wxPython build. (We're still ironing out
some issues so it's not part of the release builds yet.)
Added an installer EXE for the wxWidgets source tree, including the
LIBs and DLLs that were used for the wxPython build on Windows. This
enables 3rd party extension developers to build their libraries and
extensions such that they will use the same options and the same libs
as wxPython, and will replace the -devel tarball included with prior
releases.
There have been many improvements to the wxOSX-Cocoa port, making it
a more usable port. The other ports have also improved as well.
The wx.TaskBarIcon in the wxOSX-cocoa port can now either be a custom
dock icon as before, or a status icon in the menu bar, and can be
selected by passing wx.TBI_DOCK or wx.TBI_CUSTOM_STATUSITEM to the
wx.TaskBarIcon constructor. The default is menubar status item. The
type flag is ignored on the other ports.
wx.ToggleButtons are now part of the new common button class hierarchy
and so they can now have bitmaps instead of or in addition to their
text labels.
Udpates from the AGW and Editra projects.
2.9.1.1
-------
* 14-Oct-2010
wx.Bitmap: Add ConvertToDisabled method.
wx.AboutBox: Added support for setting a long version string in
addition to the normal version string.
wx.App: Add ScheduleForDestruction, which will allow you to cause a
window to be destroyed sometime in the near future. (Most likely to
be used to ensure that there are no more envents pending for the
widget.)
More methods and properties moved from wx.MouseEvent to the
wx.MouseState base class. Same for wx.KeyEvent and wx.KeyboardState,
which is used to hold modifier key states, and which is also a base
class of wx.MouseState. Note that properties rightDown, leftDown and
middleDown have been changed to rightIsDown, leftIsDown and
middleIsDown.
wx.Button can now have both a text and a bitmap label (or just one or
the other.) wx.BitmapButton is pretty much redundant and will likely
be phased out sometime in the future. (The OSX Carbon build does not
support this new feature, but the Cocoa build does.)
wx.ComboBox: Added Popup and Dismiss methods for programatically
showing and hiding the popup, although they are not implemented for
all platforms yet.
wx.GenericDirCtrl can now select multiple paths.
Removed the deprecated wx.Effects class.
wx.Image: Added ConvertToGreyscale and ConvertToDisabled methods, also
new resampling scaling methods.
wx.Toolbar now supports inserting stretchable space between tools.
wx.Dialog can now be Window-modal or the usual App-modal. On Mac this
results in the dialog sliding down in a sheet from the parent window's
top edge. For platforms that don't support Window-modal dialogs it
will fall back to an App-modal behavior. See
wx.Dialog.ShowWindowModal and the wx.Dialog sample in the demo.
wx.wizard.Wizard: Add a new EVT_WIZARD_PAGE_SHOWN event.
Added wx.InfoBar, which is similar to the message bar used in some web
browser windows that is shown above or below the content window to
display messages and/or buttons in a way that doesn't interupt the
user's workflow like a modal message dialog does, but is much more
noticeble than simply putting some text in the status bar.
Updated the Scintilla code used by wxStyledTextCtrl to version 2.03.
Added wx.GraphicsGradientStop[s] classes and updated the
Create*GradientBrush APIs to allow gradients with more than two color
stops. Similar changes were also mare to the Cairo specific classes in
wx.lib.graphics to help maintain compatibility between the two.
Added the wx.lib.pdfviewer package which is a contribution from David
Hughes. It implements a simple cross-platform PDF viewer widget using
the 3rd party pyPdf package for parseing the PDF file. It's not super
fast nor is it feature complete, but for simple and small PDF files
(such as those produced by ReportLab) it works well.
Probably the most notable change in this release is the addition of
the OSX-Cocoa build, including a 64-bit architecture in the fat
binaries. The Cocoa port requires at least OSX 10.5, and the Carbon
port requires 10.4 or better. There are still some rough edges in the
Cocoa port, but a lot does work and works well. If you run into
issues that seem to be Cocoa specific then be sure to create tickets
for them at http://trac.wxwidgets.org with the component set to
wxOSX-Cocoa, after having searched for any existing tickets for the
same issue of course.
2.9.0.1
-------
* 22-Jan-2010
NOTE: This release was done mainly to get a 2.9.x preview build out to
the wxPython contributors to use for testing their code with wxPython
2.9. There will not be a general official release of this version.
NOTE: When using the stock Apple Python on OS X 10.6 it will default
to running in 64-bit mode if your machine is a 64-bit architecture.
wxPython is still using Carbon on OS X which is 32-bit only, so there
is no 64-bit personality in the universal binaries and it will raise
an exception when you import wx. wxPython will be switching to Cocoa
soon, but in in the meantime you can force the stock Python to run in
32-bit mode by running this command in a Terminal session::
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
wxGTK: Implemented support for underlined fonts in wx.StaticText
wxGTK: wx.TopLevelWindow.SetSizeHints size increments now work
Added wx.EventBlocker class
wxGTK: Make wx.TopLevelWindow.GetSize() return the size of the window
including the decorations (not just the client size) and updated
SetSize() to account for this as well.
wxMSW: For consistency with wxGTK, when a top level window is
minimized the size returned from GetSize will be the restored size,
not the size of the icon window.
wxGTK: For consistency with wxMSW, when a top level window is
minimized the size returned from GetClientSize will be (0,0).
wxGTK: Color cursors now supported.
Added wx.DC.StretchBlit() for wxMac and wxMSW (Vince Harron)
Added support for labels for toolbar controls (Vince Harron)
wxGTK: Setting foreground colour of single line wx.TextCtrl now works.
wxMac: Corrected top border size for wxStaticBox with empty label (nusi)
wx.Window.IsEnabled() now returns false even if the window parent, and
not the window itself, is disabled and added IsThisEnabled()
implementing the old IsEnabled() behaviour.
wxGTK: Now using the native tab traversal functions instead of
simulating it ourselves.
Generating wx.NavigationKeyEvent events doesn't work any more under
wxGTK (and other platforms in the future), use wx.Window.Navigate() or
NavigateIn() instead.
wx.glcanvas.GLCanvas: The constructor has been changed slightly in
order to make it consistent across all the platforms. The C++ version
now looks like this::
wxGLCanvas(wxWindow *parent,
wxWindowID id = -1,
const int *attribList = NULL,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyGLCanvasNameStr,
const wxPalette& palette = wxNullPalette);
Also in GLCanvas, all the platforms now support the new pardigm of
using a separate GLContext object, and associating it with the canvas
using canvas.SetCurent(context).
wxMac: The get-url apple event is now supported, simply override
wx.App.MacOpenURL to receive it. You'll also need to have appropriate
meta-data in your app bundle to specify the protocol of the URLs that
your app can respond to.
wx.VScrolledWindow has been refactored, and new wx.HScrolledWindow and
wx.HVScrolledWindow classes have been added. Just like
wx.VScrolledWindow they allow scrolling with non-uniform scroll
increments, where the size of each item is determined by making
callbacks into the derived class. The H version handles horizontal
scrolling and the HV version handles both horizontal and vertical
scrolling.
Support wx.APPLY and wx.CLOSE in CreateStdDialogButtonSizer()
wx.CheckListBox now looks more native, especially under XP.
Sizers distribute only the extra space between the stretchable items
according to their proportions and not all available space. We believe
the new behaviour corresponds better to user expectations but if you
did rely on the old behaviour you will have to update your code to set
the minimal sizes of the sizer items to be in the same proportion as
the items proportions to return to the old behaviour.
Added support for toolbar buttons with dropdown menus.
Added support for mouse events from two auxillary mouse buttons.
The methods that wx.TextCtrl and wx.ComboBox have in common have been
factored out into a new base class that they share, wx.TextEntry.
wx.richtext.RichTextCtrl and related classes were refactored such that
the RTC uses the same attributes object as wx.TextCtrl. This means that
instead of using wx.richtext.RichtextAttr or TextAttrEx you'll just
use wx.TextAttr instead. Also, all of the flags and styles related to
the text attributes have been moved out of the wx.richtext module and
into the main wx namespace. Finally, wx.TextCtrl and RichTextCtrl now
share some common base classes.
wx.Brush.MacSetTheme has been removed, and has been replaced by being
able to create a wx.Colour using a Mac themed brush ID instead. So if
you used to have code like this::
brush = wx.Brush(someColour)
brush.MacSetTheme(kThemeBrushDialogBackgroundActive)
You'll want to replace it with code like this::
brush = wx.Brush(wx.MacThemeColour(kThemeBrushDialogBackgroundActive))
wx.calendar: A native implementation of the CalendarCtrl was added
for the Windows and GTK ports, however the native classes tend to not
implement all of the functionality that the old generic version of the
control provides. To be able to provide a way for you to work around
issues related to this I've added wrappers for both the CalendarCtrl
and also GenericCalendarCtrl, so if you depend on the ability to do
things like set holidays or change the attributes of specific days in
the calendar then please change your code to use the GenericCalendarCtrl
class instead.
Added wx.NotificationMessage.
The wx.grid.GridCellEditor.EndEdit method has been split into two
methods, EndEdit and ApplyEdit. See the GridCustEditor sample in the
demo for an example of their use.
Processing of pending events can be temporarily stopped and then
restarted. See wx.App.SuspendProcessingOfPendingEvents and
ResumeProcessingOfPendingEvents.
Added wx.App.YieldFor and related methods which can control what
categories of events can be processed during the yield.
Spin buttons and spin controls now have their own event types instead
of reusing the scroll events.
The public data members of wx.MouseEvent (m_shiftDown, etc.) have been
removed, but since wx.MouseEvent now derives from wx.MouseState you
can use its properties (shiftDown, etc.) instead for assignments to
those member values.
Removed the Set/GetLogicalFunction methods from wx.GraphicsContext.
Added Set/GetCompositionMode methods to wx.GraohicsContext, and also
Set/GetAntialiasMode methods. The composition mode settings allow you
to use the classic Porter-Duff compositions when drawing. See
http://keithp.com/~keithp/porterduff/p253-porter.pdf
wx.grid.Grid: Added methods CalcRowLabelsExposed,
CalcColLabelsExposed, CalcCellsExposed, DrawRowLabels, DrawRowLabel,
DrawColLabels, and DrawColLabel.
Added the wx.lib.mixins.gridlabelrenderer module. It enables the use
of label renderers for Grids that work like the cell renderers do. See
the demo for a simple sample.
wx.App: OnExceptionInMainLoop and FilterEvent can now be overridden.
Added wx.lib.msgpanel, which provides a class derived from wx.Panel
that can look and feel much like a wx.MessageDialog.
Added wx.lib.progressindicator which is a simple class with a label
and a guage that can be used to show either specific or indeterminate
(pulsed) progress of some sort. It works well in status bars, and can
be set to hide itself when not active.
Added wx.lib.nvdlg, which provides a generic dialog for editing the
values of name/value pairs. You're able to specify some styles and
attributes for each text control if needed.
Wrappers for the propgrid library, maintained by Jaakko Salli, have
been added to wxPython.
A new build script has been added to wxPython, originally created by
Kevin Ollivier, which greatly simplifies building both wxWidgets and
wxPython for the average user. I now use it in my day-to-day builds
as well as from the scripts which create the preview and release
builds. See the new BUILD.txt document for more information.
2.8.12.1
--------
* 23-July-2011
Relax an assert that was added to Bind() in the previous release so
None will be an acceptable value for the handler parameter again.
Added ToolTipString property to wx.Window.
Other minor fixes.
Udpates from the AGW and Editra projects.
2.8.12.0
--------
* 16-April-2011
This release is mostly just bug and typo fixes. There are no new
major features or enhancements in the core library.
2.8.11.0
--------
* 14-May-2010
Lots of bug fixes in both wxWidgets and wxPython.
Added the context manager protocol methods to some wx classes so they
can be used with the new Python 'with' statement. (The with statement
is always available starting in Python 2.6, and can also be used in
Python 2.5 with a __future__ import statement.) There are several
wx classes where this is a natural fit, such as wx.BusyInfo. The
__enter__ and __exit__ methods have also been added to wx.Dialog where
it will do the dialog.Destroy() call for you. This means that you can
use code like this::
with MyDialog(self, foo, bar) as dlg:
if dlg.ShowModal() == wx.ID_OK:
# do something with dlg values
The list of wx classes that can now be used as context managers is:
* wx.Dialog
* wx.BusyInfo
* wx.BusyCursor
* wx.WindowDisabler
* wx.LogNull
* wx.DCTextColourChanger
* wx.DCPenChanger
* wx.DCBrushChanger
* wx.DCClipper
A new class has been added that is also a context manager, called
wx.FrozenWindow. It will freeze the window passed to it upon entry to
the context, and will thaw the window upon exit from the context.
Applied the final version of patch #10959 to the PyCrust code. It
adds many enhancements to the Py suite, inlcuding the ability to edit
blocks of code (called slices) as a whole before executing them, and
also the ability to execute some simple shell commands.
Replaced the wx.lib.pubsub module with the new pubsub package from
http://pubsub.sf.net. By default it is backwards compatible with the
old pubsub module, but it also has a more advanced API available that
can be switched on at import time. See the pubsub web site for more
details.
The wx.Effects class is deprecated.
Added Python 2.7 builds for Windows and Mac.
Added Debian package builds for Ubuntu 9.10 and 10.4.
Many fixes and enhancements for the wx.lib.agw pacakge, including the
addition of pybusyinfo, ribbon, ultimatelistctrl and zoombar.
2.8.10.1
--------
* 14-May-2009
wx.grid.Grid: Added methods CalcRowLabelsExposed,
CalcColLabelsExposed, CalcCellsExposed, DrawRowLabels, DrawRowLabel,
DrawColLabels, and DrawColLabel to the Grid class.
Added the wx.lib.mixins.gridlabelrenderer module. It enables the use
of label renderers for Grids that work like the cell renderers do. See
the demo for a simple sample.
Solved the manifests problem with Python 2.6 on Windows. wxPython now
programatically creates its own activation context and loads a
manifest in that context that specifies the use of the themable common
controls on Windows XP and beyond. This also means that the external
manifest files are no longer needed for the other versions of Python.
wx.Colour: Updated the wx.Colour typemaps and also the wx.NamedColour
constructor to optionally allow an alpha value to be passed in the
color string, using these syntaxes: "#RRGGBBAA" or "ColourName:AA"
wx.lib.wxcairo: Fixed a problem resulting from PyCairo changing the
layout of their C API structure in a non-binary compatible way. The
new wx.lib.wxcairo is known to now work with PyCairo 1.6.4 and 1.8.4,
and new binaries for Windows are available online at
http://wxpython.org/cairo/
2.8.9.2
-------
* 16-Feb-2009
Added the wx.lib.agw package, which contiains most of the widgets from
http://xoomer.alice.it/infinity77/main/freeware.html written by Andrea
Gavana. Andrea's widgets that were already in wx.lib were also moved
to the wx.lib.agw package, with a small stub module left in wx.lib.
As part of this addition the demo framework was given the ability to
load demo modules from a sub-folder of the demo directory, to make it
easier to maintain collections of demo samples as a group.
Added the wx.PyPickerBase class which can be used to derive new picker
classes in Python. Used it to implement a color picker for Mac that
uses a wx.BitmapButton instead of a normal wx.Button. This makes the
color picker look and behave lots better on Mac than before.
You can now pass the handler function to the Unbind method. If it is
given then Unbind will only disconenct the event handler that uses the
same handler function, so if there are multiple bindings for the same
event type you'll now be able to selectively unbind specific
instances.
Added a new tool to the Widget Inspection Tool that allows you to watch
the events passing through a widget. It can also be used
independently, see wx.lib.eventwatcher.
2.8.9.1
-------
* 28-Sep-2008
Fixed a Python 2.4 compatibility issue in the Editra code.
2.8.9.0
-------
* 28-Sep-2008
Many minor bug fixes throughout wxWidgets and wxPython.
Fixed wx.lib.embeddedimage to work with Python 2.3.
Fixed PseudoDC hit testing when pure white or pure black are used.
Added support for a 64-bit Windows build for the AMD64 architecture,
(a.k.a. x64.) This is for Python 2.5 only and is available only as a
Unicode build.
Added the wx.EmptyBitmapRGBA factory function.
Added the wx.lib.wxcairo module which allows the pycairo package to be
used for drawing on wx window or memory DCs. In addition it is able
to convert from a native wx.Font to a cairo.FontFace, and it also
provides functions for converting to/from wx.Bitmap and
cairo.ImageSurface objects. In order to use this module you will need
to have the Cairo library and its dependencies installed, as well as
the pycairo Python package. For Linux and other unix-like systems you
most likely have what you need installed already, or can easily do so
from your package manager application. See the wx.lib.wxcairo
module's docstring for notes on where to get what you need for Windows
or Mac. This module uses ctypes, and depending on platform it may
need to find and load additional dynamic libraries at runtime in
addition to cairo. The pycairo package used needs to be new enough to
export the CAPI structure in the package namespace. I believe that
started sometime in the 1.4.x release series.
Added the wx.lib.graphics module, which is an implementation of the
wx.GraphicsContext API using Cairo (via wx.lib.wxcairo). This allows
us to be totally consistent across platforms, and also use Cairo to
implement some things that are missing from the GraphicsContext API.
It's not 100% compatible with the GraphicsContext API, but probably
close enough to be able to share code between them if desired, plus it
can do a few things more.
Updated wx.Bitmap.CopyFromBuffer to be a bit more flexible. You can
now specify the format of the buffer, and the CopyFromBufferRGBA is
now just a wrapper around CopyFromBuffer that specifies a different
format than the default. Also added the complement method,
CopyToBuffer. See the docstring for CopyFromBuffer for details on the
currently allowed buffer formats. The existing wx.BitmapFromBuffer
factory functions are also now implemented using the same underlying
code as CopyFromBuffer.
Add wx.lib.mixins.listctrl.ListRowHighlighter for automatic highlighting
of rows in a wx.ListCtrl.
2.8.8.1
-------
* 18-July-2008
wx.richtext: Added wrappers for the RichTextPrinting and
RichTextPrintout classes.
Make it easier to replace the check box images used in the
CheckListCtrlMixin class.
Fixed bug in wx.ScrolledWindow when child focus events caused
unneccessary or incorrect scrolling.
Fixed a bug in wx.GridBagSizer where hidden items were not ignored in
part of the layout algorithm.
Several other bugs also fixed.
2.8.8.0
-------
* 23-June-2008
Added the PlateButton class from Cody Precord.
Added wx.PyEvtHandler, which supports overriding the ProcessEvent
method in derived classes. Instances of this class can be pushed onto
the event handler chain of a window in order to hook into the event
processing algorithm, and its ProcessEvent method will be called for
every event sent to the window.
With much help from Anthony Tuininga the code generated by the img2py
tool is now cleaner, simpler and smaller. Instead of writing the data
for the images as printable ascii with hex escapes it now uses base64
to encode the images into a string. In addition, instead of top-level
functions for returning the image data and bitmaps, the embedded
images now use a simple class with methods for returning the image as
a bitmap, icon, or etc. By default in 2.8.x top-level aliases will be
generated to make the code backward compatible with the old functional
interface, but you can use -F to turn that off. In 2.9 and beyond the
default will be to generate only the new class interface, but -f can
be used to turn the old behavior back on.
The PyEmbeddedImage class added for the new img2py support can also be
used for image data that may be acquired from some other source at
runtime, such as over the network or from a database. In this case
pass False for isBase64 (unless the data actually is base64 encoded.)
Any image type that wx.ImageFromStream can handle should be okay. See
the wx.lib.embeddedimage module for details.
Exposed the wx.GenericDatePickerCtrl to wxPython. On wxGTK and wxMac
this is exactly the same as the normal date picker, but on wxMSW it
allows you to avoid the native wx.DatePickerCtrl if so desired. Also
fixed a bug that caused an assert if you tried to set the date to
wx.DefaultDateTime even if wx.DP_ALLOWNONE was specified.
Made a little hack in wx.lib.masked.TextCtrl that allows it to be
wrapped around an already existing TextCtrl instead of always creating
its own. This is useful for example with the wx.TextCtrl that is
built-in to the customizable wx.combo.ComboCtrl, or with a textctrl
that is part of an XRC layout. To use it you need to do a little
trick like this::
existingTextCtrl = combo.GetTextCtrl()
maskedCtrl = wx.lib.masked.TextCtrl.__new__(wx.lib.masked.TextCtrl)
maskedCtrl.this = existingTextCtrl.this
maskedCtrl.__init__(parent)
Enhanced the Widget Inspection Tool with some new functionality.
Added tools to the toolbar to expand and collapse the widget tree,
which is very helpful for not getting lost in very large applications
with many hundreds of widgets. Also added a toolbar tool for
highlighting the currently selected widget or sizer in the live
application. The tool will flash top-level windows and for all other
items it will draw an outline around the item for a few seconds.
Copied the sized_controls module to the wx.lib package as the first
step of phasing out the wxaddons package.
Added an implementation of wx.Window.SetDoubleBuffered on Windows.
(GTK already has one, and Mac doesn't need one because everything is
always double buffered by the system there.)
Added a wrapper to wx.TopLevelWindow for MacGetTopLevelWindowRef to
facilitate calling the Carbon APIs directly for things that are not
supported in wx, similar to how we can use ctypes or PyWin32 with
window.GetHandle() to do custom stuff on Windows. (On wxMac GetHandle
returns the ControlRef, which is different than the WindowRef, hence
the need for a 2nd method.) Here is an example to set the modified
flag in the caption::
>>> import ctypes
>>> carbon = ctypes.CDLL('/System/Library/Carbon.framework/Carbon')
>>> carbon.SetWindowModified(frame.MacGetTopLevelWindowRef(), True)
Added a new light-weight solution for embedding ActiveX controls in
wxPython applications that uses ctypes and the comtypes package
available from http://starship.python.net/crew/theller/comtypes/.
Comtypes allows us to use and provide an interface with full dynamic
dispatch abilities, much like PyWin32's COM interfaces but with much
reduced external dependencies. See wx/lib/activex.py for more
details. IMPORTANT: Be sure to get at least version 0.5 of comtypes,
see the docstring in the wx.lib.activex module for details.
The wx.lib.iewin, wx.lib.pdfwin, and wx.lib.flashwin modules were
switched to use the new and improved activex module. The APIs
provided by these modules should be mostly compatible with what was
there before, except for how the COM events are handled. Instead of
sending wx events it relies on you overriding methods with the same
names as the COM events. You can either do it in a or derived class,
or you can set an instance of some other class to be the event sink.
See the ActiveX_IEHtmlWindow sample in the demo for an example. If you
would rather continue to use the old version of these modules they
are available in the wx.lib with "_old" added to the names.
Added the wx.lib.resizewidget module. This module provides the
ResizeWidget class, which reparents a given widget into a specialized
panel that provides a resize handle for the widget. When the user
drags the resize handle the widget is resized accordingly, and an
event is sent to notify parents that they should recalculate their
layout.
2.8.7.1
-------
* 29-Nov-2007
Applied Patch [ 1783958 ] to use the native renderer for drawing the
checkboxes in CheckListCtrlMixin.
Incorporated the new version of XRCed. This is the result of a Google
Summer of Code 2007 project by Roman Rolinsky, and includes a number
of UI enhancements, as well as a mechanism for adding support for new
components without needing changes to XRCed itself. These new
components can be those supported at the C++ layer of XRC, as well as
custom XRC handlers written in Python. See
http://wiki.wxpython.org/XRCed_Refactoring_Project
wxMac: Fixed wx.BusyInfo so it doesn't steal the activated status
from the parent window. (This actually applies to all frames with the
wx.FRAME_TOOL_WINDOW style and no decorations.)
wxMac: Fixed the lack of painting the area between scrollbars on
Leopard.
wxMac: Fixed assertion errors dealing with toolbars on Leopard.
wxMac: Multiline textcontrols now support attributes for margins and
alignement; only a single tab distance can be set though.
Added the wx.Image.AdjustChannels method. This function muliplies all
4 channels (red, green, blue, alpha) with a factor (around
1.0). Useful for gamma correction, colour correction and to add a
certain amount of transparency to a image.
Added Editra to the distribution, to give us a simple yet powerful
programmer's code editor to replace the never finished PyAlaMode
editor and related tools. Many thanks to Cody Precord for the work he
has done on this tool and for allowing us to make it part of wxPython.
Editra has syntax highlighting and other support for over 40
programming languages, excellent OS X integration, is extendable via
plugins, and for those that are on the VI side of the fence there is a
VI emulation mode. For more information see the Editra website at
http://editra.org/
wxGTK: wx.Frame.ShowFullScreen now preserves the menubar's
accelerators.
wxGTK: wx.GetClientDisplayRect fixed.
Applied patch [1838043], which adds a demo of the wx.RendererNative
class functionality.
Applied patch [1837449], which uses wx.RenderNative for drawing the
combo button in the PopupControl.
Added GetDirItemData to wx.GenericDirCtrl, which returns a reference
to the data object associated with an item in the control. (Patch
#1836326)
2.8.6.1
-------
* 26-Oct-2007
wxMac: Fixed paste bug when the clipboard contains unicode text.
AUI: Added missing event binders for the notebok tab events.
wxMac: Fixed bug that resulted in portions of virtual listctrl's to
not be repainted when scrolling with PgUp/PgDown/Home/End.
wxMac: Fixed bug that broke tab traversal when tabbing runs into a
wx.StaticBox.
wxGTK: Add wx.Window.GetGtkWidget.
All: Undprecated wx.ListCtrl.[G|S]etItemSpacing
All: Fixed wx.Palette constructor wrapper. It takes three seqences of
integers to specify the R, G, and B values for each color in the
palette, which must all be the same length and which must contain
integer values in the range of 0..255 inclusive.
Thanks to some grunt work from Edouard TISSERANT, wxPython now has the
needed tweaks in config.py to be able to be built with mingw32. See
BUILD.txt for details.
Changes in wx.GraphicsContext to make things like the half-pixel
offsets more consistent across platforms.
wxMSW: If freezing a top-level window wxWidgets will actually freeze
the TLW's children instead. This works around a feature of MS Windows
that allowed windows beneath the frozen one in Z-order to paint
through, and also mouse events clicking through to the lower window.
2.8.6.0
-------
* 27-Sept-2007
This release is mostly about fixing a number of bugs and
inconsistencies in wxWidgets and wxPython. In other words, there have
been a whole lot more changes than what is listed here, but they are
not new features or API visible changes, which is what are usually
listed in this file.
Some Menu APIs added to make things more consistent. Added
wx.MenuBar.SetMenuLabel, wx.MenuBar.GetMenuLabel,
wx.MenuBar.GetMenuLabelText, wx.Menu.GetLabelText,
wx.MenuItem.SetItemLabel, wx.MenuItem.GetItemLabel,
wx.MenuItem.GetItemLabelText, wx.MenuItem.GetLabelText. The
Get...Label functions get the raw label with mnemonics and
accelerators, and the Get...LabelText functions get the text only,