Make message bold in wx.MessageBox or wx.MessageDialog / Disable ToolBar's LabelTool

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

1. The entire label can be made bold with this definition in the

    frame.label.SetFont(wx.Font(13, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))

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

    Free and Open Source Software Workflow Guides
    ------------------------------------------------------------
    Introduction http://www.fossworkflowguides.com
    GIS Packages http://gis.fossworkflowguides.com
    bash / Python http://scripting.fossworkflowguides.com

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.

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

···

On 6/4/12 11:13 PM, Spondita wrote:

--
Robin Dunn
Software Craftsman