标签: movewindow

我可以在屏幕上移动pygame游戏窗口(pygame)

在我正在制作的游戏中,我试图在屏幕上移动窗口进行迷你游戏(不要问)我已经尝试过我看到的自己的线程并且只找到1

x = 100
y = 0
import os
os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (x,y)

import pygame
pygame.init()
screen = pygame.display.set_mode((100,100))

# wait for a while to show the window.
import time
time.sleep(2)
Run Code Online (Sandbox Code Playgroud)

并且它不起作用(请记住,我不是超级经验,目前代码作为一种爱好)

python pygame window movewindow

6
推荐指数
1
解决办法
1436
查看次数

标签 统计

movewindow ×1

pygame ×1

python ×1

window ×1