mike@pythonlibrary.org wrote:
Hi,
I am attempting to create a sub-toolbar instead a notebook control.
However, I can't actually connect a Toolbar to it since the notebook
pages are based on panels and the toolbar requires a frame.
No it doesn't. Just create a wx.ToolBar normally with the panel as its parent.
Thus, I
am just putting a series of button controls in a horizontal BoxSizer
to simulate a toolbar.My problem is that I want to emulate the copy/cut/paste etc
functionality that's in the RichTextCtrl demo code,
I'm not sure what you mean by this. What are you trying to do?
but I can't
figure out how to make it process the event. I've tried using
EVT_UPDATE_UI, EVT_BUTTON and even EVT_MENU (which I know doesn't
even make sense!).All give the same traceback:
Traceback (most recent call last): File
"L:\PyPrograms\PyAuctions\itemDescTab2.py", line 46, in createWidgets
self.Bind(wx.EVT_MENU, self.ForwardEvent, self.cutBtn) File
"L:\Python24\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line
3865, in Bind event.Bind(self, id, id2, handler) File
"L:\Python24\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line
3902, in Bind target.Connect(id1, id2, et, function) File
"L:\Python24\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line
3825, in Connect return _core_.EvtHandler_Connect(*args, **kwargs) TypeError: in method 'EvtHandler_Connect', expected argument 1 of
type 'wxEvtHandler *'
What is self?
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!