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
0
votes
1 answer

Is there a way to use qtawesome with enaml?

Is there a way to use Icons from qtawesome (https://github.com/spyder-ide/qtawesome/) within enaml?
tillsten
  • 14,491
  • 5
  • 32
  • 41
0
votes
1 answer

How to set fixed width/height in Enaml grid container

I have just come across Enaml for python GUI programming. I only used PySide2 once before for a simple calculator GUI mockup, so I'm new to both Qt and Enaml. Forgive my ignorance ;) Essentially, I want to have a regular grid of Field or other…
adigitoleo
  • 92
  • 1
  • 8
0
votes
1 answer

How to validate a field depending on the value of another field in Enaml?

Let's say I have a form with 2 IntFields. How can I validate IntField B depending on the input in IntField A? e.g. if A == 1, B can only be within 0-30; if A == 2, B can only be within 0-50; else B can be any other numbers From all I can google, I…
Porz
  • 183
  • 3
  • 15
0
votes
1 answer

[Enaml][py36]: subscription operator doesn't trigger 'visible' observer

I am building a GUI that is separated in 3 columns, and in 1+ row.s. The number of row is decided by the user through an IntField. Since every (displayed) row will contains plots, I don't want to detach them from the window in order to avoid…
Nertie
  • 1
  • 1
0
votes
1 answer

How to create a Multi-item selection dropdown list?

I want to create a multi-item selection drop-down in enaml. ComboBox widget offers this but we can only select one item at a time. Same is the case with ObjectCombo widget (however slightly different in functionality from ComboBox). Even something…
nstack
  • 13
  • 3
0
votes
1 answer

Is there an enaml widget to display a table?

I would like to display a (numeric and/or textual) table inside a Python GUI built with enaml, but surprisingly there seem to be no enaml widget for that. Some years ago, here, they said there would have been some developments in that direction, but…
Apperò
  • 41
  • 7
0
votes
1 answer

How to serialize Atom api objects without losing 'connections'

I'm using an Atom based Enaml gui and I would like to save/load the atom objects to/from disk. I have tried using pickle, but I lose the connections to the gui. from atom.api import Atom, Unicode import pickle class test(Atom): name =…
Chuck Carlson
  • 977
  • 8
  • 26
0
votes
1 answer

Enaml: How to style a CheckBox

I'm trying to get the check in a CheckBox to be more visible when the window is not selected. See the difference in the pics below. I've had no luck in trying to style it with: Style: element = 'CheckBox' Setter: …
Chuck Carlson
  • 977
  • 8
  • 26
0
votes
1 answer

Why do enaml checkbox not display their state when window not in focus?

See the screen shots below of the Employee example from the enaml distribution. The checkbox does not show it's selected value when the window loses focus. I've seen this behavior in my code and now I see the example also has this problem.
Chuck Carlson
  • 977
  • 8
  • 26
0
votes
2 answers

How can I change the datetime in my Python Atom-class, or create a setter for it?

Hi I'm new to GUI programming, so after trying PyQt for a short time I found Enaml which made the production much more easy. I'm trying to have a widget that can change the value of a datetime.datetime object or a datetime.time object, but it turns…
smileynor
  • 1
  • 4
0
votes
1 answer

How to set the background color of an enaml window?

I am trying to use enaml for creating the view for my application. I would like to know how to set the background color of the Window widget. I see that I can use a stylesheet for setting colors for things that are inside the window, but I can't…
0
votes
2 answers

is mayavi ready for enaml or stick with traits for gui design?

I (try to) write "fairly" complicated gui's that use Mayavi for the visualization piece, which is a significant portion for my application. Since Mayavi works with traitedVTK (tvtk), traitsui is a convenient medium for producing gui's. However, most…
user3391229
  • 798
  • 9
  • 17
0
votes
1 answer

How to get vertical slider in enaml?

Is it possible to do a vertical slider in enaml? I could not find any among the examples or documentation. The layout.api only seems to order different elements, not change the orientation of a given element.
tiago
  • 22,602
  • 12
  • 72
  • 88
0
votes
1 answer

What is a good link to examples of enaml being used with traits and matplotlib?

I have done GUI construction but not in Python. From other stack exchange questions and my own investigation. It looks like I want to use enaml and traits for the bulk of this work. Are there any links or references to help me get started. This is…
0
votes
1 answer

Enthought enaml tableeditor

I have an object with a custom table editor attached to the view. This table editor can have some of its column deleted by user input. When it is the case I call an update function, this function is also called at the instantiation of the…
1 2
3