Skip to content

Commit cc15be8

Browse files
committed
Updated README and bumped version for Qt5 addition.
And replaced `exec_` with `exec` in Qt5 examples.
1 parent 319cafe commit cc15be8

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ You can use `ScrollableContainers` to reduce headaches.
1010
pip install ScrollableContainers
1111
```
1212

13+
[Tkinter](#Tkinter) [wxPython](#wxPython) [Qt5](#Qt5)
14+
1315
# Tkinter
1416
`ScrollableContainers.Tk.ScrollableFrameTk`: a comprehensive implementation of a scrollable frame.
1517

@@ -39,3 +41,14 @@ Add widgets to the `panel` attribute of a `ScrollablePanelWx` object.
3941
### Features
4042
* Does everything the wrapped class does.
4143
* Horizontally centres the contents if the window is wider.
44+
45+
# Qt5
46+
`ScrollableContainers.Qt5.ScrollableAreaQt5`: a thin wrapper around `PyQt5.QtWidgets.QScrollArea`.
47+
48+
### Usage
49+
Add widgets to the `area` attribute of a `ScrollableAreaQt5` object.
50+
[See examples.](https://github.com/tfpf/ScrollableContainers/blob/main/examples/examples_ScrollableAreaQt5.py)
51+
52+
### Features
53+
* Does everything the wrapped class does.
54+
* Horizontally centres the contents if the window is wider.

examples/examples_ScrollableAreaQt5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def grid_of_widgets():
2424

2525
window.setCentralWidget(scrollable_area)
2626
window.show()
27-
app.exec_()
27+
app.exec()
2828

2929
###############################################################################
3030

@@ -39,7 +39,7 @@ def single_widget():
3939

4040
window.setCentralWidget(scrollable_area)
4141
window.show()
42-
app.exec_()
42+
app.exec()
4343

4444
###############################################################################
4545

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ScrollableContainers"
7-
version = "1.0a"
7+
version = "1.0a3"
88
authors = [
99
{ name="Vishal Pankaj Chandratreya" },
1010
]

0 commit comments

Comments
 (0)