MCPcopy Create free account

hub / github.com/scanny/python-pptx / functions

Functions5,025 in github.com/scanny/python-pptx

↓ 3 callersMethodadd_chart_part
Return str rId of new |ChartPart| object containing chart of `chart_type`. The chart depicts `chart_data` and is related to the slide contain
src/pptx/parts/slide.py:171
↓ 3 callersMethodadd_connector
Add a newly created connector shape to the end of this shape tree. `connector_type` is a member of the :ref:`MsoConnectorType` enumeration an
src/pptx/shapes/shapetree.py:260
↓ 3 callersMethodadd_default
Add a child `<Default>` element with attributes set to parameter values.
src/pptx/opc/oxml.py:169
↓ 3 callersMethodadd_group_shape
Return a |GroupShape| object newly appended to this shape tree. The group shape is empty and must be populated with shapes using methods on i
src/pptx/shapes/shapetree.py:278
↓ 3 callersMethodadd_lumMod
Return a newly added <a:lumMod> child element.
src/pptx/oxml/dml/color.py:24
↓ 3 callersMethodadd_slide
Return a newly added slide that inherits layout from `slide_layout`.
src/pptx/slide.py:268
↓ 3 callersMethodclear
Remove all paragraphs except one empty one.
src/pptx/text/text.py:71
↓ 3 callersMethodclone_placeholder
Add a new placeholder shape based on `placeholder`.
src/pptx/shapes/shapetree.py:111
↓ 3 callersMethodconvert_to_shape
Return new freeform shape positioned relative to specified offset. `origin_x` and `origin_y` locate the origin of the local coordinate system
src/pptx/shapes/freeform.py:96
↓ 3 callersMethodfind_max
Return the largest item in or under this node that satisfies *predicate*.
src/pptx/text/layout.py:130
↓ 3 callersMethodfrom_blob
Return a new |Video| object loaded from image binary in *blob*.
src/pptx/media.py:24
↓ 3 callersMethodfrom_blob
Return a new |Image| object loaded from the image binary in `blob`.
src/pptx/parts/image.py:151
↓ 3 callersMethodfrom_file
Return a new |Image| object loaded from `image_file`. `image_file` can be either a path (str) or a file-like object.
src/pptx/parts/image.py:156
↓ 3 callersMethodfrom_path_or_file_like
Return a new |Video| object containing video in *movie_file*. *movie_file* can be either a path (string) or a file-like (e.g. StringI
src/pptx/media.py:29
↓ 3 callersMethodget_image
Return an |Image| object containing the image related to this slide by *rId*. Raises |KeyError| if no image is related by that id, which woul
src/pptx/parts/slide.py:35
↓ 3 callersMethodget_or_add
Return str rId of `reltype` to `target_part`. The rId of an existing matching relationship is used if present. Otherwise, a new relat
src/pptx/opc/package.py:526
↓ 3 callersMethodget_or_add_ext_rel
Return str rId of external relationship of `reltype` to `target_ref`. The rId of an existing matching relationship is used if present. Otherw
src/pptx/opc/package.py:537
↓ 3 callersMethodget_or_add_image_part
Return an |ImagePart| object containing the image in *image_file*. If the image part already exists in this package, it is reused,
src/pptx/package.py:32
↓ 3 callersMethodget_or_add_media_part
Return a |MediaPart| object containing the media in *media*. If a media part for this media bytestream ("file") is already present in
src/pptx/package.py:40
↓ 3 callersMethodget_or_add_rich
Return the `c:rich` descendant representing the text frame of the data label, newly created if not present. Any existing `c:strRef`
src/pptx/oxml/chart/datalabel.py:48
↓ 3 callersMethodindex
Return zero-based index of `slide_layout` in this collection. Raises `ValueError` if `slide_layout` is not present in this collection.
src/pptx/slide.py:380
↓ 3 callersMethoditer_xCharts
Generate each xChart child element in document.
src/pptx/oxml/chart/chart.py:194
↓ 3 callersMethodln_bldr
(self, w)
tests/dml/test_line.py:158
↓ 3 callersMethodload
(cls, sort=None)
spec/gen_spec/gen_spec.py:85
↓ 3 callersMethodload_from_xml
Replace any relationships in this collection with those from `xml_rels`.
src/pptx/opc/package.py:550
↓ 3 callersMethodload_schema
(self, xsd_root, nsprefix)
lab/parse_xsd/parse_xsd.py:102
↓ 3 callersFunctionloose_mock
Return a "loose" mock, meaning it has no spec to constrain calls on it. Additional keyword arguments are passed through to Mock(). If called with
tests/unitutil/mock.py:90
↓ 3 callersMethodmerge
(seq, seq_2)
tests/unitutil/cxml.py:149
↓ 3 callersMethodnew
Return newly-created blank slide part. The new slide-part has `partname` and a relationship to `slide_layout_part`.
src/pptx/parts/slide.py:162
↓ 3 callersMethodnew_chart_graphicFrame
Return a `p:graphicFrame` element tree populated with a chart element.
src/pptx/oxml/shapes/graphfrm.py:181
↓ 3 callersMethodnew_graphicFrame
Return a new `p:graphicFrame` element tree suitable for containing a table or chart. Note that a graphicFrame element is not a valid shape un
src/pptx/oxml/shapes/graphfrm.py:192
↓ 3 callersMethodnew_table_graphicFrame
Return a `p:graphicFrame` element tree populated with a table element.
src/pptx/oxml/shapes/graphfrm.py:301
↓ 3 callersMethodnotify_height_changed
Called by a row when its height changes. Triggers the graphic frame to recalculate its total height (as the sum of the row heights).
src/pptx/table.py:122
↓ 3 callersMethodnotify_width_changed
Called by a column when its width changes. Triggers the graphic frame to recalculate its total width (as the sum of the column widths
src/pptx/table.py:131
↓ 3 callersFunctionparse_from_template
Return an element loaded from the XML in the template file identified by `template_name`.
src/pptx/oxml/__init__.py:25
↓ 3 callersMethodprstGeom_bldr
(self, prst, gd_vals)
tests/oxml/shapes/test_autoshape.py:71
↓ 3 callersFunctionqn
qn is short for *qualified name*. Return fully qualified (Clark notation) tagname corresponding to short-form prefixed tagname *tag*.
lab/parse_xsd/objectify_lab.py:38
↓ 3 callersMethodread_fields
Return a tuple containing the C-struct fields in this stream specified by *template* and starting at *offset*.
src/pptx/text/fonts.py:216
↓ 3 callersMethodrecalculate_extents
Adjust x, y, cx, and cy to incorporate all contained shapes. This would typically be called when a contained shape is added, removed,
src/pptx/oxml/shapes/groupshape.py:188
↓ 3 callersMethodrelated_slide
Return |Slide| object for related |SlidePart| related by `rId`.
src/pptx/parts/presentation.py:86
↓ 3 callersMethodrelated_slide_layout
Return |SlideLayout| related to this slide-master by key `rId`.
src/pptx/parts/slide.py:288
↓ 3 callersMethodrelated_slide_master
Return |SlideMaster| object for |SlideMasterPart| related by `rId`.
src/pptx/parts/presentation.py:90
↓ 3 callersMethodrels_xml_for
Return optional rels item XML for `partname`. Returns `None` if no rels item is present for `partname`. `partname` is a |PackURI| ins
src/pptx/opc/serialized.py:40
↓ 3 callersFunctionserialize_part_xml
Produce XML-file bytes for `part_elm`, suitable for writing directly to a `.xml` file. Includes XML-declaration header.
src/pptx/opc/oxml.py:56
↓ 3 callersMethodset_spcPts
Set spacing to `value` points. A ./a:spcPct child is removed if present.
src/pptx/oxml/text.py:598
↓ 3 callersMethodtarget_ref
str reference to relationship target. For internal relationships this is the relative partname, suitable for serialization purposes.
src/pptx/opc/package.py:752
↓ 3 callersFunctiontest_image
Return the absolute path to image file having *filename* in test_files directory.
features/steps/helpers.py:44
↓ 3 callersMethodto_xml
Transform a Python value to a str value suitable to this XML attribute.
src/pptx/oxml/xmlchemy.py:30
↓ 3 callersMethodvalidate_float_in_range
(cls, value, min_inclusive, max_inclusive)
src/pptx/oxml/simpletypes.py:42
↓ 3 callersMethodvalues
Read-only. A sequence containing the float values for this series, in the order they appear on the chart.
src/pptx/chart/series.py:196
↓ 3 callersMethodvalues_ref
The Excel worksheet reference to the values for *series* (not including the column heading).
src/pptx/chart/data.py:326
↓ 3 callersFunctionvar_mock
Return mock patching the variable with qualified name *q_var_name*.
tests/unitutil/mock.py:126
↓ 2 callersFunctionChartXmlWriter
Factory function returning appropriate XML writer object for *chart_type*, loaded with *chart_type* and *chart_data*.
src/pptx/chart/xmlwriter.py:13
↓ 2 callersFunctionSeriesXmlRewriterFactory
Return a |_BaseSeriesXmlRewriter| subclass appropriate to *chart_type*.
src/pptx/chart/xmlwriter.py:56
↓ 2 callersFunction_SeriesFactory
Return an instance of the appropriate subclass of _BaseSeries based on the xChart element *ser* appears in.
src/pptx/chart/series.py:237
↓ 2 callersFunction_SlidePlaceholderFactory
Return a placeholder shape of the appropriate type for `shape_elm`.
src/pptx/shapes/shapetree.py:844
↓ 2 callersFunction_TableFactory
Return an instance of |Table| appropriate to *tag*, loaded from *font_file* with content of *length* starting at *offset*.
src/pptx/text/fonts.py:393
↓ 2 callersMethod__expand_group
(self, group_elm)
lab/parse_xsd/parse_xsd.py:240
↓ 2 callersMethod__getitem__
(self, idx)
src/pptx/chart/data.py:353
↓ 2 callersMethod__init__
(self, element: BaseOxmlElement)
src/pptx/shared.py:21
↓ 2 callersMethod__init__
(self, chartSpace, chart_part)
src/pptx/chart/chart.py:21
↓ 2 callersMethod__init__
(self, chart_type, series_seq)
src/pptx/chart/xmlwriter.py:86
↓ 2 callersMethod__init__
(self, spTree: CT_GroupShape, parent: ProvidesPart)
src/pptx/shapes/shapetree.py:83
↓ 2 callersMethod__init__
(self, sp: CT_Shape, parent: ProvidesPart)
src/pptx/shapes/autoshape.py:262
↓ 2 callersMethod__init__
(self, stream)
src/pptx/text/fonts.py:102
↓ 2 callersMethod__init__
(self, name, val)
spec/gen_spec/gen_spec.py:130
↓ 2 callersMethod__len__
Return the count of the highest level of category in this sequence. If it contains hierarchical (multi-level) categories, this number
src/pptx/chart/data.py:356
↓ 2 callersMethod__process_sequence
(self, seq_elm)
lab/parse_xsd/parse_xsd.py:252
↓ 2 callersMethod_add_chart_graphicFrame
Return new `p:graphicFrame` element appended to this shape tree. The `p:graphicFrame` element has the specified position and size and refers
src/pptx/shapes/shapetree.py:429
↓ 2 callersMethod_add_cloned_sers
Add `c:ser` elements to the last xChart element in *plotArea*, cloned from the last `c:ser` child of that last xChart.
src/pptx/chart/xmlwriter.py:232
↓ 2 callersMethod_add_cxnSp
Return a newly-added `p:cxnSp` element as specified. The `p:cxnSp` element is for a connector of `connector_type` beginning at (`begin_x`,
src/pptx/shapes/shapetree.py:445
↓ 2 callersMethod_add_freeform_sp
Add a freeform `p:sp` element having no drawing elements. `origin_x` and `origin_y` are specified in slide coordinates, and represent the loc
src/pptx/shapes/freeform.py:151
↓ 2 callersMethod_add_line_segment
Add a |_LineSegment| operation to the drawing sequence.
src/pptx/shapes/freeform.py:162
↓ 2 callersMethod_add_list_getter
Add a read-only ``{prop_name}_lst`` property to the element class to retrieve a list of child elements matching this type.
src/pptx/oxml/xmlchemy.py:345
↓ 2 callersMethod_add_pic_from_image_part
Return a newly appended `p:pic` element as specified. The `p:pic` element displays the image in `image_part` with size and position specified
src/pptx/shapes/shapetree.py:467
↓ 2 callersMethod_add_sp
Return newly-added `p:sp` element as specified. `p:sp` element is of `autoshape_type` at position (`x`, `y`) and of size (`cx`, `cy`).
src/pptx/shapes/shapetree.py:489
↓ 2 callersMethod_add_textbox_sp
Return newly-appended textbox `p:sp` element. Element has position (`x`, `y`) and size (`cx`, `cy`).
src/pptx/shapes/shapetree.py:501
↓ 2 callersMethod_add_video_timing
Add a `p:video` element under `p:sld/p:timing`. The element will refer to the specified `pic` element by its shape id, and cause the video
src/pptx/shapes/shapetree.py:636
↓ 2 callersMethod_adjust_ser_count
Adjust the number of c:ser elements in *plotArea* to *new_ser_count*. Excess c:ser elements are deleted from the end, along with any
src/pptx/chart/xmlwriter.py:249
↓ 2 callersMethod_apply_fit
Arrange text in this text frame to fit inside its extents. This is accomplished by setting auto size off, wrap on, and setting the font of
src/pptx/text/text.py:219
↓ 2 callersMethod_attr_seq
Return a sequence of attribute strings parsed from *attrs*. Each attribute string is stripped of whitespace on both ends.
src/pptx/oxml/xmlchemy.py:81
↓ 2 callersMethod_break_line
Return a (line, remainder) pair where *line* is the longest line in *line_source* that will fit in this fitter's width and *remainder
src/pptx/text/layout.py:43
↓ 2 callersMethod_clear_click_action
Remove any existing click action.
src/pptx/action.py:149
↓ 2 callersMethod_connect_begin_to
Add or update a stCxn element for this connector that connects its begin point to the connection point of *shape* specified by
src/pptx/shapes/connector.py:251
↓ 2 callersMethod_connect_end_to
Add or update an endCxn element for this connector that connects its end point to the connection point of *shape* specified by
src/pptx/shapes/connector.py:262
↓ 2 callersMethod_convert_from_percent_literal
(cls, str_value)
src/pptx/oxml/simpletypes.py:524
↓ 2 callersMethod_decode_name
Return the unicode name decoded from *raw_name* using the encoding implied by the combination of *platform_id* and *encoding_id*.
src/pptx/text/fonts.py:302
↓ 2 callersMethod_excel_date_number
Return an integer representing the date label of this category as the number of days since January 1, 1900 (or 1904 if date_1904 is
src/pptx/chart/data.py:605
↓ 2 callersMethod_fits_in_width_predicate
Return a function taking a text string value and returns |True| if that text fits in this fitter when rendered at *point_size*. Used
src/pptx/text/layout.py:53
↓ 2 callersMethod_font_directories
Return a sequence of directory paths likely to contain fonts on the current platform.
src/pptx/text/fonts.py:41
↓ 2 callersMethod_get_or_add
Return element returned by 'get_or_add_' method for `prop_name`.
src/pptx/oxml/coreprops.py:205
↓ 2 callersMethod_get_or_add_image
Return an (rId, description, image_size) 3-tuple identifying the related image part containing *image_file* and describing the image.
src/pptx/shapes/placeholder.py:340
↓ 2 callersMethod_get_or_add_rich
Return the `c:rich` element representing the text frame for this data label, newly created with its ancestors if not present.
src/pptx/chart/datalabel.py:243
↓ 2 callersMethod_inherited_value
Return the attribute value, e.g. 'width' of the base placeholder this placeholder inherits from.
src/pptx/shapes/placeholder.py:115
↓ 2 callersMethod_installed_fonts
Return a dict mapping a font descriptor to its font file path, containing all the font files resident on the current machine. The
src/pptx/text/fonts.py:28
↓ 2 callersMethod_is_member_elm
Return true if `shape_elm` represents a member of this collection, False otherwise.
src/pptx/shapes/shapetree.py:169
↓ 2 callersMethod_iter_font_files_in
Generate the OpenType font files found in and under *directory*. Each item is a key/value pair. The key is a (family_name, is_bold,
src/pptx/text/fonts.py:53
↓ 2 callersMethod_iter_names
Generate a key/value pair for each name in this table. The key is a (platform_id, name_id) 2-tuple and the value is the unicode text
src/pptx/text/fonts.py:317
↓ 2 callersMethod_iter_table_records
Generate a (tag, offset, length) 3-tuple for each of the tables in this font file.
src/pptx/text/fonts.py:159
↓ 2 callersMethod_local_to_shape
Translate local coordinates point to shape coordinates. Shape coordinates have the same unit as local coordinates, but are offset such that t
src/pptx/shapes/freeform.py:211
← previousnext →201–300 of 5,025, ranked by callers