Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Declarative User Interfaces for Python

License

NotificationsYou must be signed in to change notification settings

nucleic/enaml

Repository files navigation

Welcome to Enaml

Appveyor Build StatusCode Coverage StatusDocumentation StatusPyPI version

Enaml is a programming language and framework for creating professional-qualityuser 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 onQt).
  • A constraints-based layout engine (built onKiwi).
  • Integration with a data model tool (built onAtom).
  • 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+, seehttps://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 theModified BSD License.

Learn More

TheGetting Started chapter is a good first step to learn more. It includesinstallation instructions.

Watch some introductory talks about Enaml and what it can do:

https://img.youtube.com/vi/ycFEwz_hAxk/2.jpg

S. Chris Colbert (@sccolbert) presents at Enthought 2012.

https://img.youtube.com/vi/G5ZYUGL7uTo/1.jpg

Tom Stordy-Allison (@tstordyallison) presents at Pycon UK 2016.

TheEnaml documentation includes all the details, includinguseful examples.

You can ask questions on theEnaml Google Groupor with theEnaml tag on StackOverflow.

For version information, see therelease notes.

Examples

TheEnaml documentation includes manyfully-functioning code samples of how to use Enaml. They range fromsimple demonstrations of how a widget is used, to advanced explorations of the customisability of Enaml GUIs.

Employee Tutorial

TheEmployee Tutorial shows how constraints and validators can be used to create easy-to-use and professional-looking applications:

http://enaml.readthedocs.io/en/latest/_images/tut_employee_layout.png

Button Ring

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

http://enaml.readthedocs.io/en/latest/_images/ex_button_ring.png

Dock Item Alerts

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

http://enaml.readthedocs.io/en/latest/_images/ex_dock_item_alerts.png

Check out thedocumentation for more examples.


[8]ページ先頭

©2009-2025 Movatter.jp