Skip to content

Commit 8d0da63

Browse files
authored
0.7.1
add tool-tip for `widgets.DiskSpaceIndicator`
2 parents 182a9c9 + 119b74e commit 8d0da63

File tree

5 files changed

+78
-69
lines changed

5 files changed

+78
-69
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [0.7.1] - 2025-07-16
10+
11+
### Changed
12+
- `widgets.DiskSpaceIndicator`: add a tool-tip
13+
914
## [0.7.0] - 2025-07-16
1015

1116
### Added
@@ -140,6 +145,8 @@ _First release._
140145
providing color-mapped numerical data.
141146
- `widgets.StatefulButton`: A `QPushButton` that maintains an active/inactive state.
142147

148+
[0.7.1]: https://github.com/int-brain-lab/iblqt/releases/tag/v0.7.1
149+
[0.7.0]: https://github.com/int-brain-lab/iblqt/releases/tag/v0.7.0
143150
[0.6.1]: https://github.com/int-brain-lab/iblqt/releases/tag/v0.6.1
144151
[0.6.0]: https://github.com/int-brain-lab/iblqt/releases/tag/v0.6.0
145152
[0.5.0]: https://github.com/int-brain-lab/iblqt/releases/tag/v0.5.0

iblqt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""A collection of extensions to the Qt framework."""
22

3-
__version__ = '0.7.0'
3+
__version__ = '0.7.1'

iblqt/widgets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
from iblqt import resources # noqa: F401
6161
from iblqt.core import QAlyx, RestrictedWebEnginePage, Worker
62+
from iblutil.util import format_bytes
6263

6364

6465
class CheckBoxDelegate(QStyledItemDelegate):
@@ -666,6 +667,7 @@ def updateData(self) -> None:
666667
def _on_result(self, result: _ntuple_diskusage) -> None:
667668
percent = round(result.used / result.total * 100)
668669
self.setValue(percent)
670+
self.setToolTip(f'{format_bytes(result.free)} available')
669671

670672

671673
class RestrictedWebView(QWidget):

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies = [
1111
"numpy",
1212
"pyqtgraph>=0.13.7",
1313
"ONE-api>=3.0.0",
14+
"iblutil>=1.20.0"
1415
]
1516
keywords = ["pyqt", "qt", "pyside", "qtpy"]
1617
requires-python = ">=3.10"
@@ -78,7 +79,6 @@ ci = [
7879
]
7980

8081
[tool.uv]
81-
constraint-dependencies = ["llvm>0.43.0", "numba>0.53.1"]
8282
required-environments = [
8383
"sys_platform == 'win32'",
8484
"sys_platform == 'linux'",
@@ -118,6 +118,10 @@ known-first-party = [ "ibl*", "one*" ]
118118
[tool.mypy]
119119
packages = ["iblqt"]
120120

121+
[[tool.mypy.overrides]]
122+
module = ["iblutil.*"]
123+
ignore_missing_imports = true
124+
121125
[tool.pytest.ini_options]
122126
addopts = "--cov=iblqt"
123127
minversion = "6.0"

0 commit comments

Comments
 (0)