Skip to main content

Simple CSS-like language which allows for drawing and styling wxPython elements.

Project description

UI Style Lang (Language)

"UI Style Lang"

UI Style Lang is a simple CSS-like language which allows for drawing and styling wxPython elements. Many UI Style Lang properties are the same as the normal (not short-hand) CSS3 properties. This provides a familiar syntax, especially for those with experience with CSS3.

WIP/ TODO

  • SVG support(?).
  • More widget styling support

Features

  • Written in pure Python with minimal dependancies (just wxPython and the standard library)

  • Drawing API

    • Includes the UIStylePDC UI Style Lang class which is a powerful extension of the wxPython wx.PseudoDC
    • Over 15 stylesheet properties already supported
    • Draw circles, rectangles, squares, images, & text
    • Translate & rotate objects
    • Load styles from inline styles and an external stylesheet
    • Auto-handles IDs, with support for manual-handling of IDs
  • Widget Styling API

    • Supports loading from a stylesheet for easy theming
    • Support for styling panels, frames (currently)

Development

Pull requests and/or feature suggestions are welcome!

Usage

See the docs and full demos for information on usage...

License

UI Style Lang is licensed under the BSD 3-Clause license

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

uistylelang-0.5.0.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

uistylelang-0.5.0-py3-none-any.whl (13.2 kB view hashes)

Uploaded Python 3

Supported by

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