Skip to content

Create winforms in an easy, declarative way. Specially suited for Robotics applications.

License

Notifications You must be signed in to change notification settings

njodal/WinDeklar

Repository files navigation

Description

A simple, declarative oriented framework to create WinForms in Python.

While it can be used for all kinds of forms, it was created with the purpose of being applied in Robotics, where the need to visualize complex algorithms and, above all, observe the effect of parameter changes is very common.

The forms are defined in a declarative way in an YAML (layouts, widgets, toolbar, menus, etc.) and used in a Python program with just a few lines of code.

How to use it

To create a WinForm it is necessary to create two files:

  • a declaration file (*.yaml) that define the WinForm (menu bar, toolbar, layouts, widgets, etc.)
  • a python file (with the same name) that handles all the WinForm logic (events, drawing, etc.)

For a complete form see view_example.yaml to understand how the form is defined and view_example.py how it is used.

If you run python view_example.py the form is:

winform_example

In case a simple graph is needed look at view_simple_graph.py.

Examples

Form used to visualize a PID controller for control the speed of a car

Screen Shot 2023-07-12 at 6 22 05 PM

About

Create winforms in an easy, declarative way. Specially suited for Robotics applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages