parameters: (self, msg, flags=wx.ICON_INFORMATION)
docstring: Show a message in the bar.
  
          If the bar is currently hidden, it will be shown. Otherwise its message will be updated in place.
  
          :param string `msg`: the text of the message;
          :param integer `flags`: one of ``wx.ICON_NONE``, ``wx.ICON_INFORMATION`` (default), ``wx.ICON_QUESTION``,
           ``wx.ICON_WARNING`` or ``wx.ICON_ERROR`` values.
  
           :note: These flags have the same meaning as in :class:`MessageDialog` for the generic version, i.e.
            show (or not, in case of ``wx.ICON_NONE``) the corresponding icon in the bar but can be interpreted
            by the native versions. For example, the GTK+ native implementation doesn't show icons at all but
            uses this parameter to select the appropriate background colour for the notification.
docstring_summary: Show a message in the bar.
docstring_tokens: Show a message in the bar .
function: def ShowMessage(self, msg, flags=wx.ICON_INFORMATION):
          """
          Show a message in the bar.
  
          If the bar is currently hidden, it will be shown. Otherwise its message will be updated in place.
  
          :param string `msg`: the text of the message;
          :param integer `flags`: one of ``wx.ICON_NONE``, ``wx.ICON_INFORMATION`` (default), ``wx.ICON_QUESTION``,
           ``wx.ICON_WARNING`` or ``wx.ICON_ERROR`` values.
  
           :note: These flags have the same meaning as in :class:`MessageDialog` for the generic version, i.e.
            show (or not, in case of ``wx.ICON_NONE``) the corresponding icon in the bar but can be interpreted
            by the native versions. For example, the GTK+ native implementation doesn't show icons at all but
            uses this parameter to select the appropriate background colour for the notification.
          """
          
          # first update the controls
          icon = flags & wx.ICON_MASK
          iconSize = 0
          
          if not icon or icon == wx.ICON_NONE:
              self._icon.Hide()
              
          else: # do show an icon
              bitmap = wx.ArtProvider.GetBitmap(FLAGS2ART[flags], wx.ART_BUTTON)
              iconSize = bitmap.GetWidth() + wx.SizerFlags().Border().GetBorderInPixels()
              self._icon.SetBitmap(bitmap)
              self._icon.Show()
              
          # notice the use of EscapeMnemonics() to ensure that "&" come through
          # correctly
          self._text.SetLabel(wx.PyControl.EscapeMnemonics(msg))
          
          parentSize = self.GetParent().GetSize()
          self._text.Wrap(parentSize.x - iconSize - wx.SizerFlags().Border().GetBorderInPixels())
          
          # then show this entire window if not done yet
          if not self.IsShown():
              self.DoShow()
  
          self.Layout()
function_tokens: def ShowMessage ( self , msg , flags = wx . ICON_INFORMATION ) : # first update the controls icon = flags & wx . ICON_MASK iconSize = 0 if not icon or icon == wx . ICON_NONE : self . _icon . Hide ( ) else : # do show an icon bitmap = wx . ArtProvider . GetBitmap ( FLAGS2ART [ flags ] , wx . ART_BUTTON ) iconSize = bitmap . GetWidth ( ) + wx . SizerFlags ( ) . Border ( ) . GetBorderInPixels ( ) self . _icon . SetBitmap ( bitmap ) self . _icon . Show ( ) # notice the use of EscapeMnemonics() to ensure that "&" come through # correctly self . _text . SetLabel ( wx . PyControl . EscapeMnemonics ( msg ) ) parentSize = self . GetParent ( ) . GetSize ( ) self . _text . Wrap ( parentSize . x - iconSize - wx . SizerFlags ( ) . Border ( ) . GetBorderInPixels ( ) ) # then show this entire window if not done yet if not self . IsShown ( ) : self . DoShow ( ) self . Layout ( )