Skip to main content

Hot relading tool for PySide and PyQt

Project description

QHotReload

Hot relading tool for PySide and PyQt

GIF 2023-8-21 11-44-32

Other Language

Usage

To load the main body of the Qt window, please wrap the QWigdet or QMainWindow you defined with Reload,e.g.

@Reload
class MyWindow(QWidget):
    def __init__(self):
        super().__init__()
        # ...

Meanwhile, after your window is showed, use the watch functor to listen to the current Python file, Then expose the window variable to the global namespace of QHotReload module,e.g.

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MyWindow()
    window.show()

    QHotReload.window = window
    watch(__file__)

    app.exec_()

Examples

Please check out example.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

QHotReload-0.2.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file QHotReload-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: QHotReload-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for QHotReload-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16e4b961e690e7d1cba2300e27fdaab8f9743daf8df6ee0c582677322e509ee4
MD5 dd0bf3caff0662d91ed53b1bb3a501ef
BLAKE2b-256 e6a457e220c37715e769c7d85dcb6773084fba00f75e332c6f335d0a2cfc65e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page