Skip to main content

No project description provided

Project description

logo

uiml

A speacial XML format for drawing PySide6 UI interfaces A special XML format for drawing PySide6 UI interfaces




Introduction

uiml is a tool for drawing PySide6 UI interfaces using a special XML format. It defines the layout, style, and signals of the interface using a special XML format. The syntax of uiml is very simple and easy to learn and use. You can use uiml to create complex interfaces without writing a lot of code.

The syntax of uiml is based on XML, but it adds support for Python objects, so it has both the lightness of XML and the flexibility of Python objects.

Installation

To use uiml, you need to install it first. You can install uiml using pip:

pip install uiml

Usage

To use uiml, you need to create a uiml file and define the layout, style, and signals of the interface in it. Here is a simple example:

<layout name="central_layout" direction="v">
    <QLabel name="text" arg=["This is a label"] />
    <layout name="bottom_layout" direction="h" stretch="true">
        <QPushButton name="ok_button" arg=["Close the window"] style="selected" signals={"clicked": self.close} />
    </layout>
</layout>

Properties

layout

This is a layout object, which can add layout objects as children or add component objects. Parameters:

  • name: The name of the layout object, used to reference it in the code.
  • direction: The direction of the layout, can be "v" (vertical) or "h" (horizontal), can be extended.
  • stretch: The stretch factor of the layout object, can be "true" or "false".

Widget

This is a component object, the tag name of the object is the name of the control, such as "QLabel", "QPushButton" etc. Parameters:

  • name: The name of the component object, used to reference it in the code.
  • arg: The parameters of the component object, stored in a list, can be strings, lists, dictionaries etc.
  • kwarg: The properties of the component object, with keywords, stored in a dictionary, can be strings, lists, dictionaries etc.
  • style: The style of the component object, can be strings, lists, dictionaries etc.
  • signals: The signals of the component object, stored in a dictionary, the key is the signal name, the value is the signal processing function.
  • init_steps: The initialization steps of the component object, stored in a list, the sub-items are stored in a dictionary.

Project details


Download files

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

Source Distribution

uiml-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uiml-0.1.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file uiml-0.1.1.tar.gz.

File metadata

  • Download URL: uiml-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for uiml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 612924bf4062134ef5b1e6566be4560972b2a71f01602854c5bd77686f158a8d
MD5 048ed0b7261efc30c84b4eb08fd086c8
BLAKE2b-256 9a3a776fa5403378133324093da2fa826695c19077f3e27fcc88761a3236f90e

See more details on using hashes here.

File details

Details for the file uiml-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: uiml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for uiml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20c49f4c3bc8d79335dff3c0dc1bd29b3c5915c79c501ccedc5d9454612c3eda
MD5 2b129a1607d3ac74137de06efbad6fc0
BLAKE2b-256 957bde701b108b71841256a0fa601ffd079fdd89645538d4442bd84c541785a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page