Phoenix API Inconsistency StatusBar

On wxPython Pheonix (3, 0, 3, '.dev1638+4502562')

Why does StatusBar.SetStatusStyles want a length where as StatusBar.SetStausWidths does not?

Clearly SetStatusStyles could use the list length as it did in wxPython 2.8.

Barry

Hi,

···

On 2/14/2015 19:25, Barry Scott wrote:

On wxPython Pheonix (3, 0, 3, '.dev1638+4502562')

Why does StatusBar.SetStatusStyles want a length where as StatusBar.SetStausWidths does not?

Clearly SetStatusStyles could use the list length as it did in wxPython 2.8.

It looks like Robin tweacked things for SetStatusWidths, see phoenix.etg.statusbar.py but he didn't do it for SetStatusStyles, would be nice if both wouldn't need the 'n' param as it has to match anyhow the SetFieldsCount value, so StatusBar already knows it. But I might be a bit naive here.:slight_smile:

Werner

Hi,

On wxPython Pheonix (3, 0, 3, '.dev1638+4502562')

Why does StatusBar.SetStatusStyles want a length where as StatusBar.SetStausWidths does not?

Clearly SetStatusStyles could use the list length as it did in wxPython 2.8.

It looks like Robin tweacked things for SetStatusWidths, see phoenix.etg.statusbar.py but he didn't do it for SetStatusStyles, would be nice if both wouldn't need the 'n' param as it has to match anyhow the SetFieldsCount value, so StatusBar already knows it. But I might be a bit naive here.:slight_smile:

Werner

Do you want bug reports on this mailing list or should I go straight to wxTrac?

Barry

···

On 15 Feb 2015, at 10:36, Werner <wernerfbd@gmx.ch> wrote:
On 2/14/2015 19:25, Barry Scott wrote:

--
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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Should be on wxTrac and if you have a patch fixing a problem then do a Pull Request (PR) on Commits · RobinD42/Phoenix · GitHub

Werner

···

On 2/22/2015 12:11, Barry Scott wrote:

On 15 Feb 2015, at 10:36, Werner <wernerfbd@gmx.ch> wrote:

Hi,

On 2/14/2015 19:25, Barry Scott wrote:

On wxPython Pheonix (3, 0, 3, '.dev1638+4502562')

Why does StatusBar.SetStatusStyles want a length where as StatusBar.SetStausWidths does not?

Clearly SetStatusStyles could use the list length as it did in wxPython 2.8.

It looks like Robin tweacked things for SetStatusWidths, see phoenix.etg.statusbar.py but he didn't do it for SetStatusStyles, would be nice if both wouldn't need the 'n' param as it has to match anyhow the SetFieldsCount value, so StatusBar already knows it. But I might be a bit naive here.:slight_smile:

Werner

Do you want bug reports on this mailing list or should I go straight to wxTrac?

Hi,

On wxPython Pheonix (3, 0, 3, '.dev1638+4502562')

Why does StatusBar.SetStatusStyles want a length where as StatusBar.SetStausWidths does not?

Clearly SetStatusStyles could use the list length as it did in wxPython 2.8.

It looks like Robin tweacked things for SetStatusWidths, see phoenix.etg.statusbar.py but he didn't do it for SetStatusStyles, would be nice if both wouldn't need the 'n' param as it has to match anyhow the SetFieldsCount value, so StatusBar already knows it. But I might be a bit naive here.:slight_smile:

Werner

Do you want bug reports on this mailing list or should I go straight to wxTrac?

Should be on wxTrac and if you have a patch fixing a problem then do a Pull Request (PR) on Commits · RobinD42/Phoenix · GitHub

Thanks I'll report on wxTrac.

···

On 23 Feb 2015, at 14:13, Werner <wernerfbd@gmx.ch> wrote:
On 2/22/2015 12:11, Barry Scott wrote:

On 15 Feb 2015, at 10:36, Werner <wernerfbd@gmx.ch> wrote:
On 2/14/2015 19:25, Barry Scott wrote:

Werner

--
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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Barry Scott wrote:

···

On 23 Feb 2015, at 14:13, Werner<wernerfbd@gmx.ch> wrote:

On 2/22/2015 12:11, Barry Scott wrote:

On 15 Feb 2015, at 10:36, Werner<wernerfbd@gmx.ch> wrote:

Hi,

On 2/14/2015 19:25, Barry Scott wrote:

On wxPython Pheonix (3, 0, 3, '.dev1638+4502562')

Why does StatusBar.SetStatusStyles want a length where as StatusBar.SetStausWidths does not?

Clearly SetStatusStyles could use the list length as it did in wxPython 2.8.

It looks like Robin tweacked things for SetStatusWidths, see phoenix.etg.statusbar.py but he didn't do it for SetStatusStyles, would be nice if both wouldn't need the 'n' param as it has to match anyhow the SetFieldsCount value, so StatusBar already knows it. But I might be a bit naive here.:slight_smile:

Werner

Do you want bug reports on this mailing list or should I go straight to wxTrac?

Should be on wxTrac and if you have a patch fixing a problem then do a Pull Request (PR) on Commits · RobinD42/Phoenix · GitHub

Thanks I'll report on wxTrac.

I don't check Trac very often and when I do I tend to get buried in the avalanche. For Phoenix stuff it is best to report on wxPython-dev, or at least send a link to the Trac ticket to wxPython-dev, and unlike the rest of wx I'm using GitHub PRs for patches for Phoenix.

--
Robin Dunn
Software Craftsman