Skip to content

Add the ability to embed the application #28

@uncle-yura

Description

@uncle-yura

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"])

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions