sized_controls.SizedDialog and wxPython 4.1.0a

316 views
Skip to first unread message

Charley Khan

unread,
Jun 22, 2019, 8:45:13 PM6/22/19
to wxPython-users
Trying to use latest snapshot builds to pick up bugfix (see TreeCtrl / delete thread) -- sized_controls.SizedDialog seems broken
On 4.0. this script pops a dialog over a frame:


#!/usr/bin/python

import wx
print wx.__version__

import wx.lib.sized_controls as sc

app = wx.App()
frame = wx.Frame(None, title='simple.py')
dlg = sc.SizedDialog(parent=frame, title="test dialog")
wx.StaticText(dlg.GetContentsPane(), label="a dialog")
frame.Show()
dlg.ShowModal()
app.MainLoop()

I'm getting this exception on both Windows and Mac with wxPython 4.1.0a1.dev4130

$ python scdialog-broken-41.py 
4.1.0a1.dev4130+927b6d94
Traceback (most recent call last):
  File "scdialog-broken-41.py", line 19, in <module>
    dlg = sc.SizedDialog(parent=frame, title="test dialog")
  File "u:/usr/extras/wx-4.1.0a1-win\wx\lib\sized_controls.py", line 600, in __init__
    self.SetExtraStyle(wx.WS_EX_VALIDATE_RECURSIVELY)
AttributeError: 'module' object has no attribute 'WS_EX_VALIDATE_RECURSIVELY'

That symbol does appear to be in _core.pyd for my 4.0.x install, but not 4.1.0
Suggestions appreciated.
-ck
 

Charley Khan

unread,
Jun 26, 2019, 2:44:58 AM6/26/19
to wxPython-users
Reply all
Reply to author
Forward
0 new messages