Debian Codegraph @

envisage/ui/tasks/preferences_category.py

raw
1 # (C) Copyright 2007-2025 Enthought, Inc., Austin, TX
2 # All rights reserved.
3 #
4 # This software is provided without warranty under the terms of the BSD
5 # license included in LICENSE.txt and may be redistributed only under
6 # the conditions described in the aforementioned license. The license
7 # is also available online at http://www.enthought.com/licenses/BSD.txt
8 #
9 # Thanks for using Enthought open source!
10 # Enthought library imports.
11 from traits.api import HasTraits, Str
12
13
14 class PreferencesCategory(HasTraits):
15 """The description for a container of PreferencesPanes."""
16
17 # The globally unique identifier for the category.
18 id = Str
19
20 # The user-visible name of the category.
21 name = Str
22
23 # The category appears after the category with this ID.
24 before = Str
25
26 # The category appears after the category with this ID.
27 after = Str
28
29 ###########################################################################
30 # Protected interface.
31 ###########################################################################
32
33 def _name_default(self):
34 """By default, use the ID for the name."""
35 return self.id