nem.ec

Programming Information Security Recipes Personal Code Snippets

Set window class in a PyGame program

Place this at the very top of your main script file.

via https://github.com/pygame/pygame/issues/71

import os
os.environ['SDL_VIDEO_X11_WMCLASS'] = 'my_class'
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.