Skip to content

A module for embedding windows of external applications (any .exe files) inside PyQt6 widgets. It allows you to integrate third-party programs directly into the interface of your application, creating a single working environment.

License

Notifications You must be signed in to change notification settings

b1t0nese/EmbeddedProgramQtWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EmbeddedProgramQtWidget

A module for embedding windows of external applications (any .exe files) inside PyQt6 widgets. It allows you to integrate third-party programs directly into the interface of your application, creating a single working environment.

Example uses.

Window

from PyQt6.QtWidgets import QApplication
import sys
from embedded_program_qt import EmbeddedProgramWidget

process_name = input('Введите название процесса приложения (пример "chrome.exe"): ')
app = QApplication(sys.argv)
window = EmbeddedProgramWidget(process_name)
window.show()
sys.exit(app.exec())

Widget

from PyQt6.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout
import sys
from embedded_program_qt import EmbeddedProgramWidget

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("Встроенное приложение")
        self.setGeometry(100, 100, 800, 600)

    def initUI(self):
        central_widget = QWidget()
        self.setCentralWidget(central_widget)
        layout = QVBoxLayout(central_widget)
        layout.setContentsMargins(0, 0, 0, 0)
        self.embedded_widget = EmbeddedProgramWidget(input('Введите название процесса (например "notepad.exe"): '))
        layout.addWidget(self.embedded_widget)

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MainWindow()
    window.show()
    sys.exit(app.exec())

About

A module for embedding windows of external applications (any .exe files) inside PyQt6 widgets. It allows you to integrate third-party programs directly into the interface of your application, creating a single working environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages