移动无框pygame窗口?

时间:2015-02-28 21:56:37

标签: python pygame sdl

我的问题是:如何移动窗口(又名显示/视频窗口)设置为NOFRAME

window = pygame.display.set_mode((480,480), NOFRAME)

我发现你可以在初始化pygame之前指定一个带有窗口初始位置的SDL变量,如下所示:

os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (x, y)
pygame.init()

但是,如何在应用运行时更改 x y ,例如,使用鼠标拖动窗口?

我找到了Tkinter,Qt,Pyside,wm的解决方案,但不是pygame应用程序。

0 个答案:

没有答案