-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Now I am making the Linuxcnc GUI on pyqt and want to embed awlsim in one of the tabs.
But starting with this code leads to a number of errors or freezes:
from awlsim.gui.mainwindow import *
class AwlsimWidget(QWidget):
def __init__(self, parent=None, path=None):
QWidget.__init__(self, parent)
try:
mainwnd = MainWindow.start()
layout = QHBoxLayout()
layout.addWidget(mainwnd)
self.setLayout(layout)
except Exception as e:
printDebug(_("Failed to import awlsim, {}",e))
Can you add a parameter to start awlism process in the window?
Like this:
self.process = QtCore.QProcess(self)
self.process.start('xterm',['-into', str(int(self.winId())), '-geometry', "600x60+0+400"])