
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Simple tool for creating a Qt-Dialog with updating values.
The idea behind the project was the necessity to monitor some real-time values on a robotic-prototype. The package allows you to create a simple UI with a lot of values, that are updating constantly at specified intervals, without any knowledge of QT / PySide packages
To install qtmonitor
use pip or download it from
PyPI.
pip install qtmonitor
There is an example module, which demonstrates how to write your own monitor.
Feel free to dig down and explore the code. The file is located under
you-python-packages-folder/qtmonitor/example.py
To run and see it in action feel free to use following command:
python -m qtmonitor.example
First of all, you need to create some python methods, which would return the value, you want to track. Here is a simple random int generator method. It will be used to demonstrate the module, there is no practical use for it.
import random
def random_int_value():
return random.randrange(0, 1000)
The easiest way to create you own monitor is to subclass the
qtmonitor.Monitor
class
from qtmonitor import Monitor
class MyMonitor(Monitor):
def __init__(self, parent=None):
super(MyMonitor, self).__init__(parent)
Now add at least one group to put your values in:
from qtmonitor import Monitor
class MyMonitor(Monitor):
def __init__(self, parent=None):
super(MyMonitor, self).__init__(parent)
grp = self.add_group('My group')
Add the values to the group and run the tool.
Feel free to use provided run
method:
import random
from qtmonitor import Monitor
def random_int_value():
return random.randrange(0, 1000)
class MyMonitor(Monitor):
def __init__(self, parent=None):
super(MyMonitor, self).__init__(parent)
grp = self.add_group('My group')
grp.add_value('Value', random_int_value)
grp.add_value('Value 10ms', random_int_value, interval=10)
if __name__ == '__main__':
from qtmonitor import run
run('My monitor', MyMonitor)
FAQs
Simple tool for creating a Qt-Dialog with updating values
We found that qtmonitor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.