Skip to content

Commit

Permalink
Expose more ui traits in Pyface API (#1229)
Browse files Browse the repository at this point in the history
This adds a few trait types from pyface.ui_traits which were not in the
public API. It also makes the Font and Color classes visible, for
consistency.

Fixes #1071
  • Loading branch information
corranwebster authored Mar 29, 2023
1 parent 38e60c6 commit bd21b61
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pyface/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,27 @@
---------
- :attr:`~.Alignment`
- :class:`~.Border`
- :class:`~.HasBorder`
- :class:`~.HasMargin`
- :class:`~.Image`
- :class:`~.Margin`
- :attr:`~.Orientation`
- :attr:`~.Position`
- :class:`~.PyfaceColor`
- :class:`~.PyfaceFont`
Miscellaneous
-------------
- :class:`~.ArrayImage`
- :class:`~.BaseDropHandler`
- :class:`~.Border`
- :class:`~.beep`
- :class:`~.FileDropHandler`
- :class:`~.Filter`
- :class:`~.HeadingText`
- :class:`~.ImageCache`
- :class:`~.LayeredPanel`
- :class:`~.Margin`
- :class:`~.PILImage`
- :class:`~.PythonEditor`
- :class:`~.PythonShell`
Expand Down Expand Up @@ -138,12 +142,14 @@
from .beep import beep
from .clipboard import clipboard, Clipboard
from .confirmation_dialog import confirm, ConfirmationDialog
from .color import Color
from .constant import OK, CANCEL, YES, NO
from .dialog import Dialog
from .directory_dialog import DirectoryDialog
from .drop_handler import BaseDropHandler, FileDropHandler
from .file_dialog import FileDialog
from .filter import Filter
from .font import Font
from .gui import GUI
from .gui_application import GUIApplication
from .heading_text import HeadingText
Expand Down Expand Up @@ -198,7 +204,10 @@
from .split_dialog import SplitDialog
from .split_panel import SplitPanel
from .system_metrics import SystemMetrics
from .ui_traits import Alignment, Border, HasBorder, HasMargin, Image, Margin
from .ui_traits import (
Alignment, Border, HasBorder, HasMargin, Image, Margin, Orientation,
Position, PyfaceColor, PyfaceFont
)
from .window import Window
from .widget import Widget

Expand Down

0 comments on commit bd21b61

Please sign in to comment.