Re: how to write gui for FEM using traits
Ondrej Certik <
ondrej@...>
2009-08-01 05:11:43 GMT
On Fri, Jul 31, 2009 at 10:31 PM, Robert Kern<rkern@...> wrote:
> On Fri, Jul 31, 2009 at 23:21, Ondrej Certik<ondrej@...> wrote:
>> On Fri, Jul 31, 2009 at 10:08 PM, Ondrej Certik<ondrej@...> wrote:
>>> On Fri, Jul 31, 2009 at 8:02 PM, Ondrej Certik<ondrej@...> wrote:
>>>
>>
>>>
>>> I am almost sure I must be doing something wrong, but I can't figure
>>> it out. I looked at mayavi, but it uses plugins and some other way to
>>> construct menus. And I didn't find any example of this either, only
>>> using pyface, where btw I got the exact same behavior, but using
>>> Group() fixes it.
>>
>> I found pretty good full blown application in
>> AppTools_3.3.1/enthought/rst, and there it uses pyface's Group() to
>> fix the order in the menu. That works for me too.
>>
>> But isn't this a hack to use pyface? I thought the idea is to use
>> traits.ui only and leave the rendering to pyface.
>
> Traits UI doesn't really use PyFace all that much; actions, dock
> widgets, ImageResource, and the grid control, really. Use Traits UI
> for the things that Traits UI are good for; PyFace for what it's good
> for.
>
> Traits UI is a framework. It's good for a large, but finite number of
> tasks. In particular, it's good for implementing individual views of
> models. PyFace is good for implementing the main application window
> stuff (menus, toolbars, etc.) with maximum flexibility. Fortunately,
> these are easily combined. For example, the Workbench Envisage plugin
(Continue reading)