Questions tagged [enaml]

Declarative User Interfaces for Python

Enaml is a Python library for creating professional quality user interfaces with minimal effort. Enaml combines a domain specific declarative language with a constraints based layout system to allow users to easily define rich UIs with complex and flexible layouts. Enaml applications can transparently run on multiple backends (Qt and Wx) and on multiple operating systems (Windows, OSX, Linux).

The project source code is on github: https://github.com/nucleic/enaml

The docs are also on github: http://nucleic.github.io/enaml/docs/

45 questions
13
votes
2 answers

Opinions about Enthought Traits/TraitsUI for Python desktop development

I'm looking for opinions and experiences about using Traits / TraitsUI / enaml for Python desktop development. The documentation and the Enthought support looks promising, so I wanted to know real first-hand experiences of developers using this…
PabloG
  • 25,761
  • 10
  • 46
  • 59
4
votes
1 answer

Is there a drawing/canvas widget in enaml?

I'd like to make UI that's basically an image that a user can trace out a path on with points connected by lines. I'd like it to be cross platform so I'm considering trying out enaml. I'm not sure how to accomplish this though. I've looked…
bj0
  • 7,893
  • 5
  • 38
  • 49
3
votes
0 answers

Packaging Enaml Application with PyInstaller

I have a single window/view enaml application (backend is PySide). I have packaged it to .exe using PyInstaller and it finishes successfully but when I run the executable it complains about the module which is in the .enaml file (I have already…
Mahdi
  • 191
  • 8
3
votes
5 answers

How to get syntax highlighting for .enaml files in PyCharm?

I am trying to learn Enaml, which is an extension to the Python language that allows you to define hierarchical trees of objects used for graphical user interfaces. Since enaml is a super-set of the Python language, its syntax can be different from…
3
votes
1 answer

Enaml: allow Window to be resizeable

If i use the Window widget, it is not resizable and fixed to its container size. How can i set the Window to be resizable? Following is not resizable: enamldef MyWindow(Window) VGroup: MPLCanvas: figure = Figure() …
tillsten
  • 14,491
  • 5
  • 32
  • 41
3
votes
2 answers

How to get key events when using enaml?

I've been using enaml (0.6.8 which is what is available with Canopy for now) and have successfully created some very useful utility applications. I would like, however, to intercept keyboard events to enable some quick keyboard shortcuts rather than…
JefferyRPrice
  • 895
  • 5
  • 17
3
votes
2 answers

How to get opencv image in an enaml space - Is it possible?

Is it possible to have enaml as target for OpenCV? I'm thinking how to setup GUI and what to use. Nothing too complicated, I need to be able to set some bitmap background, draw rectangles and circles over it, but also have the possibility to…
Crni
  • 31
  • 2
2
votes
1 answer

How do I separate model and view in ipywidgets?

Consider the example of a simple foreign exchange calculator app. I can define my model using traitlets: from traitlets import HasTraits, Float, observe, Enum import math class FXModel(HasTraits): domestic_qty = Float() foreign_qty =…
user357269
  • 1,835
  • 14
  • 40
2
votes
2 answers

Installing enaml in Anaconda

I am trying to install enaml for the latest Anaconda distribution(4.3.1). The installation guide on http://nucleic.github.io/enaml/docs/get_started/installation.html says: The sections below describe how to install Enaml and all of its dependencies…
Maugrim
  • 126
  • 6
2
votes
0 answers

Using enaml to create UI binding to string in textfile

I want to use a custom markup to generate a GUI in enaml. Is it possible to bind variables from the input form to a text file? Sample Input: template.ml !MENUBAR !ITEM TEXT="NEW FILE" ACTION="emacs -nw {{textinput}}" FORM=(@textinput@|"new…
Debanjan Basu
  • 834
  • 1
  • 8
  • 29
2
votes
1 answer

Enaml Get Arguments Passed in an Event Handler

I'm designing a UI with Enaml in Python. I have a custom control containing , say two buttons. Each time any of the two buttons is clicked, one is 1 and the other id-ed 2, I want the parent container has a sense which one is clicked. So the event…
Summer_More_More_Tea
  • 12,740
  • 12
  • 51
  • 83
2
votes
2 answers

Python Enaml "id: invalid syntax"

I am trying to use id's in an enaml file and when I run the program with enaml-run hello_world.enaml I get this output File "hello_world.enaml", line 10 id: pb1 SyntaxError: invalid syntax The output always produces an invalid syntax error…
user2887117
  • 203
  • 2
  • 12
2
votes
1 answer

Create OK/Cancel dialog

It should be so simple, but I have not been able to figure out how to do a simple OK/cancel confirmation dialog in enaml. Could someone please enlighten me? I am using an ETS toolkit of Qt4 with pyside api, python 2.7, and enaml 0.6.8. My…
benpro
  • 4,325
  • 4
  • 19
  • 17
2
votes
1 answer

How to accomplish initial Splitter and SplitItem layout with enaml?

I'm using the enaml toolkit and would like to know how to initialize Splitter / SplitItem layouts. Below is some very simple sample code. I'd like the window to start with the left SplitItem taking about 2/3 of the window width with the right…
JefferyRPrice
  • 895
  • 5
  • 17
1
vote
1 answer

No module named 'atom'

I am trying to run enaml-native create app for the first time, but I always get the error: however I already have the module installed: Does anybody know how to fix this?
Lokian
  • 93
  • 11
1
2 3