Skip to content

Commit

Permalink
is_transparent description updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
salt-die committed Aug 29, 2023
1 parent c97dfb7 commit ebd22df
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion nurses_2/widgets/graphic_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class GraphicWidget(Widget):
anchor : Anchor, default: Anchor.TOP_LEFT
The point of the widget attached to :attr:`pos_hint`.
is_transparent : bool, default: False
If true, background_char and background_color_pair won't be painted.
If false, :attr:`alpha` and alpha channels are ignored.
is_visible : bool, default: True
If false, widget won't be painted, but still dispatched.
is_enabled : bool, default: True
Expand Down Expand Up @@ -229,6 +229,9 @@ def __init__(

@property
def alpha(self) -> float:
"""
Transparency of widget if :attr:`is_transparent` is true.
"""
return self._alpha

@alpha.setter
Expand All @@ -247,6 +250,9 @@ def on_size(self):

@property
def interpolation(self) -> Interpolation:
"""
Interpolation used when widget is resized.
"""
return self._interpolation

@interpolation.setter
Expand Down
2 changes: 1 addition & 1 deletion nurses_2/widgets/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Image(GraphicWidget):
anchor : Anchor, default: Anchor.TOP_LEFT
The point of the widget attached to :attr:`pos_hint`.
is_transparent : bool, default: False
If true, background_char and background_color_pair won't be painted.
If false, :attr:`alpha` and alpha channels are ignored.
is_visible : bool, default: True
If false, widget won't be painted, but still dispatched.
is_enabled : bool, default: True
Expand Down
2 changes: 1 addition & 1 deletion nurses_2/widgets/raycaster/raycaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Raycaster(GraphicWidget):
anchor : Anchor, default: Anchor.TOP_LEFT
The point of the widget attached to :attr:`pos_hint`.
is_transparent : bool, default: False
If true, background_char and background_color_pair won't be painted.
If false, :attr:`alpha` and alpha channels are ignored.
is_visible : bool, default: True
If false, widget won't be painted, but still dispatched.
is_enabled : bool, default: True
Expand Down
2 changes: 1 addition & 1 deletion nurses_2/widgets/shadow_caster/shadow_caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ShadowCaster(GraphicWidget):
anchor : Anchor, default: Anchor.TOP_LEFT
The point of the widget attached to :attr:`pos_hint`.
is_transparent : bool, default: False
If true, background_char and background_color_pair won't be painted.
If false, :attr:`alpha` and alpha channels are ignored.
is_visible : bool, default: True
If false, widget won't be painted, but still dispatched.
is_enabled : bool, default: True
Expand Down
2 changes: 1 addition & 1 deletion nurses_2/widgets/tiled_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TiledImage(GraphicWidget):
anchor : Anchor, default: Anchor.TOP_LEFT
The point of the widget attached to :attr:`pos_hint`.
is_transparent : bool, default: False
If true, background_char and background_color_pair won't be painted.
If false, :attr:`alpha` and alpha channels are ignored.
is_visible : bool, default: True
If false, widget won't be painted, but still dispatched.
is_enabled : bool, default: True
Expand Down
2 changes: 1 addition & 1 deletion nurses_2/widgets/video_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class VideoPlayer(GraphicWidget):
anchor : Anchor, default: Anchor.TOP_LEFT
The point of the widget attached to :attr:`pos_hint`.
is_transparent : bool, default: False
If true, background_char and background_color_pair won't be painted.
If false, :attr:`alpha` and alpha channels are ignored.
is_visible : bool, default: True
If false, widget won't be painted, but still dispatched.
is_enabled : bool, default: True
Expand Down

0 comments on commit ebd22df

Please sign in to comment.