wxPython 4.0.0a2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

wxPython 4.0.0a2

Robin Dunn

Announcing wxPython 4.0.0a2
---------------------------

https://pypi.python.org/pypi/wxPython/4.0.0a2

This build of wxPython is based on the official wxWidgets 3.0.3
release.

This release is mostly various bug fixes and other tweaks, such as:

  * Allow numpy arrays to be auto-converted to simple sequence value
    types like wx.Size, wx.Colour, etc.

  * A couple of fixes to lib/agw/aui to prevent segfaults under OSX
    when AuiNotebook tabs are closed

  * Fix wx._core.wxAssertionError in wx.lib.agw.aui when dragging a
    notebook tab

  * Fix the [G|S]etClientData methods in wx.CommandEvent to behave the
    same way they are in wx.ClientDataContainer.

  * Fix the SetFonts methods in wx.html classes

  * Several fixes in wx.dataview related to overriding methods

  * Fixed some flickering in wx.lib.agw.aui.framemanager

  * Fixed problem with wrong implementation of
    wxNotebook::DeleteAllPages being called on Windows

  * Added the missing wx.grid.GRID_AUTOSIZE flag

  * Fixed crash due to the object created in an XmlSubclassFactory
    being destroyed too soon

  * Fixed crash in wx.lib.agw.toasterbox

  * Fixed crash when using wx.xrc.XmlSubclassFactory

  * Fixed wx.grid.GridTableBase.GetValue and related methods to work
    more like they did in Classic, so non-string values can be used a
    little more easily.

Added building and bundling of the PDB files for wxWidgets and the
wxPython extensions on Windows.  Until a better place is found they
will be downloadable from https://wxPython.org/Phoenix/release-extras,
along with archives for the documentation as well as the demo and
samples.



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

wxPython is a cross-platform 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 set of Python extension modules that
wrap the GUI components of the popular wxWidgets cross platform
library, which is written in C++. Supported platforms are Microsoft
Windows, Mac OS X and macOS, and Linux or other unix-like systems with
GTK2 or GTK3 libraries. In most cases the native widgets are used on
each platform to provide a 100% native look and feel for the
application.


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

wxPython's Project Phoenix is a new from-the-ground-up implementation
of wxPython, created with the intent of making wxPython “better,
stronger, faster than he was before.” In other words, this new
implementation is focused on improving speed, maintainability and
extensibility of wxPython, as well as removing most of the cruft that
had accumulated over the long life of Classic wxPython.

The project has been in development off and on, mostly behind the
scenes, for many years. For the past few years automated snapshot
builds have been available for those adventurous enough to try it, and
many people eventually started using the snapshots in their projects,
even for production releases.  While there are still some things on
the periphery that need to be completed, the core of the new wxPython
extension modules which wrap the wxWidgets code has been stable for a
long time now.

Due to some things being cleaned up, reorganized, simplified and
dehackified wxPython Phoenix is not completely backwards compatible
with wxPython Classic.  This is intended. In general, however, the API
differences tend to be minor and some applications can use Phoenix
with slight, or even no modifications.  In some other cases the
correct way to do things was also available in Classic and it's only
the wrong way that has been removed from Phoenix.  For more
information there is a Migration Guide document available at:
https://wxpython.org/Phoenix/docs/html/MigrationGuide.html

The new wxPython API reference documentation, including all
Python-specific additions and customizations, and docs for the wx.lib
package, is located at:
https://wxpython.org/Phoenix/docs/html/main.html

--
Robin Dunn
Software Craftsman
http://wxPython.org

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.0a2

sebastian lópez
Downloading and testing the aui.Notebook !

El lunes, 8 de mayo de 2017, 23:28:42 (UTC-5), Robin Dunn escribió:

Announcing wxPython 4.0.0a2
---------------------------

<a href="https://pypi.python.org/pypi/wxPython/4.0.0a2" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpypi.python.org%2Fpypi%2FwxPython%2F4.0.0a2\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHyo88wyexfkKvuE6GQ7XDcnJcsYg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpypi.python.org%2Fpypi%2FwxPython%2F4.0.0a2\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHyo88wyexfkKvuE6GQ7XDcnJcsYg&#39;;return true;">https://pypi.python.org/pypi/wxPython/4.0.0a2

This build of wxPython is based on the official wxWidgets 3.0.3
release.

This release is mostly various bug fixes and other tweaks, such as:

  * Allow numpy arrays to be auto-converted to simple sequence value
    types like wx.Size, wx.Colour, etc.

  * A couple of fixes to lib/agw/aui to prevent segfaults under OSX
    when AuiNotebook tabs are closed

  * Fix wx._core.wxAssertionError in wx.lib.agw.aui when dragging a
    notebook tab

  * Fix the [G|S]etClientData methods in wx.CommandEvent to behave the
    same way they are in wx.ClientDataContainer.

  * Fix the SetFonts methods in wx.html classes

  * Several fixes in wx.dataview related to overriding methods

  * Fixed some flickering in wx.lib.agw.aui.framemanager

  * Fixed problem with wrong implementation of
    wxNotebook::DeleteAllPages being called on Windows

  * Added the missing wx.grid.GRID_AUTOSIZE flag

  * Fixed crash due to the object created in an XmlSubclassFactory
    being destroyed too soon

  * Fixed crash in wx.lib.agw.toasterbox

  * Fixed crash when using wx.xrc.XmlSubclassFactory

  * Fixed wx.grid.GridTableBase.GetValue and related methods to work
    more like they did in Classic, so non-string values can be used a
    little more easily.

Added building and bundling of the PDB files for wxWidgets and the
wxPython extensions on Windows.  Until a better place is found they
will be downloadable from <a href="https://wxPython.org/Phoenix/release-extras" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FwxPython.org%2FPhoenix%2Frelease-extras\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHtM9r62w4FvXJov91XFm5TKaiScQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FwxPython.org%2FPhoenix%2Frelease-extras\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHtM9r62w4FvXJov91XFm5TKaiScQ&#39;;return true;">https://wxPython.org/Phoenix/release-extras,
along with archives for the documentation as well as the demo and
samples.



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

wxPython is a cross-platform 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 set of Python extension modules that
wrap the GUI components of the popular wxWidgets cross platform
library, which is written in C++. Supported platforms are Microsoft
Windows, Mac OS X and macOS, and Linux or other unix-like systems with
GTK2 or GTK3 libraries. In most cases the native widgets are used on
each platform to provide a 100% native look and feel for the
application.


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

wxPython's Project Phoenix is a new from-the-ground-up implementation
of wxPython, created with the intent of making wxPython “better,
stronger, faster than he was before.” In other words, this new
implementation is focused on improving speed, maintainability and
extensibility of wxPython, as well as removing most of the cruft that
had accumulated over the long life of Classic wxPython.

The project has been in development off and on, mostly behind the
scenes, for many years. For the past few years automated snapshot
builds have been available for those adventurous enough to try it, and
many people eventually started using the snapshots in their projects,
even for production releases.  While there are still some things on
the periphery that need to be completed, the core of the new wxPython
extension modules which wrap the wxWidgets code has been stable for a
long time now.

Due to some things being cleaned up, reorganized, simplified and
dehackified wxPython Phoenix is not completely backwards compatible
with wxPython Classic.  This is intended. In general, however, the API
differences tend to be minor and some applications can use Phoenix
with slight, or even no modifications.  In some other cases the
correct way to do things was also available in Classic and it's only
the wrong way that has been removed from Phoenix.  For more
information there is a Migration Guide document available at:
<a href="https://wxpython.org/Phoenix/docs/html/MigrationGuide.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython.org%2FPhoenix%2Fdocs%2Fhtml%2FMigrationGuide.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHupMe2ga_ltR-Ja8giphqyurUn6A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython.org%2FPhoenix%2Fdocs%2Fhtml%2FMigrationGuide.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHupMe2ga_ltR-Ja8giphqyurUn6A&#39;;return true;">https://wxpython.org/Phoenix/docs/html/MigrationGuide.html

The new wxPython API reference documentation, including all
Python-specific additions and customizations, and docs for the wx.lib
package, is located at:
<a href="https://wxpython.org/Phoenix/docs/html/main.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython.org%2FPhoenix%2Fdocs%2Fhtml%2Fmain.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG3C-vOLEHL1ix6Smsy2x67aIp5vA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython.org%2FPhoenix%2Fdocs%2Fhtml%2Fmain.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG3C-vOLEHL1ix6Smsy2x67aIp5vA&#39;;return true;">https://wxpython.org/Phoenix/docs/html/main.html

--
Robin Dunn
Software Craftsman
<a href="http://wxPython.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FwxPython.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG9kM-NEpJfIvl_lWJvA23SuLjOA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FwxPython.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG9kM-NEpJfIvl_lWJvA23SuLjOA&#39;;return true;">http://wxPython.org

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.0a2

Niki Spahiev-2
In reply to this post by Robin Dunn
wx.Choice should be subclass of wx.ControlWithItems as in classic.

Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import wx
 >>> wx.VERSION
(4, 0, 0, 'a2')
 >>> issubclass(wx.Choice, wx.ControlWithItems)
False

Niki

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.0a2

Robin Dunn
niki wrote:

> wx.Choice should be subclass of wx.ControlWithItems as in classic.
>
> Python 2.7.13 (default, Jan 19 2017, 14:48:08)
> [GCC 6.3.0 20170118] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import wx
> >>> wx.VERSION
> (4, 0, 0, 'a2')
> >>> issubclass(wx.Choice, wx.ControlWithItems)
> False

With the new tools we follow the details of the wxWidgets API more
closely than before, which is a good thing, (less hackiness is possible,
so less bugs due to square pegs in round holes,) and the wxPython API is
derived almost completely from the documented API of wxWIdgets. There
the wxChoice class multiply inherits from wxControl and
wxItemContainer.  See the class diagram at
http://docs.wxwidgets.org/3.0/classwx_choice.html

The C++ wxControlWithItems is really just an empty class that does
nothing but inherit from wxControl and wxItemContainer, so it is
basically the same thing.  If you need to test if something is in this
part of the class hierarchy then you can test for wx.ItemContainer
instead of wx.ControlWithItems.

--
Robin Dunn
Software Craftsman
http://wxPython.org

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.0a2

Niki Spahiev-2
On 13.05.2017 03:15, Robin Dunn wrote:
...
> The C++ wxControlWithItems is really just an empty class that does
> nothing but inherit from wxControl and wxItemContainer, so it is
> basically the same thing.  If you need to test if something is in this
> part of the class hierarchy then you can test for wx.ItemContainer
> instead of wx.ControlWithItems.
>

Thanks for the detailed explanation.

Niki

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.