Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nucleic/enaml
Declarative User Interfaces for Python
https://github.com/nucleic/enaml
enaml python
Last synced: 28 days ago
JSON representation
Declarative User Interfaces for Python
- Host: GitHub
- URL: https://github.com/nucleic/enaml
- Owner: nucleic
- License: other
- Created: 2013-03-06T21:29:01.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T19:42:31.000Z (2 months ago)
- Last Synced: 2024-10-01T20:04:40.093Z (about 1 month ago)
- Topics: enaml, python
- Language: Python
- Homepage: http://enaml.readthedocs.io/en/latest/
- Size: 39.8 MB
- Stars: 1,529
- Watchers: 51
- Forks: 130
- Open Issues: 50
-
Metadata Files:
- Readme: README.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-python-resources - GitHub - 15% open · ⏱️ 19.08.2022): (图形用户界面)
- awesome-starts - nucleic/enaml - Declarative User Interfaces for Python (Python)
README
Welcome to Enaml
================.. image:: https://github.com/nucleic/enaml/workflows/Continuous%20Integration/badge.svg
:target: https://github.com/nucleic/enaml/actions
.. image:: https://ci.appveyor.com/api/projects/status/p2bapt3y6n7xixcl?svg=true
:target: https://ci.appveyor.com/project/nucleic/enaml
:alt: Appveyor Build Status
.. image:: https://codecov.io/gh/nucleic/enaml/branch/main/graph/badge.svg
:target: https://codecov.io/gh/nucleic/enaml
:alt: Code Coverage Status
.. image:: https://github.com/nucleic/enaml/workflows/Documentation%20building/badge.svg
:target: https://github.com/nucleic/enaml/actions
.. image:: https://readthedocs.org/projects/enaml/badge/?version=latest
:target: http://enaml.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/enaml.svg
:target: https://pypi.org/project/enaml/
:alt: PyPI versionEnaml is a programming language and framework for creating professional-quality
user interfaces with minimal effort.What you get
============
* A declarative programming language, with a Pythonic flavour.
* Dozens of widgets, ready to go out-of-the-box (built on `Qt `_).
* A constraints-based layout engine (built on `Kiwi `_).
* Integration with a data model tool (built on `Atom `_).
* An (optional) editor to allow you to see what the results will look like, as you type your code.
* A well-documented and easy-to-follow code base, plus documentation with plenty of worked examples.
* Language definitions for a number of popular editors.What it can do for you
======================
- Build native GUI applications for a range of platforms+ Quick and simple or complex and specialised.
+ See the structure of your GUI at a glance.- Let you rapidly prototype new GUIs interfaces.
+ Intelligently layout your GUI, using symbolic constraints.
+ It automatically adapts for different platforms, different window sizes.
+ Tell the layout engine what your priorities are for layout, without having to count pixels.- Encourages easy-to-maintain code:
+ The GUI can detect updates in the model, and refresh its widgets automatically, without low-level code.
+ Clean separation between your model and view, while keeping your controller code simple.* You can incorporate Python code directly in the view layer.
* As your GUI design evolves, the constraints engine can adapt the layout.
* Object-Oriented design allows you to reuse parts of your GUI in other parts of your projects.- Let you customise a GUI for your particular needs.
+ Integrates with your Python code.
+ Include style-sheets to change the appearance across all, or part, of your application quickly.
+ Extend the available widgets or build your own.Supported Versions
==================
Enaml applications can be run on any platform which supports Python (3.6+).
The Qt backend requires Qt (5.9+, see https://doc.qt.io/qt-5/supported-platforms.html).This includes Linux, Windows, MacOSX, Android and iOS. (Automated testing of Enaml runs on Linux, Windows and MacOSX.)
Enaml is licensed under the `Modified BSD License `_.
Learn More
==========
The `Getting Started `_ chapter is a good first step to learn more. It includes `installation instructions `_.Watch some introductory talks about Enaml and what it can do:
.. image:: https://img.youtube.com/vi/ycFEwz_hAxk/2.jpg
:target: https://youtu.be/ycFEwz_hAxk`S. Chris Colbert (@sccolbert) presents at Enthought 2012. `_
.. image:: https://img.youtube.com/vi/G5ZYUGL7uTo/1.jpg
:target: https://www.youtube.com/watch?v=G5ZYUGL7uTo`Tom Stordy-Allison (@tstordyallison) presents at Pycon UK 2016. `_
The `Enaml documentation `_ includes all the details, including `useful examples `_.
You can ask questions on the `Enaml Google Group `_
or with the `Enaml tag on StackOverflow `_.For version information, see the `release notes `_.
Examples
========
The `Enaml documentation `_ includes many `fully-functioning code samples `_ of how to use Enaml. They range from `simple demonstrations of how a widget is used `_, to advanced explorations of the customisability of Enaml GUIs.Employee Tutorial
~~~~~~~~~~~~~~~~~
The `Employee Tutorial `_ shows how constraints and validators can be used to create easy-to-use and professional-looking applications:.. image:: http://enaml.readthedocs.io/en/latest/_images/tut_employee_layout.png
:target: http://enaml.readthedocs.io/en/latest/examples/tut_employee.htmlButton Ring
~~~~~~~~~~~
The `Button Ring Example `_ goes the other way. The result is neither professional-looking nor easy-to-use, but it shows the power and flexibility of constraints-based layout - it might be silly, but this could not be achieved with typical layout systems... image:: http://enaml.readthedocs.io/en/latest/_images/ex_button_ring.png
:target: https://enaml.readthedocs.io/en/latest/examples/ex_button_ring.htmDock Item Alerts
~~~~~~~~~~~~~~~~
The `Dock Item Alerts Example `_ shows some of the customisability of the appearances of an Enaml application. This application's appearance is based on Visual Studio 2010 style, with dockable items, but has some customisations based on the importance of the alerts being shown... image:: http://enaml.readthedocs.io/en/latest/_images/ex_dock_item_alerts.png
:target: https://enaml.readthedocs.io/en/latest/examples/ex_dock_item_alerts.htmlCheck out the `documentation `_ for more examples.