Bug in wx.StatusBar.SetFieldsCount (Phoenix)
Const <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Documentations states:
SetFieldsCount(self, number=1, widths=None)
widths (int) – An array of n integers interpreted in the same way as in
SetStatusWidths()
So statusBar.SetFieldsCount(2, [-1, -1]) should work, but it fails with the
error:
Traceback (most recent call last):
File "C:\users\millsj\sandbox\Py2Py3\wx_cursor.py", line 61, in OnInit
frame = CanvasFrame()
File "C:\users\millsj\sandbox\Py2Py3\wx_cursor.py", line 40, in __init__
self.statusBar.SetFieldsCount(2, [-1, -1])
TypeError: StatusBar.SetFieldsCount(): argument 2 has unexpected type 'list'
Now, statusBar.SetFieldsCount(1, -1) unexpectedly works, and
statusBar.SetStatusWidths([-1, -1]) works as advertised.
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.