Skip to content

Qt --convert my.ui #131

@mottosso

Description

@mottosso

Goal

In response to #99 and #129, provide a safe conversion from .ui files compiled with PySide2 to an equivalent Qt.py-compatible module.

Implementation

From a plain-text Python module, produce a module with full cross-binding compatibility with Qt.py using plain old search-and-replace.

$ pyside2-uic.exe my_ui.ui -o my_ui.py
$ python -m Qt --convert my_ui.py  # save original as `original_my_ui.py`
$ cat my_ui.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions