I have two questions:
1.
I have wx.MessageBox and wx.MessageDialog appearing in my
GUI.
I want to make either a part of the message or the whole
message appear in bold.
2.
I have a LabelTool in my Toolbar. I want to disable this
LabelTool item and then later enable
it.
Kindly tell me how to acheive this.
Thanks in advance,
Spondita
2. For your labeltool in your toolbar see if a enable() property exists. Like this...
frame.cancelButton.Enable(False)
Note I worked out this by using wxGlade which has the options in the widget properties. You can turn different options on and off, view the preview and generate the code to see what changes. It is one way to learn.
···
On 05/06/12 16:13, Spondita wrote:
Hi all,
I have two questions:
1.
I have wx.MessageBox and wx.MessageDialog appearing in my
GUI.
I want to make either a part of the message or the whole
message appear in bold.
2.
I have a LabelTool in my Toolbar. I want to disable this
LabelTool item and then later enable
it.
Kindly tell me how to acheive this.
Thanks in advance,
Spondita
--
Cheers Simon
Simon Cropper - Open Content Creator / Website Administrator
I have two questions:
1.
I have wx.MessageBox and wx.MessageDialog appearing in my
GUI.
I want to make either a part of the message or the whole
message appear in bold.
You can't do it with the stock message dialog, but you can make your own dialog class derived from wx.Dialog instead and put whatever content you want in it.
2.
I have a LabelTool in my Toolbar. I want to disable this
LabelTool item and then later enable
it.
toolbar.EnableTool(toolId, True) # or False to disable