- Posts: 1109
- Thank you received: 3
Lcnc_3dGraphics
2 years 5 months ago #301478
by JT
Lcnc_3dGraphics was created by JT
Just floundering about I tried to add Lcnc_3dGraphics to a QFrame container to see if by magic that would work.
And I get this error.
JT
Code:
def setup_plot(parent):
if 'plot_widget' in parent.children:
from qt5_graphics import Lcnc_3dGraphics
layout = QVBoxLayout(parent.plot_widget)
layout.addWidget(Lcnc_3dGraphics)
And I get this error.
Code:
layout.addWidget(Lcnc_3dGraphics)
TypeError: addWidget(self, a0: QWidget, stretch: int = 0, alignment: Qt.AlignmentFlag = Qt.Alignment()): argument 1 has unexpected type 'sip.wrappertype'
JT
Please Log in to join the conversation.
2 years 5 months ago #301482
by JT
Replied by JT on topic Lcnc_3dGraphics
I also tried the following
And got this error
So something is working up to a point.
JT
Code:
def setup_plot(parent):
if 'plot_widget' in parent.children:
from qt5_graphics import Lcnc_3dGraphics
parent[code].plotter = Lcnc_3dGraphics()
layout = QVBoxLayout(parent.plot_widget)
layout.addWidget(parent[code].plotter)
And got this error
Code:
john@cave:~/github/flexgui/flexgui/src$ ./flexgui
[DEFAULT][INFO] Logging to: /home/john/default.log (logger.py:106)
QWidget: Must construct a QApplication before a QWidget
Aborted
So something is working up to a point.
JT
Please Log in to join the conversation.
2 years 5 months ago #301484
by JT
Replied by JT on topic Python gcode.parse and gcode.calc_extents
Well this will not work Flex GUI is PyQt6 and all of lcnc is pyqt5... and QGLWidget is not in Qt6 it's been removed.
JT
JT
Please Log in to join the conversation.
- Felipe5Sosa
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
2 years 3 months ago #304971
by Felipe5Sosa
Replied by Felipe5Sosa on topic Python gcode.parse and gcode.calc_extents
Great info btw
Please Log in to join the conversation.
Time to create page: 1.453 seconds
