Corran Webster

Results 182 issues of Corran Webster

[Prompt toolkit](https://github.com/prompt-toolkit/python-prompt-toolkit) is a modern cross-platform Python replacement for GNU readline. This PR add support for prompt toolkit if it is available, falling back to readline and/or standard `input` if...

You can get a segfault reliably by running examples/widgets/tool_bar.enaml, selecting one of the exclusive toolbar buttons and then closing the window. Looking at the stack trace, it would appear that...

PySide bug

The name of the application is selected by looking at the enclosing directory of the main script: https://github.com/enthought/traits/blob/66b57b7c1f2127fc070fa943773c840f5f44a9ca/traits/etsconfig/etsconfig.py#L361-L383 This is often something generic, like `app`, or when being run in...

When running the following code: ``` python from traits.api import AdaptsTo, HasTraits, Instance, Interface, Supports, register_factory class ITestInterface(Interface): pass class MyClass(HasTraits): pass class MyClassTestInterfaceAdapter(HasTraits): object = Instance(MyClass) def __init__(self, object):...

When generating traits defaults, the key method that is used is the `default_value_for` method in ctraits.c which is given the trait, object and trait name, gets the default value and...

For example, see how the default value for `e_` is a string, but is a code object for a non-default value. ``` In [1]: from traits.api import Expression, HasTraits In...

Keeping two trait values synchronized between objects is a fairly common use-case. The `sync_trait` functionality is a way to do this dynamically. Internally it currently uses `on_trait_change`. Either we should...

Currently the new `TraitDict` expects to be supplied a separate `key_validator` and a `value_validator`. We should perhaps be using a single `item_validator` which is given both the key and the...

type: refactor

Currently all three of the new container classes dispatch notification via a simple: ``` for notifier in self.notifiers: notifier(self, index, removed, added) ``` This means that if a single notifier...

type: discussion

This would be straightforward to write using the standard library URL parsing module. Would potentially be useful in a number of places, most immediately for things like the `HTMLEditor` in...

type: enhancement