wx.Color and wx.lib.platebtn.SetState

Hi,

I started looking into the project PythonReports and they have a wxPython based template designer which gives me some exceptions.

1. On wx.Color which does no longer exist in wxPython 2.9.4 - is this just an oversight as it is not mentioned in the change doc
2. It is also using platebtn.SetState which does not exist either, there is only the _SetState. Haven't quit figured out why they are setting the state manually.

Will these come back in a future version or are they gone for good? In which case at least the wx.Color one should be mentioned in the changes doc, no?

Werner

I think wx.Color has always been an alias for wx.Colour, which still exists in 2.9. American wrapper for a British design I guess :slight_smile:

Cheers
Jérôme

···

Le 4 déc. 2012 à 21:29, Werner <werner.bruhin@sfr.fr> a écrit :

Hi,

I started looking into the project PythonReports and they have a wxPython based template designer which gives me some exceptions.

1. On wx.Color which does no longer exist in wxPython 2.9.4 - is this just an oversight as it is not mentioned in the change doc

Hi,

I started looking into the project PythonReports and they have a
wxPython based template designer which gives me some exceptions.

1. On wx.Color which does no longer exist in wxPython 2.9.4 - is this
just an oversight as it is not mentioned in the change doc

It's mentioned in the 2.9 migration guide. wxTrac has been migrated to GitHub Issues - wxWidgets

2. It is also using platebtn.SetState which does not exist either, there
is only the _SetState. Haven't quit figured out why they are setting
the state manually.

Cody will need to answer this one, but it looks like the version in the 2.9 source tree is much newer than the one in the 2.8 tree if that gives you any hints.

···

On 12/4/12 12:29 PM, Werner wrote:

--
Robin Dunn
Software Craftsman

Hi,

···

On Tue, Dec 4, 2012 at 6:41 PM, Robin Dunn robin@alldunn.com wrote:

On 12/4/12 12:29 PM, Werner wrote:

Hi,

I started looking into the project PythonReports and they have a

wxPython based template designer which gives me some exceptions.

  1. On wx.Color which does no longer exist in wxPython 2.9.4 - is this

just an oversight as it is not mentioned in the change doc

It’s mentioned in the 2.9 migration guide. http://trac.wxwidgets.org/browser/wxPython/trunk/docs/MigrationGuide.txt

  1. It is also using platebtn.SetState which does not exist either, there

is only the _SetState. Haven’t quit figured out why they are setting

the state manually.

Cody will need to answer this one, but it looks like the version in the 2.9 source tree is much newer than the one in the 2.8 tree if that gives you any hints.

The SetState method should not have been exposed to begin with. Used 2.9 as a point to hide it. So its gone and not likely to come back.

Cody

Oops, I didn't see this one.

Thanks
Werner

···

On 05/12/2012 01:41, Robin Dunn wrote:

On 12/4/12 12:29 PM, Werner wrote:

Hi,

I started looking into the project PythonReports and they have a
wxPython based template designer which gives me some exceptions.

1. On wx.Color which does no longer exist in wxPython 2.9.4 - is this
just an oversight as it is not mentioned in the change doc

It's mentioned in the 2.9 migration guide. wxTrac has been migrated to GitHub Issues - wxWidgets


Thanks
Werner

···

On 05/12/2012 04:27, Cody wrote:

Hi,

    On Tue, Dec 4, 2012 at 6:41 PM, Robin

Dunn robin@alldunn.com
wrote:

          2. It is also using platebtn.SetState which does not exist

either, there

          is only the _SetState.  Haven't quit figured out why they

are setting

          the state manually.
      Cody will need to answer this one, but it looks like the

version in the 2.9 source tree is much newer than the one in
the 2.8 tree if that gives you any hints.

      The SetState method should not have been exposed to begin

with. Used 2.9 as a point to hide it. So its gone and not
likely to come back.

Hi Cody

I am not sure why the SetState() was removed.

If the Platebtn toggle action caused a mini-frame to be launched, then when the mini-frame is closed surely a means should exist to deselect the platebtn?

Since SetState() doesn’t exist anymore, how can I invoke this behaviour?

I would like to see this functionality returned.

Regards