Autocomplete possible method parameter values?

Is there a way to make PyCharm suggest possible method parameter values? For example, the following code shows a message box on Windows:

import ctypes
ctypes.windll.user32.MessageBoxW(0, text, title, icon)

The "icon" parameter can have the following values:

MB_OK = 0x0
MB_OKCXL = 0x01
MB_YESNO = 0x04
MB_HELP = 0x4000
ICON_INFO = 0x40
ICON_STOP = 0x10

Is there a way to define these values somewhere (in a docstring, live template, whatever), so that PyCharm shows a list of suggestions with these values when mouse cursor is at "icon" parameter position?

Please sign in to leave a comment.