MCPcopy Create free account

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

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

↓ 2 callersMethodnext_media_partname
Return |PackURI| instance for next available media partname. Partname is first available, starting at sequence number 1. Empty sequen
src/pptx/package.py:75
↓ 2 callersMethodnumeric_str_val
The string representation of the numeric (or date) label of this category, suitable for use in the XML `c:pt` element for this
src/pptx/chart/data.py:586
↓ 2 callersMethodpatterned
Selects the pattern fill type. Note that calling this method does not by itself set a foreground or background color of the pattern.
src/pptx/dml/fill.py:137
↓ 2 callersMethodph_basename
Return the base name for a placeholder of `ph_type` in this shape collection. There is some variance between slide types, for example a notes
src/pptx/shapes/shapetree.py:119
↓ 2 callersMethodpt_v
Return the Y value for data point *idx* in this cache, or None if no value is present for that data point.
src/pptx/oxml/chart/series.py:97
↓ 2 callersMethodrelative_ref
Return string containing relative reference to package item from `baseURI`. E.g. PackURI("/ppt/slideLayouts/slideLayout1.xml") would return
src/pptx/opc/packuri.py:86
↓ 2 callersMethodremove_all
Remove child elements with tagname (e.g. "a:p") in `tagnames`.
src/pptx/oxml/xmlchemy.py:693
↓ 2 callersMethodrename_slide_parts
Assign incrementing partnames to the slide parts identified by `rIds`. Partnames are like `/ppt/slides/slide9.xml` and are assigned in the or
src/pptx/parts/presentation.py:94
↓ 2 callersMethodreplace_series_data
Rewrite the series data under *chartSpace* using the chart data contents. All series-level formatting is left undisturbed. If
src/pptx/chart/xmlwriter.py:216
↓ 2 callersMethodrewrite_guides
Replace any `a:gd` element children of `a:avLst` with ones forme from `guides`.
src/pptx/oxml/shapes/autoshape.py:183
↓ 2 callersMethodscale
Return scaled image dimensions in EMU based on the combination of parameters supplied. If `scaled_cx` and `scaled_cy` are both |None|, the na
src/pptx/parts/image.py:80
↓ 2 callersMethodseries_name_ref
Return the Excel worksheet reference to the cell containing the name for *series*.
src/pptx/chart/data.py:74
↓ 2 callersMethodshape_elm_factory
(tagname, ph_type, idx)
tests/shapes/test_placeholder.py:264
↓ 2 callersMethodslide_id
Return the slide-id associated with `slide_part`.
src/pptx/parts/presentation.py:114
↓ 2 callersMethodunclear_content
Ensure p:txBody has at least one a:p child. Intuitively, reverse a ".clear_content()" operation to minimum conformance with spec (sin
src/pptx/oxml/text.py:170
↓ 2 callersMethodvalidate
Raise |ValueError| if `value` is not an assignable value.
src/pptx/enum/base.py:93
↓ 2 callersMethodvalidate
(cls, value)
tests/oxml/test_simpletypes.py:282
↓ 2 callersMethodwith_rId
(self, rId)
tests/oxml/unitdata/text.py:22
↓ 2 callersMethodxml
Return element XML based on attribute settings
tests/unitdata.py:68
↓ 2 callersMethodxml_bytes
Return a blob containing the XML for a chart of *chart_type* containing the series in this chart data object, as bytes suitable
src/pptx/chart/data.py:96
↓ 2 callersMethodxml_for
Return content-types XML mapping each part in `parts` to a content-type. The resulting XML is suitable for storage as `[Content_Types].xml` i
src/pptx/opc/serialized.py:253
↓ 1 callersMethod__enter__
(self)
src/pptx/text/fonts.py:105
↓ 1 callersMethod__eq__
(self, other: object)
src/pptx/oxml/xmlchemy.py:66
↓ 1 callersMethod__exit__
(self, exception_type, exception_value, exception_tb)
src/pptx/text/fonts.py:108
↓ 1 callersMethod__expand_attributeGroup
(self, attrgrp_elm)
lab/parse_xsd/parse_xsd.py:220
↓ 1 callersMethod__gt__
(self, other)
src/pptx/text/layout.py:271
↓ 1 callersMethod__init__
(self, package)
src/pptx/package.py:128
↓ 1 callersMethod__init__
( self, xPr: CT_NonVisualDrawingProps | CT_TextCharacterProperties, parent: BaseShape,
src/pptx/action.py:196
↓ 1 callersMethod__init__
(self, ser, idx)
src/pptx/chart/point.py:61
↓ 1 callersMethod__init__
(self, ser)
src/pptx/chart/series.py:20
↓ 1 callersMethod__init__
(self, ser, idx)
src/pptx/chart/datalabel.py:148
↓ 1 callersMethod__init__
*idx* is a required attribute of a c:pt element, but must be specified when pt is None, as when a "placeholder" category is c
src/pptx/chart/category.py:156
↓ 1 callersMethod__init__
(self, blob: bytes, filename: str | None)
src/pptx/parts/image.py:145
↓ 1 callersMethod__init__
(self, shape_elm: ShapeElement, parent: ProvidesPart)
src/pptx/shapes/base.py:27
↓ 1 callersMethod__init__
(self, graphicData: CT_GraphicalObjectData, parent: ProvidesPart)
src/pptx/shapes/graphfrm.py:138
↓ 1 callersMethod__init__
( self, shapes: _BaseGroupShapes, start_x: Length, start_y: Length, x_
src/pptx/shapes/freeform.py:39
↓ 1 callersMethod__init__
( self, partname: PackURI, content_type: str, package: Package, blob: bytes | None = None )
src/pptx/opc/package.py:289
↓ 1 callersMethod__init__
(self, tag, nspfxs)
tests/oxml/unitdata/text.py:61
↓ 1 callersMethod__init__
(self, tag)
tests/oxml/unitdata/shape.py:48
↓ 1 callersMethod__len__
(self)
src/pptx/chart/point.py:100
↓ 1 callersMethod__new__
(cls, xClr)
src/pptx/dml/color.py:116
↓ 1 callersMethod__new__
(cls, ms_api_value: int, docstr: str)
src/pptx/enum/base.py:22
↓ 1 callersMethod__new__
(cls, text, remainder)
src/pptx/text/layout.py:268
↓ 1 callersMethod_a_txBody_tmpl
(cls)
src/pptx/oxml/text.py:181
↓ 1 callersMethod_add_attr_property
Add a read/write `{prop_name}` property to the element class. The property returns the interpreted value of this attribute on access and chan
src/pptx/oxml/xmlchemy.py:150
↓ 1 callersMethod_add_childTnLst
Add `./p:timing/p:tnLst/p:par/p:cTn/p:childTnLst` descendant. Any existing `p:timing` child element is ruthlessly removed and replace
src/pptx/oxml/slide.py:196
↓ 1 callersMethod_add_choice_getter
Add a read-only `.{prop_name}` property to the element class. The property returns the present member of this group, or |None| if none are pr
src/pptx/oxml/xmlchemy.py:615
↓ 1 callersMethod_add_get_or_adder
Add a `.get_or_add_x()` method to the element class for this child element.
src/pptx/oxml/xmlchemy.py:571
↓ 1 callersMethod_add_get_or_change_to_method
Add a `get_or_change_to_x()` method to the element class for this child element.
src/pptx/oxml/xmlchemy.py:436
↓ 1 callersMethod_add_graphicFrame_containing_table
Return a newly added `p:graphicFrame` element containing a table as specified.
src/pptx/shapes/shapetree.py:627
↓ 1 callersMethod_add_group_remover
Add a `._remove_eg_x()` method to the element class for this choice group.
src/pptx/oxml/xmlchemy.py:624
↓ 1 callersMethod_add_hlinkClick
(self, url: str)
src/pptx/text/text.py:453
↓ 1 callersMethod_add_public_adder
Add a public `.add_x()` method to the parent element class.
src/pptx/oxml/xmlchemy.py:516
↓ 1 callersMethod_add_remover
Add a `._remove_x()` method to the element class for this child element.
src/pptx/oxml/xmlchemy.py:586
↓ 1 callersMethod_best_fit_font_size
Return the largest whole-number point size less than or equal to *max_size* that this fitter can fit.
src/pptx/text/layout.py:34
↓ 1 callersMethod_bisect
Return a (medial_value, greater_values, lesser_values) 3-tuple obtained by bisecting sequence *seq*.
src/pptx/text/layout.py:189
↓ 1 callersMethod_change_to_noFill_bg
Establish a `p:bg` child with no-fill settings. Any existing `p:bg` child is first removed.
src/pptx/oxml/slide.py:118
↓ 1 callersMethod_childTnLst_timing_xml
()
src/pptx/oxml/slide.py:219
↓ 1 callersFunction_child_list
Return list containing the direct children of *element* having *child_tagname*.
lab/cust-elm-classes/main.py:40
↓ 1 callersFunction_default_pptx_path
Return the path to the built-in default .pptx package.
src/pptx/api.py:40
↓ 1 callersMethod_denormalize
Return integer corresponding to normalized `raw_value` on unit basis of 100,000. See Adjustment.normalize for additional details.
src/pptx/shapes/autoshape.py:63
↓ 1 callersMethod_eq_elm_strs
True if the element in `line_2` is XML-equivalent to the element in `line`. In particular, the order of attributes in XML is not significant.
src/pptx/oxml/xmlchemy.py:90
↓ 1 callersMethod_escape_ctrl_chars
Return str after replacing each control character with a plain-text escape. For example, a BEL character (x07) would appear as "_x0007_". Hor
src/pptx/oxml/text.py:69
↓ 1 callersMethod_fill_cropping
Return a (left, top, right, bottom) 4-tuple containing the cropping values required to display an image of *image_size* in *view_size
src/pptx/oxml/shapes/picture.py:141
↓ 1 callersMethod_find_by_sha1
Return |MediaPart| object having *sha1* hash or None if not found. All media parts belonging to this package are considered. A media
src/pptx/package.py:212
↓ 1 callersFunction_get_child_or_first
(element, tag)
lab/cust-elm-classes/main.py:55
↓ 1 callersFunction_get_child_or_insert
(element, tag, idx)
lab/cust-elm-classes/main.py:62
↓ 1 callersMethod_get_or_add_hlink
Get the `a:hlinkClick` or `a:hlinkHover` element for the Hyperlink object. The actual element depends on the value of `self._hover`. Create t
src/pptx/action.py:240
↓ 1 callersMethod_get_or_add_txPr
Return the `c:txPr` element for this data label. The `c:txPr` element and its parent `c:dLbl` element are created if not yet present.
src/pptx/chart/datalabel.py:271
↓ 1 callersMethod_get_or_add_tx_rich
Return the `c:tx` element for this data label, with its `c:rich` child and descendants, newly created if not yet present.
src/pptx/chart/datalabel.py:257
↓ 1 callersMethod_initialized_adjustments
Return an initialized list of adjustment values based on the contents of `prstGeom`.
src/pptx/shapes/autoshape.py:113
↓ 1 callersMethod_insert_dLbl_in_sequence
Return a newly created `c:dLbl` element having `c:idx` child of *idx* and inserted in numeric sequence among the `c:dLbl` children of
src/pptx/oxml/chart/datalabel.py:206
↓ 1 callersMethod_insert_from_ordered_sequence
Insert the new values contained in *seq* into this tree such that a balanced tree is produced.
src/pptx/text/layout.py:202
↓ 1 callersFunction_is_pptx_package
Return |True| if *prs_part* is a valid main document part, |False| otherwise.
src/pptx/api.py:46
↓ 1 callersMethod_iter_flattened_categories
Generate a ``tuple`` object for each leaf category in this collection, containing the leaf category followed by its "parent"
src/pptx/chart/category.py:96
↓ 1 callersMethod_member_def
Return an individual member definition formatted as an RST glossary entry. Output is wrapped to fit within 78 columns.
src/pptx/enum/base.py:137
↓ 1 callersMethod_new
Return new empty |CorePropertiesPart| instance.
src/pptx/parts/coreprops.py:160
↓ 1 callersMethod_new_dLbl
(self)
src/pptx/oxml/chart/datalabel.py:226
↓ 1 callersMethod_non_empty_element_xml
(self, indent)
tests/unitdata.py:91
↓ 1 callersMethod_normalize
Return normalized value for `raw_value`. A normalized value is a |float| between 0.0 and 1.0 for nominal raw values between 0 and 100
src/pptx/shapes/autoshape.py:71
↓ 1 callersFunction_nsmap
Return a dict containing the subset namespace prefix mappings specified by *prefixes*. Any number of namespace prefixes can be supplied, e.g.
lab/cust-elm-classes/main.py:69
↓ 1 callersMethod_offset_dt
Return |datetime| instance offset from `datetime` by offset specified in `offset_str`. `offset_str` is a string like `'-07:00'`.
src/pptx/oxml/coreprops.py:213
↓ 1 callersMethod_p_txBody_tmpl
(cls)
src/pptx/oxml/text.py:185
↓ 1 callersFunction_padding
(type, element)
lab/parse_xsd/parse_xsd.py:340
↓ 1 callersMethod_parentage
Return a tuple formed by recursively concatenating *categories* with its next ancestor from *levels*. The idx value of the first cate
src/pptx/chart/category.py:111
↓ 1 callersMethod_parse_W3CDTF_to_datetime
(cls, w3cdtf_str: str)
src/pptx/oxml/coreprops.py:231
↓ 1 callersMethod_part_cls_for
Return the custom part class registered for `content_type`. Returns |Part| if no custom class is registered for `content_type`.
src/pptx/opc/package.py:447
↓ 1 callersMethod_pic_ph_tmpl
(cls)
src/pptx/oxml/shapes/picture.py:165
↓ 1 callersMethod_pic_tmpl
(cls)
src/pptx/oxml/shapes/picture.py:186
↓ 1 callersMethod_pic_video_tmpl
(cls)
src/pptx/oxml/shapes/picture.py:215
↓ 1 callersMethod_populate_worksheet
Must be overridden by each subclass to provide the particulars of writing the spreadsheet data.
src/pptx/chart/xlsx.py:39
↓ 1 callersMethod_recalculate_extents
Adjust position and size to incorporate all contained shapes. This would typically be called when a contained shape is added, removed, or its
src/pptx/shapes/shapetree.py:529
↓ 1 callersMethod_rel_ref_count
Return int count of references in this part's XML to `rId`.
src/pptx/opc/package.py:428
↓ 1 callersMethod_remove_hlink
Remove the a:hlinkClick or a:hlinkHover element. Also drops any relationship it might have.
src/pptx/action.py:259
↓ 1 callersMethod_remove_hlinkClick
(self)
src/pptx/text/text.py:461
↓ 1 callersMethod_remove_tx_rich
Remove any `c:tx/c:rich` child of the `c:dLbl` element for this data label. Do nothing if that element is not present.
src/pptx/chart/datalabel.py:280
↓ 1 callersMethod_rewrite_guides
Write `a:gd` elements to the XML, one for each adjustment value. Any existing guide elements are overwritten.
src/pptx/shapes/autoshape.py:122
↓ 1 callersMethod_rewrite_ser_data
Rewrite selected child elements of *ser* based on the values in *series_data*.
src/pptx/chart/xmlwriter.py:264
↓ 1 callersMethod_shade
(self, value)
src/pptx/dml/color.py:176
↓ 1 callersMethod_sld_xml
()
src/pptx/oxml/slide.py:234
← previousnext →401–500 of 5,025, ranked by callers