使用pyopengl时,窗口标题出现TypeError的错误,查看*得知,传入的是字符串类型需要改为如下形式:
wintitle = b"Yixn for PyOpengl"
glutCreateWindow(wintitle)
Basically you need to specify that you are passing byte data rather than a string using b‘Window Title‘
2024-01-05 21:25:16
使用pyopengl时,窗口标题出现TypeError的错误,查看*得知,传入的是字符串类型需要改为如下形式:
wintitle = b"Yixn for PyOpengl"
glutCreateWindow(wintitle)
Basically you need to specify that you are passing byte data rather than a string using b‘Window Title‘
下一篇:WinForm 窗体的边框