The TraitsUI binder does not display the label that the TraitsUI editor usually have.
For example:
from qt_binder.api import Bound, TraitsUI
from traits.api import HasStrictTraits, Int
from traitsui.api import Item, View
class NumberView(HasStrictTraits):
number = Int
def default_traits_view(self):
traits_view = View(
Bound(
TraitsUI(
Item('number', label='A nice little number'),
),
),
)
return traits_view
if __name__ == '__main__':
dialog = NumberView()
dialog.configure_traits()
The
TraitsUI
binder does not display the label that the TraitsUI editor usually have.For example:
Produces