[ANN] wxPython 2.4.1.2

Hi Robin

I' am testing 2.4.1.2 on windows XP Pro using Python 2.2.3 and I' am having some problems related with the background color of some controls, like panels, buttons, etc.
For example:

"Core Windows/Controls --> wxButton" demo, there is a blue wxButton that appears light gray on winXP.

"More Windows/Controls --> wxHtmlWindows" demo, the background of the html page is set to green, but it appears light gray.

"Window Layout --> wxXmlResourceHandler" demo, the blue panel created using xml appear light gray.

There are many other parts where the background colors are changed to light gray or white.

If I delete de manifest files for python and pythonw everything works fine (without the XP looks of course).

Anyway the whole release looks really great. wxTreeListCtrl is nice and fast.
Thanks
Cristian

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Thursday, June 19, 2003 7:54 PM
To: wxPython-users; wx-announce@lists.wxwindows.org; osafdev; Python-
List@Python.Org,; Python-Announce-List@Python.Org,; Wx-Users
Subject: [wxPython-users] [ANN] wxPython 2.4.1.2

Announcing
----------

I'm pleased to announce the 2.4.1.2 release of wxPython, now available
for download at Redirecting... or
wxPython - Browse Files at SourceForge.net
530

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 popular
wxWindows cross platform GUI 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, and Macintosh OS X.

New with this release is an experimental build of wxPython using GTK+
2.x for the underlying GUI platform and it is also built with UNICODE
support turned on. The RPMs for this build were made on a Mandrake
9.1 system but should probably work on other distributions with very
up to date libraries. If not, an SRPM is included that can be used to
rebuild the RPM on your system. If you experiment with this build
please send feedback to the wxPython-users mail list. The files are
currently available only on the SourceForge download page, look for
the wxPythonGTK2 files at the bottom:

wxPython - Browse Files at SourceForge.net
6532

Changes in 2.4.1.2
------------------

Added wxScrolledPanel from Will Sadkin

Added SetShape method to top level windows (e.g. wxFrame.)

Changed wxSWIG to not generate Python code using apply, (since it will
be deprecated in the future) wxSWIG will use spam(*args, **kw) syntax
instead. Also changed the generated __repr__ methods to be a bit more
informative.

Made the version number information more robust and uh, informative.
Also added asserts to check that the major.minor versions of wxPython
and wxWindows match.

Added the new wx "renamer" package that will dynamically import from
the wxPython package and rename wxFooBar --> FooBar. That means that
people can do imports without "import *" and can use names like
wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition
to the new namespace.

Updated Scintilla to 1.52. I also changed it to use wxListCtrl
instead of wxListBox for the AutoComplete window, added the ability to
use custom bitmaps in the margin and in the AutoComplete windows, and
worked out how to do proper clipping of child windows on wxGTK.

Patrick O'Brien's PyCrust package has been renamed to Py and now
includes several new tools. As part of the change the location of the
pacakge has changed as well, it is now accessible as "from wxPython
import py" (or "from wx import py" using the new namespace.) There
are still some transition modules in the wxPython.lib.PyCrust package
that will issue a warning and then import what is needed from the new
package. These will be removed in a future release.

Added __nonzero__ method to wxTreeItemId, wxBitmap, wxImage, wxFont,
and most other classes that have an Ok or IsOK method. This allows
code like "if obj: ..." to be the same as "if obj.IsOk(): ..."

Toolbars on wxMac can now have controls on them.

Added wxPython.lib.analogclock module based on samples that were
passed back and forth on wxPython-users a while back.

Added masked edit controls (wxPython.lib.maskededit) by Jeff Childers
and Will Sadkin. Updated wxTimeCtrl to use MaskedEdit.

When the __class__ of a dead object is replaced with _wxPyDeadObject
the __del__ of the original class is now called first.

Added wxTreeListCtrl. (Looks like a wxTreeCtrl embedded in a
wxListCtrl, but actually is just giving multiple columns to a
wxTreeCtrl.)

Added wxFutureCall, a subclass of wxTimer that makes it easy to delay
a call to any Python callable object.

Added wxPy versions of wxPrintPreview, wxPreviewFrame, and
wxPreviewControlBar so they can be derived from in Python and be able
to override the C++ virtual methods.

Simplified how the wxSizer methods are wrapped, changed the name of
the "option" parameter to "proportion" to match the docs ("option" is
still accepted for compatibility, but this will go away in a future
release,) SetItemMinSize can now take a wxSize (or 2-tuple) parameter,
and Spacers can be specified with a wxSize (or 2-tuple) parameter

Added wxCursorFromBits.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Echeverria Rabi, Cristián wrote:

Hi Robin

I' am testing 2.4.1.2 on windows XP Pro using Python 2.2.3 and I' am
having some problems related with the background color of some
controls, like panels, buttons, etc. For example:

"Core Windows/Controls --> wxButton" demo, there is a blue wxButton
that appears light gray on winXP.

"More Windows/Controls --> wxHtmlWindows" demo, the background of the
html page is set to green, but it appears light gray.

"Window Layout --> wxXmlResourceHandler" demo, the blue panel created
using xml appear light gray.

There are many other parts where the background colors are changed to
light gray or white.

If I delete de manifest files for python and pythonw everything works
fine (without the XP looks of course).

<rant>
AARRGG!! XP drives me nuts! It's new UI and theming stuff seems to be the buggiest and most backwards incompatible crap MS has ever produced! (So what if it looks pretty!) If they had done it right then the themes would have adapted to the software instead of forcing the software to adapt to the themes...
</rant>

Anyway, Julian did a bunch of work in this release to try to make wx conform to the themes better but it looks like it went a bit too far in some cases. Julian, is there something that can be done in the existing code to get the background colors for buttons, panels, scrolled windows, (and ???) working again? Or will need changes in CVS?

···

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

Sorry about the backward incompatibility. If you always use
standard colours, the XP-colour-conformance in wxWindows generally
works quite well for wxNotebook pages, but it does override
the colours. The changes are applied in wxNotebook::InsertPage,
so what you can do to work around it is apply the colouring
to controls _after_ you've added the page to the notebook.

I hope that helps. Apologies again, it's quite tough
making wxWindows Do The Right Thing in all circumstances.

Thanks,

Julian

···

At 12:43 24/06/2003 -0700, Robin Dunn wrote:

Echeverria Rabi, Cristián wrote:

Hi Robin
I' am testing 2.4.1.2 on windows XP Pro using Python 2.2.3 and I' am
having some problems related with the background color of some
controls, like panels, buttons, etc. For example:
"Core Windows/Controls --> wxButton" demo, there is a blue wxButton
that appears light gray on winXP.
"More Windows/Controls --> wxHtmlWindows" demo, the background of the
html page is set to green, but it appears light gray.
"Window Layout --> wxXmlResourceHandler" demo, the blue panel created
using xml appear light gray.
There are many other parts where the background colors are changed to
light gray or white.
If I delete de manifest files for python and pythonw everything works
fine (without the XP looks of course).

<rant>
AARRGG!! XP drives me nuts! It's new UI and theming stuff seems to be the buggiest and most backwards incompatible crap MS has ever produced! (So what if it looks pretty!) If they had done it right then the themes would have adapted to the software instead of forcing the software to adapt to the themes...
</rant>

Anyway, Julian did a bunch of work in this release to try to make wx conform to the themes better but it looks like it went a bit too far in some cases. Julian, is there something that can be done in the existing code to get the background colors for buttons, panels, scrolled windows, (and ???) working again? Or will need changes in CVS?

=========================================================================
Julian Smart mailto:julian.smart@btopenworld.com
3 Water Street, Stamford, www.anthemion.co.uk
Lincs, U.K., PE9 2NJ +44 (0)1780 765976
StoryLines: story structuring www.storylinescentral.com
HelpBlocks: HTML help authoring www.helpblocks.com
DialogBlocks: cross-platform dialogs www.anthemion.co.uk/dialogblocks