Lcnc_3dGraphics
26 May 2024 13:47 - 27 May 2024 11:33 #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
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.
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
Last edit: 27 May 2024 11:33 by JT.
Please Log in or Create an account to join the conversation.
26 May 2024 14:26 - 27 May 2024 11:30 #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
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
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
Last edit: 27 May 2024 11:30 by JT.
Please Log in or Create an account to join the conversation.
26 May 2024 14:50 - 27 May 2024 11:32 #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
Last edit: 27 May 2024 11:32 by JT.
Please Log in or Create an account to join the conversation.
- Felipe5Sosa
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
12 Jul 2024 06:38 #304971
by Felipe5Sosa
Replied by Felipe5Sosa on topic Python gcode.parse and gcode.calc_extents
Great info btw
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds