20110626 test build uploaded

Hi,

A new test build of wxPython has been uploaded.

   Version: 2.9.2.0.b20110626
   URL: http://wxPython.kosoftworks.com/preview/20110626
   Changes: http://wxPython.kosoftworks.com/preview/20110626/CHANGES.html

Have fun!
R'bot

Robin,

Hi,

A new test build of wxPython has been uploaded.

    Version: 2.9.2.0.b20110626
    URL: http://wxPython.kosoftworks.com/preview/20110626
    Changes: http://wxPython.kosoftworks.com/preview/20110626/CHANGES.html

Just installed it into my Py 2.7 Win 7 32 VM and noted the following:

- PersistentControls in the demo gives me "No module named persist"
- PDFViewer, a little type when pyPdf is not installed "pacakge" instead of "package"
- AUI_MDI, demo doesn't work, i.e. nothing happens when clicking on the button, when running in a console I get this exception:

Traceback (most recent call last):
   File "AUI_MDI.py", line 79, in OnButton
     pf = ParentFrame(self)
   File "AUI_MDI.py", line 18, in __init__
     self.Bind(wx.EVT_CLOSE)
TypeError: Bind() takes at least 3 arguments (2 given)

changing line 18 to, is probably what was intented:
self.Bind(wx.EVT_CLOSE, self.OnDoClose)

- a black square on the notebook tabs - see attached image
- AUI_Notebook, does not show any draggable tabs
- AGW Flatmenu, shoes in the log window "Unrecognized accel key "row 2, col2" errors/warnings?
- Hypertreelist, shows the following exception in the console

Traceback (most recent call last):
   File "C:\Python27\lib\site-packages\wx-2.9.2-msw\wx\lib\agw\hypertreelist.py",
  line 783, in OnPaint
     self.PrepareDC(dc)
AttributeError: 'TreeListHeaderWindow' object has no attribute 'PrepareDC'

- ComboCtrl, only controls 5 and 7 allow to select something from the popup
- MediaCtrl, shows an exception
line 52 should be changed to e.g.:
slider = wx.Slider(self, -1, 0, 0, 10)
i.e. set a max value higher then the min value.

- OwnerDrawnComboBox throws lots of exceptions when clicking the down arrow:
Traceback (most recent call last):
   File "OwnerDrawnComboBox.py", line 55, in OnDrawItem
     dc.DrawText(self.GetString( item ),
   File "C:\Python27\lib\site-packages\wx-2.9.2-msw\wx\_core.py", line 82, in dep
recatedWrapper
     return callable(*args, **kwargs)
   File "C:\Python27\lib\site-packages\wx-2.9.2-msw\wx\_core.py", line 12997, in
GetRange
     return _core_.TextEntryBase_GetRange(*args, **kwargs)
TypeError: Required argument 'to' (pos 3) not found
Traceback (most recent call last):
   File "OwnerDrawnComboBox.py", line 55, in OnDrawItem
     dc.DrawText(self.GetString( item ),
   File "C:\Python27\lib\site-packages\wx-2.9.2-msw\wx\_core.py", line 82, in dep
recatedWrapper
     return callable(*args, **kwargs)
   File "C:\Python27\lib\site-packages\wx-2.9.2-msw\wx\_core.py", line 12997, in
GetRange
     return _core_.TextEntryBase_GetRange(*args, **kwargs)
TypeError: Required argument 'to' (pos 3) not found

- RichTextCtrl, crashes the demo, no traceback

That is all for the moment, will try and have a look at the OwnerDrawnCB issue.
Werner

wxdemo.jpg

···

On 06/27/2011 07:22 AM, R'bot wrote:

Have fun!
R'bot

Robin,

Hi,

A new test build of wxPython has been uploaded.

Version: 2.9.2.0.b20110626
URL: http://wxPython.kosoftworks.com/preview/20110626
Changes: http://wxPython.kosoftworks.com/preview/20110626/CHANGES.html

Just installed it into my Py 2.7 Win 7 32 VM and noted the following:

Thanks for the testing and feedback

- PersistentControls in the demo gives me "No module named persist"

wx.lib.agw.persist hadn't been added to the installer and setup scripts.

- PDFViewer, a little type when pyPdf is not installed "pacakge" instead
of "package"

Fixed.

- AUI_MDI, demo doesn't work, i.e. nothing happens when clicking on the
button, when running in a console I get this exception:

Traceback (most recent call last):
File "AUI_MDI.py", line 79, in OnButton
pf = ParentFrame(self)
File "AUI_MDI.py", line 18, in __init__
self.Bind(wx.EVT_CLOSE)
TypeError: Bind() takes at least 3 arguments (2 given)

changing line 18 to, is probably what was intented:
self.Bind(wx.EVT_CLOSE, self.OnDoClose)

Fixed.

- a black square on the notebook tabs - see attached image

This is likely the panel that would have been used for some sample that failed, and so it didn't get added as a notebook page yet. If you can consistently reproduce that without having had a failed sample first then please let me know.

Nevermind. I've just duplicated it when running the BitmapButton sample, and the error is due to trying to use a selected bitmap that is a different size than the normal label bitmap...

Fixed.

- AUI_Notebook, does not show any draggable tabs

It's working here, although on Windows 7 I noticed that the color used for the drop hint is almost invisible.

- AGW Flatmenu, shoes in the log window "Unrecognized accel key "row 2,
col2" errors/warnings?

I'm not seeing this one, can you narrow it down further? I'm also not finding that text in the demo modules anywhere.

- Hypertreelist, shows the following exception in the console

Traceback (most recent call last):
File
"C:\Python27\lib\site-packages\wx-2.9.2-msw\wx\lib\agw\hypertreelist.py",
line 783, in OnPaint
self.PrepareDC(dc)
AttributeError: 'TreeListHeaderWindow' object has no attribute 'PrepareDC'

There is no PrepareDC in wx.Window any longer, and it was an empty stub anyway. Only wx.ScrolledWindow has the PrepareDC method, so I've removed the call from TreeListHeaderWindow.OnPaint since it's not needed there.

This uncovered another problem. In 2.9 the wx.Window's dtor asserts if there are any pushed EvtHandlers still on the stack. Instead of trying to figure out the right place to pop that EvtHandler off the stack I just switched it to use a CallAfter instead of the new EvtHandler. Andrea you should double-check that this change is okay when you get some time.

- ComboCtrl, only controls 5 and 7 allow to select something from the popup

Oops. That's what happens when you comment-out a self.Bind call... :wink:

- MediaCtrl, shows an exception
line 52 should be changed to e.g.:
slider = wx.Slider(self, -1, 0, 0, 10)
i.e. set a max value higher then the min value.

Fixed.

- OwnerDrawnComboBox throws lots of exceptions when clicking the down
arrow:

Fixed. There was a GetString that was deprecated in one of the base classes but the deprecation hid another implementation in another base class where it should be kept. (Yeah I know, that's as clear as mud. :wink: )

···

On 6/27/11 3:09 AM, werner wrote:

On 06/27/2011 07:22 AM, R'bot wrote:

--
Robin Dunn
Software Craftsman

Hi Robin,

Robin,

Hi,

A new test build of wxPython has been uploaded.

Version: 2.9.2.0.b20110626
URL: http://wxPython.kosoftworks.com/preview/20110626
Changes: http://wxPython.kosoftworks.com/preview/20110626/CHANGES.html

Just installed it into my Py 2.7 Win 7 32 VM and noted the following:

Thanks for the testing and feedback

That is the least I can do.
...

- AUI_Notebook, does not show any draggable tabs

It's working here, although on Windows 7 I noticed that the color used for the drop hint is almost invisible.

I had to resize the demo window to see the tabs. Note that I am running Win7 in a VirtualBox 4.08 under Ubuntu 10.10.

- AGW Flatmenu, shoes in the log window "Unrecognized accel key "row 2,
col2" errors/warnings?

I'm not seeing this one, can you narrow it down further? I'm also not finding that text in the demo modules anywhere.

I installed under my real Win 7 installation, but I still see this problem.

Note if I click on "Press me for a long menu" button I see tons more of these errors - both on the VM and the "real" install.

Werner

···

On 06/27/2011 11:32 PM, Robin Dunn wrote:

On 6/27/11 3:09 AM, werner wrote:

On 06/27/2011 07:22 AM, R'bot wrote: