is wx.FRAME_EX_CONTEXTHELP supported in wxPython2.4.2.4?

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'
>>>

Just for the heck of it i tried the next couple of flag values:

self.SetExtraStyle(8) , and 16,....

But that does not work.

Is it supported?

Thanks

Pierre

Pierre,

We seem to keep working on the same/similar stuff.

I didn't try the SetExtrStyle at all, based my stuff on a sample included with Boa.

In my main app module (with Boa this contains the wxAPP stuff I do this just after having imported wx.

from wxPython.help import *
provider = wxSimpleHelpProvider()
wxHelpProvider_Set(provider)

And in my case on my primary frame I add the ContectHelpButton to my toolbar as I didn't want to have to add it in multiple places

        self.wxId_myTBHelpButton = wxNewId()
        self.tbHelpButton = wxContextHelpButton(parent=self.myTB)
        self.tbHelpButton.SetToolTipString(_('Click to activate context help'))
        self.tbHelpButton.SetHelpText(_('After clicking this button, click on the control you need help on'))
        self.myTB.AddControl(control = self.tbHelpButton)

Maybe this is usefull to you.

See you
Werner

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'
>>>

Just for the heck of it i tried the next couple of flag values:

self.SetExtraStyle(8) , and 16,....

But that does not work.

Is it supported?

Thanks

Pierre

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Werner F. Bruhin wrote:

Pierre,

We seem to keep working on the same/similar stuff.

Great mind think alike :wink:

I am just developping a small app, learning wxPython. I still have a lot to learn, but i find it quite fun. Coming from the embedded firmware world, I find developping in Python so much gratifying! And wxPython is making it so easy to develop/test GUI apps.

In my main app module (with Boa this contains the wxAPP stuff I do this just after having imported wx.

from wxPython.help import *
provider = wxSimpleHelpProvider()
wxHelpProvider_Set(provider)

And in my case on my primary frame I add the ContectHelpButton to my toolbar as I didn't want to have to add it in multiple places

       self.wxId_myTBHelpButton = wxNewId()
       self.tbHelpButton = wxContextHelpButton(parent=self.myTB)
       self.tbHelpButton.SetToolTipString(_('Click to activate context help'))
       self.tbHelpButton.SetHelpText(_('After clicking this button, click on the control you need help on'))
       self.myTB.AddControl(control = self.tbHelpButton)

Maybe this is usefull to you.

It is, thanks.

I have used the wx.ContextHelpButton as well, but i though for the Windows platform i would try to place the help button on the caption bar. The wxWindows wxContext docs states that for Windows, you could use the wxDIALOG_EX_CONTEXTHELP for that, but it does not work. Then I tried what the wxWindows::SetExtraStyle() stated (and there, the name of the style flag is different, it is: wxFRAME_EX_CONTEXTHELP ).

I am using the wx package, so i wondered if this was an issue related to this.

I also tried the wxContextHelp demo, where i find annoying that to dismiss the question mark cursor after bringing the context sensitive help pop up window, you have to click somewhere else again.

A la prochaine! (see you!)

Pierre

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

Pierre Rouleau wrote:

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?

  wx.help.FRAME_EX_CONTEXTHELP
  wx.help.SimpleHelpProvider

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Pierre Rouleau wrote:

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?

    wx.help.FRAME_EX_CONTEXTHELP
    wx.help.SimpleHelpProvider

Thanks Robin

Pierre Rouleau wrote:

What am i missing?

    wx.help.FRAME_EX_CONTEXTHELP
    wx.help.SimpleHelpProvider

Thanks Robin

BTW, please be aware that this will be changing in 2.5. While working on it I found it much more convenient for the build (because of some difficult to satisfy dependencies) to allow the contents of the old help module to be in the core "wx" namespace.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!