云line
云line
You need to run `python setup.py format` to format the code.
Got an error when passing an io.BytesIO to the Font() Test Code: ```py import pygame import pygame.font import io pygame.init() pygame.font.init() with open("fusion-pixel.otf","rb") as f: fnt=f.read() f=io.BytesIO(fnt) font=pygame.font.Font(f) print(font.path) ```...
Currently, if a BytesIO object is passed, the path will be like `""` Is it better to set the path to `None` if the font is not loaded from a...
The bug can be fixed if you add a `pygame.init()`, because the init hook of window module is called when display module init, then the init hook sets the event...
> Using pygame.display.set_mode with pygame.RESIZABLE this problem never surfaces The resize event watch of display module is set in `set_mode()`, so it's not influenced by this bug.
Following infomation may be useful: Accroding to the comments in SDL_video.h of SDL2.30.9: ```c typedef enum { ... SDL_WINDOWEVENT_FOCUS_GAINED, /**< Window has gained keyboard focus */ ... SDL_WINDOWEVENT_TAKE_FOCUS, /**< Window...
> Thank you for submitting a PR, please provide a signed off by line as outlined in https://github.com/Klipper3d/klipper/blob/master/docs/CONTRIBUTING.md Updated
I didn't find a significant quality improvement with `overvoltage_threshold` set to 13v (my power supply is 12v) or 30v. That could because the printer is running at a low speed...
You can try `pygame._sdl2.mixer.set_post_mix`
In electron, they use `-webkit-app-region: drag` to set a draggable region. https://www.electronjs.org/docs/latest/tutorial/window-customization#set-custom-draggable-region So `Window.add_draggable_region()`, `Window.add_resize_region()` and `Window.clear_special_regions()` could be better names (? But the name of the hittest event is...