gcode预览测试
This commit is contained in:
13
refer/test_linewidth.py
Normal file
13
refer/test_linewidth.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
from PyQt6.QtOpenGLWidgets import QOpenGLWidget
|
||||
class W(QOpenGLWidget):
|
||||
def initializeGL(self):
|
||||
import OpenGL.GL as gl
|
||||
bounds = gl.glGetFloatv(gl.GL_ALIASED_LINE_WIDTH_RANGE)
|
||||
print("Line width range:", bounds)
|
||||
sys.exit(0)
|
||||
app = QApplication([])
|
||||
w = W()
|
||||
w.show()
|
||||
app.exec()
|
||||
Reference in New Issue
Block a user