Hot relading tool for PySide and PyQt
Project description
QHotReload
Hot relading tool for PySide and PyQt
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16e4b961e690e7d1cba2300e27fdaab8f9743daf8df6ee0c582677322e509ee4
|
|
| MD5 |
dd0bf3caff0662d91ed53b1bb3a501ef
|
|
| BLAKE2b-256 |
e6a457e220c37715e769c7d85dcb6773084fba00f75e332c6f335d0a2cfc65e8
|