## popup message -A disappearing message def popupMessage(function_name): ย ย ย ย """ ย ย ย ย Displays an in-view message indicating that a function has been copied to the clipboard. ย ย ย ย :param function_name: <str> #The name of the function that has been copied. ย ย ย ย :return: <None> ย ย ย ย """ ย ย ย ย mc.inViewMessage(amg="Copied!!\nFunction name '{0}' has been copied to the clipboard.".format(function_name), pos='midCenter', fade=True) # Test function is provided to test main function popupMessage def test_popupMessage(): ย ย ย ย popupMessage(function_name='exampleFunction') ย ย ย ย # Since mc.inViewMessage affects the UI, manual verification is required. ย ย ย ย print("popupMessage executed successfully.") test_popupMessage()
top of page
bottom of page
Comments