Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sized_controls.SizedDialog failing with no WS_EX_VALIDATE_RECURSIVELY #1278

Closed
ckhan opened this issue Jun 26, 2019 · 1 comment · Fixed by #1284
Closed

sized_controls.SizedDialog failing with no WS_EX_VALIDATE_RECURSIVELY #1278

ckhan opened this issue Jun 26, 2019 · 1 comment · Fixed by #1284

Comments

@ckhan
Copy link

@ckhan ckhan commented Jun 26, 2019

Operating system: Windows 7 64-bit (also on MacOS Sierra)
wxPython version & source: 4.1.0a1.dev4130+927b6d94 from snapshot build
Python version & source: Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32

Description of the problem:

sized_controls.SizedDialog seems to be broken in latest builds:

#!/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()

Returns this error:

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'
@RobinD42
Copy link
Member

@RobinD42 RobinD42 commented Apr 24, 2020

This issue has been mentioned on Discuss wxPython. There might be relevant details there:

https://discuss.wxpython.org/t/wxpython-4-1-0-released/34564/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants