sized_controls.SizedDialog and wxPython 4.1.0a

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sized_controls.SizedDialog and wxPython 4.1.0a

Charley Khan
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
 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/8ae78283-5405-4571-baa5-f9533cae10a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: sized_controls.SizedDialog and wxPython 4.1.0a

Charley Khan
Filed as issue : https://github.com/wxWidgets/Phoenix/issues/1278


On Saturday, June 22, 2019 at 5:45:13 PM UTC-7, Charley Khan wrote:
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
 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/81e45453-d3e3-4fd6-8b70-047b9afcdf24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.