Dear Sirs,
I tried, tried, but couldn’t find out how to add a wx.SearchCtrl object to a wx.Toolbar with AddTool() method.
In the internet, there are examples showing how to add tools to a toolbar with AddSimpleTool(), AddCheckLabelTool(), AddControl() methods.
Is it possible to add wx.SearchCtrl object to a wx.ToolBar with AddTool() method?
Similarly, can you add a wx.DatePickerCtrl object?
Please give me a proper example, what should the arguments of AddTool() method be in this case?
Thanks
Best regards
Have a look at the wxPython demo for the Toolbar, it adds a search
control using AddControl.
Werner
···
Hi Steve,
On 7/7/2014 22:31, steve wrote:
Dear Sirs,
I tried, tried, but couldn't find out how to add a wx.SearchCtrl
object to a wx.Toolbar
with AddTool()
method.
In the internet, there are examples showing how to add tools to
a toolbar with
AddSimpleTool(), AddCheckLabelTool(), AddControl() methods.
Is it possible to add wx.SearchCtrl object to a wx.ToolBar with
AddTool() method?
Similarly, can you add a wx.DatePickerCtrl object?
Please give me a proper example, what should the arguments of AddTool()
method be in this case?
steve2
3
Hi Werner,
the demo uses AddControl() method. I’d like to know how to do it with AddTool() method
Best regards
···
On Tuesday, July 8, 2014 9:13:23 AM UTC+3, werner wrote:
Hi Steve,
On 7/7/2014 22:31, steve wrote:
Dear Sirs,
I tried, tried, but couldn't find out how to add a wx.SearchCtrl
object to a wx.Toolbar
with AddTool()
method.
In the internet, there are examples showing how to add tools to
a toolbar with
AddSimpleTool(), AddCheckLabelTool(), AddControl() methods.
Is it possible to add wx.SearchCtrl object to a wx.ToolBar with
AddTool() method?
Similarly, can you add a wx.DatePickerCtrl object?
Please give me a proper example, what should the arguments of AddTool()
method be in this case?
Have a look at the wxPython demo for the Toolbar, it adds a search
control using AddControl.
Werner
Hi Steve,
Hi Werner,
the demo uses AddControl() method. I'd like to know how to do it with AddTool() method
AddTool is supporting:
http://wxpython.org/Phoenix/docs/html/ItemKind.enumeration.html
http://wxpython.org/Phoenix/docs/html/ToolBar.html?highlight=toolbar#ToolBar.AddTool
You want to add a "control" in your case a SearchCtrl or a DatePickerCtrl so I think you have to use AddControl.
Why is it a problem for you to use AddControl?
Werner
···
On 7/8/2014 12:41, steve wrote: