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 Distribution

QHotReload-0.2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

QHotReload-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file QHotReload-0.2.0.tar.gz.

File metadata

  • Download URL: QHotReload-0.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for QHotReload-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b8f823fcecfcc9004f882719c86650ee02c178e25c501326047bc391a31d7e7a
MD5 166f88b556fdb76884e3b2f825eb218f
BLAKE2b-256 4f335b302e4916381de579e3f5280d4d865e69a83359e757151ec7288a7d0c21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: QHotReload-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2113bd1feb0fc38aa8e4ae8dddab7398c04b91b018c4530e75072b6d27c3cc6a
MD5 7d12b6cb7c1603b011e839f7ce7cc485
BLAKE2b-256 504b97f74261de0f06c08ff0018ed31f780ac63a70e680178e0ff5389842a8d4

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