ANN: wxPython 2.7.2.0

Announcing

···

----------

The 2.7.2.0 release of wxPython is now available for download at
http://wxpython.org/download.php. This is expected to be the last
stepping stone in the path to the next stable release series,
2.8.x. We're pushing full speed ahead in order to get 2.8.0 included
with OSX 10.5, and so far we are very close to being on schedule. This
release has some house-keeping style changes, as well as some
user-contributed patches and also the usual crop of bug fixes. Source
and binaries are available for both Python 2.4 and 2.5 for Windows and
Mac, as well some pacakges for varous Linux distributions. A summary
of changes is listed below and also at
http://wxpython.org/recentchanges.php.

What is wxPython?
-----------------

wxPython is a GUI toolkit for the Python programming language. It
allows Python programmers to create programs with a robust, highly
functional graphical user interface, simply and easily. It is
implemented as a Python extension module that wraps the GUI components
of the popular wxWidgets cross platform library, which is written in
C++.

wxPython is a cross-platform toolkit. This means that the same program
will usually run on multiple platforms without modifications.
Currently supported platforms are 32-bit Microsoft Windows, most Linux
or other Unix-like systems using GTK2, and Mac OS X 10.3+, in most
cases the native widgets are used on each platform.

Changes in 2.7.2.0
------------------

Patch [ 1583183 ] Fixes printing/print preview inconsistencies

Add events API to wxHtmlWindow (patch #1504493 by Francesco Montorsi)

Added wxTB_RIGHT style for right-aligned toolbars (Igor Korot)

Added New Zealand NZST and NZDT timezone support to wx.DateTime.

wx.Window.GetAdjustedBestSize is deprecated. In every conceivable
scenario GetEffectiveMinSize is probably what you want to use instead.

wx.Image: Gained support for TGA image file format.

wx.aui: The classes in the wx.aui module have been renamed to be more
consistent with each other, and make it easier to recognize in the
docs and etc. that they belong together.

     FrameManager --> AuiManager
     FrameManagerEvent --> AuiManagerEvent
     PaneInfo --> AuiPaneInfo
     FloatingPane --> AuiFloatingPane
     DockArt --> AuiDockArt
     TabArt --> AuiTabArt
     AuiMultiNotebook --> AuiNotebook
     AuiNotebookEvent --> AuiNotebookEvent

wx.lib.customtreectrl: A patch from Frame Niessink which adds an
additional style (TR_AUTO_CHECK_PARENT) that (un)checks a parent when
all children are (un)checked.

wx.animate.AnimationCtrl fixed to display inactive bitmap at start
(patch 1590192)

Patch from Dj Gilcrease adding the FNB_HIDE_ON_SINGLE_TAB style flag
for wx.lib.flatnotebook.

wx.Window.GetBestFittingSize has been renamed to GetEffectiveMinSize.
SetBestFittingSize has been renamed to SetInitialSize, since it is
most often used only to set the initial (and minimal) size of a
widget.

The QuickTime backend for wx.media.MediaCtrl on MS Windows works
again. Just pass szBackend=wx.media.MEDIABACKEND_QUICKTIME to the
constructor to use it instead of the default ActiveMovie backend,
(assuming the quicktime DLLs are available on the system.)

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

well… I guess it will be available for download… in a short period of time :wink:
the demo is yet unavailable :wink:

···

On 11/8/06, Robin Dunn robin@alldunn.com wrote:

Announcing

The 2.7.2.0 release of wxPython is now available for download at
http://wxpython.org/download.php.


There is NO FATE, we are the creators.

Playing with the new wx.GCDC I noticed that the DrawRectangle behaves strange. The width and height seams to be off by 1 px (GCDC draws larger rectangles)

this happens in wxpython 2.7.2.0
but is this is visible in 2.7.1 too.

Peter

···


There is NO FATE, we are the creators.

in aui.py

EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
mistake right? can’t catch the real EVT_AUI_PANECLOSE event now

···

On 11/8/06, Peter Damoc pdamoc@gmail.com wrote:

Playing with the new wx.GCDC I noticed that the DrawRectangle behaves strange. The width and height seams to be off by 1 px (GCDC draws larger rectangles)

this happens in wxpython 2.7.2.0 but is this is visible in 2.7.1 too.

Peter


There is NO FATE, we are the creators.

Is there a new version of Demo Docs released also?

I get this error from Sourceforge after clicking on
the link at wxPython page.

Could not read file.

Go back.
/home/ftp/pub/sourceforge//w/wx/wxpython/wxPython2.7-win32-docs-demos-2.7.2.0.exe
Nov 08, 2006 07:10

···

--- Robin Dunn <robin@alldunn.com> wrote:

Announcing
----------

The 2.7.2.0 release of wxPython is now available for
download at
http://wxpython.org/download.php. This is expected
to be the last
stepping stone in the path to the next stable
release series,
2.8.x. We're pushing full speed ahead in order to
get 2.8.0 included
with OSX 10.5, and so far we are very close to being
on schedule. This
release has some house-keeping style changes, as
well as some
user-contributed patches and also the usual crop of
bug fixes. Source
and binaries are available for both Python 2.4 and
2.5 for Windows and
Mac, as well some pacakges for varous Linux
distributions. A summary
of changes is listed below and also at
http://wxpython.org/recentchanges.php.

What is wxPython?
-----------------

wxPython is a GUI toolkit for the Python programming
language. It
allows Python programmers to create programs with a
robust, highly
functional graphical user interface, simply and
easily. It is
implemented as a Python extension module that wraps
the GUI components
of the popular wxWidgets cross platform library,
which is written in
C++.

wxPython is a cross-platform toolkit. This means
that the same program
will usually run on multiple platforms without
modifications.
Currently supported platforms are 32-bit Microsoft
Windows, most Linux
or other Unix-like systems using GTK2, and Mac OS X
10.3+, in most
cases the native widgets are used on each platform.

Changes in 2.7.2.0
------------------

Patch [ 1583183 ] Fixes printing/print preview
inconsistencies

Add events API to wxHtmlWindow (patch #1504493 by
Francesco Montorsi)

Added wxTB_RIGHT style for right-aligned toolbars
(Igor Korot)

Added New Zealand NZST and NZDT timezone support to
wx.DateTime.

wx.Window.GetAdjustedBestSize is deprecated. In
every conceivable
scenario GetEffectiveMinSize is probably what you
want to use instead.

wx.Image: Gained support for TGA image file format.

wx.aui: The classes in the wx.aui module have been
renamed to be more
consistent with each other, and make it easier to
recognize in the
docs and etc. that they belong together.

     FrameManager --> AuiManager
     FrameManagerEvent --> AuiManagerEvent
     PaneInfo --> AuiPaneInfo
     FloatingPane --> AuiFloatingPane
     DockArt --> AuiDockArt
     TabArt --> AuiTabArt
     AuiMultiNotebook --> AuiNotebook
     AuiNotebookEvent --> AuiNotebookEvent

wx.lib.customtreectrl: A patch from Frame Niessink
which adds an
additional style (TR_AUTO_CHECK_PARENT) that
(un)checks a parent when
all children are (un)checked.

wx.animate.AnimationCtrl fixed to display inactive
bitmap at start
(patch 1590192)

Patch from Dj Gilcrease adding the
FNB_HIDE_ON_SINGLE_TAB style flag
for wx.lib.flatnotebook.

wx.Window.GetBestFittingSize has been renamed to
GetEffectiveMinSize.
SetBestFittingSize has been renamed to
SetInitialSize, since it is
most often used only to set the initial (and
minimal) size of a
widget.

The QuickTime backend for wx.media.MediaCtrl on MS
Windows works
again. Just pass
szBackend=wx.media.MEDIABACKEND_QUICKTIME to the
constructor to use it instead of the default
ActiveMovie backend,
(assuming the quicktime DLLs are available on the
system.)

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax
with wxPython!

--
http://mail.python.org/mailman/listinfo/python-list

hello

____________________________________________________________________________________
Sponsored Link

Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate
Click now to apply http://yahoo.degrees.info

Kenneth Long wrote:

Is there a new version of Demo Docs released also?

I get this error from Sourceforge after clicking on
the link at wxPython page.

Could not read file.

Go back.
/home/ftp/pub/sourceforge//w/wx/wxpython/wxPython2.7-win32-docs-demos-2.7.2.0.exe

Looks like there was an error when building that installer file. I'll get it fixed and upload it again soon.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Got it, thanks...

Another bug in pycrust... :frowning:
using Python 2.5 on XP.

click on locals()-> shell -> other. crash.
Last time it crashed on expanding "shell".

also crashes when clicking on "other" inside
shell-> __dict__

Hope this helps...

Ken

hello

···

____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
http://new.mail.yahoo.com

Peter Damoc wrote:

Playing with the new wx.GCDC I noticed that the DrawRectangle behaves strange. The width and height seams to be off by 1 px (GCDC draws larger rectangles)

this happens in wxpython 2.7.2.0 <http://2.7.2.0> but is this is visible in 2.7.1 too.

Yes, this is known. There are certain graphics context operations that need to have an 0.5 offset applied to them, along with an adjustment to the width and height, but it hasn't been done for the GDIPlus or Cairo backends yet. Now that the graphics context API is reasonably finalized we'll be able to go back and pick up some of these things that slipped through the cracks along the way.

[For those that are interested the reason for the offset has to do with the floating point coordinate space, and the fact that the "center" of a pixel located at (x,y) is actually considered to be at (x+0.5, y+0.5), so to make it look like the old integer based wx.DC some adjustments need to be done here and there.]

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

roee shlomo wrote:

in aui.py
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
mistake right? can't catch the real EVT_AUI_PANECLOSE event now

Yes. Thanks for noticing this.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Kenneth Long wrote:

Got it, thanks...

Another bug in pycrust... :frowning:
using Python 2.5 on XP.

click on locals()-> shell -> other. crash.
Last time it crashed on expanding "shell".

also crashes when clicking on "other" inside shell-> __dict__

Hope this helps...

Yep, it does.

This reminds me that PyCrust doesn't do anything special for properties, it just evaluates them as if they were normal attributes. If somebody wants to put the time into it and submit a patch I think that it would nice for PyCrust to be aware that properties are properties and to display them as such in the tree and the display panel.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I receipt this error when I try to install via Synaptic the new
packages:

E: /var/cache/apt/archives/libwxbase2.7_2.7.2.0-0_i386.deb: intentando
sobreescribir `/usr/lib/libwx_baseu-2.7.so.1', que está también en el
paquete libwxbase2.7-0
E: /var/cache/apt/archives/libwxgtk2.7_2.7.2.0-0_i386.deb: intentando
sobreescribir `/usr/lib/libwx_gtk2u_plot-2.7.so.1', que está también en
el paquete libwxgtk2.7-0

Any idea??

···

--
Mario Lacunza <mlacunza@gmail.com>
Mi configuracion/My config:

Ubuntu Edgy Eft 6.10
Linux Kernel 2.6.17-10-386
Gnome 2.16.1
Python 2.4.4c1
wxPython 2.7.1.3 Unicode
Boa Constructor cvs 0.5.2

--
Saludos / Best regards

Mario Lacunza Vásquez
Desarrollador de Software - Webmaster
Desarrollador 2 Estrellas VS2005

Website : http://mlacunzav[DOT]cogia[DOT]net
Email : mlacunza[AT]gmail.com
Email : mario_lacunza[AT]yahoo.es
Blog : http://mlacunza[DOT]blogspot.com
Lima - Peru

Mario Lacunza wrote:

I receipt this error when I try to install via Synaptic the new
packages:

E: /var/cache/apt/archives/libwxbase2.7_2.7.2.0-0_i386.deb: intentando
sobreescribir `/usr/lib/libwx_baseu-2.7.so.1', que está también en el
paquete libwxbase2.7-0
E: /var/cache/apt/archives/libwxgtk2.7_2.7.2.0-0_i386.deb: intentando
sobreescribir `/usr/lib/libwx_gtk2u_plot-2.7.so.1', que está también en
el paquete libwxgtk2.7-0

Looks like somebody (probably me :wink: ) changed something that caused a couple of the base package names to be changed, without adding the right tags so the new ones replace the old ones. You'll need to deselect (uninstall) the old packages (libwxbase2.7-0 and libwxgtk2.7-0) first, and then install the new ones. Sorry about that.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Someone on the Matplotlib is having trouble compiling matplotlib against wxPython 2.7.1 on OS-X. I'm going to see if I can give it a try with 2.7.2, but in the meantime, I thought someone here might have some insight. Here's the compiler error:

gcc: src/_wxagg.cpp
src/_wxagg.cpp: In function 'wxBitmap* convert_agg2bitmap(RendererAgg*, Bbox*)':
src/_wxagg.cpp:238: error: conversion from 'wxImage*' to 'const wxString' is ambiguous
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:686: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:676: note: wxString::wxString(int) <near match>

This same error is repeated a bunch.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Christopher Barker wrote:

Someone on the Matplotlib is having trouble compiling matplotlib against wxPython 2.7.1 on OS-X. I'm going to see if I can give it a try with 2.7.2, but in the meantime, I thought someone here might have some insight. Here's the compiler error:

gcc: src/_wxagg.cpp
src/_wxagg.cpp: In function 'wxBitmap* convert_agg2bitmap(RendererAgg*, Bbox*)':
src/_wxagg.cpp:238: error: conversion from 'wxImage*' to 'const wxString' is ambiguous
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:686: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:676: note: wxString::wxString(int) <near match>

This same error is repeated a bunch.

What is at and around line 238?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi,

Yes its correct I try this later and works fine.

Thanks!

···

El mié, 08-11-2006 a las 16:04 -0800, Robin Dunn escribió:

Mario Lacunza wrote:
> I receipt this error when I try to install via Synaptic the new
> packages:
>
> E: /var/cache/apt/archives/libwxbase2.7_2.7.2.0-0_i386.deb: intentando
> sobreescribir `/usr/lib/libwx_baseu-2.7.so.1', que está también en el
> paquete libwxbase2.7-0
> E: /var/cache/apt/archives/libwxgtk2.7_2.7.2.0-0_i386.deb: intentando
> sobreescribir `/usr/lib/libwx_gtk2u_plot-2.7.so.1', que está también en
> el paquete libwxgtk2.7-0

Looks like somebody (probably me :wink: ) changed something that caused a
couple of the base package names to be changed, without adding the right
tags so the new ones replace the old ones. You'll need to deselect
(uninstall) the old packages (libwxbase2.7-0 and libwxgtk2.7-0) first,
and then install the new ones. Sorry about that.

--
Mario Lacunza <mlacunza@gmail.com>

Robin Dunn wrote:

Christopher Barker wrote:

Someone on the Matplotlib is having trouble compiling matplotlib against wxPython 2.7.1 on OS-X. I'm going to see if I can give it a try with 2.7.2, but in the meantime, I thought someone here might have some insight. Here's the compiler error:

gcc: src/_wxagg.cpp
src/_wxagg.cpp: In function 'wxBitmap* convert_agg2bitmap(RendererAgg*, Bbox*)':
src/_wxagg.cpp:238: error: conversion from 'wxImage*' to 'const wxString' is ambiguous
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:686: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:676: note: wxString::wxString(int) <near match>

This same error is repeated a bunch.

What is at and around line 238?

233 static wxBitmap *convert_agg2bitmap(RendererAgg *aggRenderer, Bbox* clipbox)
234 {
     // Convert everything: rgba => rgb -> image => bitmap
     // Convert a region: rgba => clipped rgba => rgb -> image =>bitmap
237 wxImage *image = convert_agg2image(aggRenderer, clipbox);
238 wxBitmap *bitmap = new wxBitmap(image);

     image->Destroy();
     delete image;

     if (bitmap == NULL) {
         throw Py::MemoryError(
             "_wxagg::convert_agg2bitmap(): could not allocate `bitmap'");
     }

     return bitmap;
}

Looking at that code, I have no idea what the problem is -- but I'm out of my depth.

thanks,
-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Christopher Barker wrote:

Robin Dunn wrote:

Christopher Barker wrote:

Someone on the Matplotlib is having trouble compiling matplotlib against wxPython 2.7.1 on OS-X. I'm going to see if I can give it a try with 2.7.2, but in the meantime, I thought someone here might have some insight. Here's the compiler error:

gcc: src/_wxagg.cpp
src/_wxagg.cpp: In function 'wxBitmap* convert_agg2bitmap(RendererAgg*, Bbox*)':
src/_wxagg.cpp:238: error: conversion from 'wxImage*' to 'const wxString' is ambiguous
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:686: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/local/lib/wxPython-unicode-2.7.1.3/include/wx-2.7/wx/string.h:676: note: wxString::wxString(int) <near match>

This same error is repeated a bunch.

What is at and around line 238?

233 static wxBitmap *convert_agg2bitmap(RendererAgg *aggRenderer, Bbox* clipbox)
234 {
    // Convert everything: rgba => rgb -> image => bitmap
    // Convert a region: rgba => clipped rgba => rgb -> image =>bitmap
237 wxImage *image = convert_agg2image(aggRenderer, clipbox);
238 wxBitmap *bitmap = new wxBitmap(image);

You need to dereference the image pointer:

     wxBitmap *bitmap = new wxBitmap(*image);

···

    image->Destroy();
    delete image;

    if (bitmap == NULL) {
        throw Py::MemoryError(
            "_wxagg::convert_agg2bitmap(): could not allocate `bitmap'");
    }

    return bitmap;
}

Looking at that code, I have no idea what the problem is -- but I'm out of my depth.

thanks,
-Chris

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!