gcode预览测试

This commit is contained in:
2026-05-14 20:21:16 +08:00
parent 65f221a5d8
commit 837996c436
17 changed files with 1363 additions and 296 deletions

13
refer/test_linewidth.py Normal file
View 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()