Skip to main content


Project description

CI codecov Code style: black


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


  • 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.

# 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)

    Text(text="Center aligned text with a large margin."),
    margin=(10, 10, 30, 5),  # (left,right,top,below),)


  • 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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aio_wx_widgets, version 1.3.10
Filename, size File type Python version Upload date Hashes
Filename, size aio_wx_widgets-1.3.10-py3-none-any.whl (27.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aio_wx_widgets-1.3.10.tar.gz (83.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page