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