Pierre Rouleau wrote:
The wxWindow::SetExtraStyle() mentions the FRAME_EX_CONTEXTHELP extra style for Windows platforms, but it does not seem to have been included in the SWIG proxy.
[Shell buffer started: python.exe]
Python 2.3.1 (#47, Sep 23 2003, 23:47:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.WS_EX_VALIDATE_RECURSIVELY
1
>>> wx.WS_EX_BLOCK_EVENTS
2
>>> wx.WS_EX_TRANSIENT
4
>>> wx.FRAME_EX_CONTEXTHELP
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'FRAME_EX_CONTEXTHELP'
>>>
OK now, I noticed that you need wxPython.help:
This works:
[Shell buffer started: python.exe]
Python 2.3.1 (#47, Sep 23 2003, 23:47:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from wxPython.wx import *
>>> wxFRAME_EX_CONTEXTHELP
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'wxFRAME_EX_CONTEXTHELP' is not defined
>>> from wxPython.help import *
>>> wxFRAME_EX_CONTEXTHELP
4
>>>
But, i tried using the wx package, and it does not seems to work:
[Shell buffer started: python.exe]
Python 2.3.1 (#47, Sep 23 2003, 23:47:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.FRAME_EX_CONTEXTHELP
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'FRAME_EX_CONTEXTHELP'
>>> import wx.help
>>> wx.FRAME_EX_CONTEXTHELP
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'FRAME_EX_CONTEXTHELP'
>>>
>>> provider = wx.SimpleHelpProvider()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'SimpleHelpProvider'
>>>
What am i missing?
Thanks,
Pierre