Skip to main content

CI codecov Code style: black

aio_wx_widgets

Wx python app structure using MVC model. Work in progress, adding widgets when I need them. See the demo folder for usage.

Features:

  • Add widgets using context managers.
  • Two-way or one-way Property binding from controller properties to the view.
  • Proper Margins and alignment of items

The example below is a bit outdated, but gives a rough idea. Please see the demo for more.

```python
# Use a context manager for container types like a group or grid.
# A group is a container with a label and a sizer inside. Inside
# this sizer widgets, or other containers can be placed.
with self.add(Group("A labelled container.")) as group:
    group.add(Text(text="A horizontal grid."))

    with group.add(Grid()) as grd:
        # the binding binds to an attribute defined in the controller
        # the weight determines how much space a specific item should consume
        # with respect to the other members of the container.
        grd.add(IntEntry(binding=self.bind("value_1")), weight=6, margin=3)
        grd.add(IntEntry(binding=self.bind("value_1")), weight=4, margin=3)
        grd.add(IntEntry(binding=self.bind("value_1")), weight=4, margin=3)
```


```python
vert_grid.add(
    Text(text="Center aligned text with a large margin."),
    margin=(10, 10, 30, 5),  # (left,right,top,below)
    align_horizontal=AlignHorizontal.center,)
```

Installation

  • Create a virtual env, activate it and pip install aio_wx_widgets

Running the demo

  • Install the libary as described above.
  • clone the repo.
  • from the activated virtualenv: python -m demo

Metadata

Release files for aio_wx_widgets 1.3.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio_wx_widgets 1.3.10
File Size Uploaded
aio_wx_widgets-1.3.10.tar.gz 83.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aio_wx_widgets 1.3.10
File Interpreter ABI Platform
aio_wx_widgets-1.3.10-py3-none-any.whl Python 3 none any Details

Total release size: 110.6 kB

Release files / aio_wx_widgets-1.3.10.tar.gz

Download URL aio_wx_widgets-1.3.10.tar.gz
Size 83.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c95463ae62b33fd09c7fc12da49fd245ac5fa3dc31c7412a5bccc37a9c4a6d49
BLAKE2b-256 checksum
How to use checksums
44a1ebd0721f01707390fa4b36008f6566c3e7508a7b4880f7bccbe1b0457524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release files / aio_wx_widgets-1.3.10-py3-none-any.whl

Download URL aio_wx_widgets-1.3.10-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a858d87b4cd201262a8d6ff3cfa9dde416ef292e9ee0a332ba2b765c653a8e4b
BLAKE2b-256 checksum
How to use checksums
0786ee5db799c0349cc7630cb98391263e37b7fc77933b1df3effafbfb671d73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release history Release notifications | RSS feed

This release

1.3.10 This release

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page