MCPcopy Create free account
hub / github.com/scanny/python-pptx / _BaseSlide

Class _BaseSlide

src/pptx/slide.py:39–68  ·  view source on GitHub ↗

Base class for slide objects, including masters, layouts and notes.

Source from the content-addressed store, hash-verified

37
38
39class _BaseSlide(PartElementProxy):
40 """Base class for slide objects, including masters, layouts and notes."""
41
42 _element: CT_Slide
43
44 @lazyproperty
45 def background(self) -> _Background:
46 """|_Background| object providing slide background properties.
47
48 This property returns a |_Background| object whether or not the
49 slide, master, or layout has an explicitly defined background.
50
51 The same |_Background| object is returned on every call for the same
52 slide object.
53 """
54 return _Background(self._element.cSld)
55
56 @property
57 def name(self) -> str:
58 """String representing the internal name of this slide.
59
60 Returns an empty string (`''`) if no name is assigned. Assigning an empty string or |None|
61 to this property causes any name to be removed.
62 """
63 return self._element.cSld.name
64
65 @name.setter
66 def name(self, value: str | None):
67 new_value = "" if value is None else value
68 self._element.cSld.name = new_value
69
70
71class _BaseMaster(_BaseSlide):

Callers 3

background_fixtureMethod · 0.90
name_get_fixtureMethod · 0.90
name_set_fixtureMethod · 0.90

Calls

no outgoing calls

Tested by 3

background_fixtureMethod · 0.72
name_get_fixtureMethod · 0.72
name_set_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…