#NEWLINE# def CreateMenuItem( self , MenuItemId , PluginContext , CaptionText , HintText = '' , IconPath = '' , Enabled = True , ContactType = pluginContactTypeAll , MultipleContacts = False ) : #NEWLINE# #INDENT# 'Creates custom menu item in Skype client\'s "Do More" menus.\n\n        :Parameters:\n          MenuItemId : unicode\n            Unique identifier for the menu item.\n          PluginContext : `enums`.pluginContext*\n            Menu item context. Allows to choose in which client windows will the menu item appear.\n          CaptionText : unicode\n            Caption text.\n          HintText : unicode\n            Hint text (optional). Shown when mouse hoovers over the menu item.\n          IconPath : unicode\n            Path to the icon (optional).\n          Enabled : bool\n            Initial state of the menu item. True by default.\n          ContactType : `enums`.pluginContactType*\n            In case of `enums.pluginContextContact` tells which contacts the menu item should appear\n            for. Defaults to `enums.pluginContactTypeAll`.\n          MultipleContacts : bool\n            Set to True if multiple contacts should be allowed (defaults to False).\n\n        :return: Menu item object.\n        :rtype: `PluginMenuItem`\n        ' #NEWLINE# cmd = ( 'CREATE MENU_ITEM %s CONTEXT %s CAPTION %s ENABLED %s' % ( tounicode ( MenuItemId ) , PluginContext , quote ( tounicode ( CaptionText ) ) , cndexp ( Enabled , 'true' , 'false' ) ) ) #NEWLINE# if HintText : #NEWLINE# #INDENT# cmd += ( ' HINT %s' % quote ( tounicode ( HintText ) ) ) #NEWLINE# #UNINDENT# if IconPath : #NEWLINE# #INDENT# cmd += ( ' ICON %s' % quote ( path2unicode ( IconPath ) ) ) #NEWLINE# #UNINDENT# if MultipleContacts : #NEWLINE# #INDENT# cmd += ' ENABLE_MULTIPLE_CONTACTS true' #NEWLINE# #UNINDENT# if ( PluginContext == pluginContextContact ) : #NEWLINE# #INDENT# cmd += ( ' CONTACT_TYPE_FILTER %s' % ContactType ) #NEWLINE# #UNINDENT# self . _Skype . _DoCommand ( cmd ) #NEWLINE# return PluginMenuItem ( self . _Skype , MenuItemId , CaptionText , HintText , Enabled )