old_contents: """
  A :class:`~msl.qt.button.Button` example.
  """
  from msl.qt import application, Button
  
  
  def left():
      print('left click')
  
  
  def right():
      print('right click')
  
  
  def item1():
      print('item #1 selected')
  
  
  def item2():
      print('item #2 selected')
  
  
  def item3():
      print('item #3 selected')
  
  
  def item4():
      print('item #4 selected')
  
  
  def show():
      app = application()
      b = Button(text='My button', image=32, image_size=4., left_click=left, right_click=right, tooltip='Example button')
      b.add_menu_item('My item #1', triggered=item1, shortcut='CTRL+I', image=43, tooltip='First')
      b.add_menu_item('My item #2', triggered=item2, shortcut='CTRL+H', image=47, tooltip='Second')
      b.add_menu_item('My item #3', shortcut='CTRL+Z', image=46, tooltip='Visible but disabled (triggered not set)')
      b.add_menu_separator()
      b.add_menu_item('My item #4', triggered=item4, shortcut='CTRL+X', image=60, tooltip='Fourth')
      b.show()
      app.exec_()
  
  if __name__ == '__main__':
      show()
  
new_contents: """
  A :class:`~msl.qt.button.Button` example.
  """
  from msl.qt import application, Button
  
  
  def left():
      print('left click')
  
  
  def right():
      print('right click')
  
  
  def item1():
      print('item #1 selected')
  
  
  def item2():
      print('item #2 selected')
  
  
  def item3():
      print('item #3 selected')
  
  
  def item4():
      print('item #4 selected')
  
  
  def show():
      app = application()
      b = Button(text='My button', image=32, image_size=4., left_click=left, tooltip='Example button')
      b.set_right_click(right)
      b.add_menu_item('My item #1', triggered=item1, shortcut='CTRL+I', image=43)
      b.add_menu_item('My item #2', triggered=item2, image=47, tooltip='Second')
      b.add_menu_item('My item #3', shortcut='CTRL+Z', image=46, tooltip='Visible but disabled (triggered not set)')
      b.add_menu_separator()
      b.add_menu_item('My item #4', triggered=item4, tooltip='Fourth')
      b.show()
      app.exec_()
  
  if __name__ == '__main__':
      show()
  
subject: update the Button example