MCPcopy Create free account

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

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

↓ 6 callersMethodnumRef_xml
Return the ``<c:numRef>`` element specified by the parameters as unicode text.
src/pptx/chart/xmlwriter.py:118
↓ 6 callersMethodparent_bldr
(self, choice_tag=None)
tests/oxml/test_xmlchemy.py:109
↓ 6 callersFunctionpfxdtag
Return short-form prefixed tag from fully qualified (Clark notation) tagname.
lab/parse_xsd/parse_xsd.py:29
↓ 6 callersMethodsave
Save this package to `pkg_file`. `file` can be either a path to a file (a string) or a file-like object.
src/pptx/opc/package.py:151
↓ 6 callersMethodseries_table_row_offset
Return the number of rows preceding the data table for *series* in the Excel worksheet.
src/pptx/chart/xlsx.py:193
↓ 6 callersMethodsha1
The SHA1 hash digest for the binary "file" of this video. Example: `'1be010ea47803b00e140b852765cdf84f491da47'`
src/pptx/media.py:94
↓ 6 callersMethodto_xml
XML value of this enum member, generally an XML attribute value.
src/pptx/enum/base.py:82
↓ 6 callersMethodvalidate_int
(cls, value)
src/pptx/oxml/simpletypes.py:37
↓ 6 callersMethodvalidate_string
(cls, value)
src/pptx/oxml/simpletypes.py:60
↓ 5 callersFunctionOxmlElement
Return a "loose" lxml element having the tag specified by `nsptag_str`. `nsptag_str` must contain the standard namespace prefix, e.g. 'a:tbl'. Th
src/pptx/oxml/xmlchemy.py:35
↓ 5 callersFunctionPlotFactory
Return an instance of the appropriate subclass of _BasePlot based on the tagname of *xChart*.
src/pptx/chart/plot.py:230
↓ 5 callersFunction_Element
(tag, nsmap=None)
lab/cust-elm-classes/main.py:24
↓ 5 callersFunctiona_choice
()
tests/oxml/test_xmlchemy.py:579
↓ 5 callersFunctiona_pic
()
tests/oxml/unitdata/shape.py:170
↓ 5 callersFunctionan_avLst
()
tests/oxml/unitdata/shape.py:178
↓ 5 callersFunctionan_ext
()
tests/oxml/unitdata/shape.py:182
↓ 5 callersFunctionan_off
()
tests/oxml/unitdata/shape.py:202
↓ 5 callersMethodclear_lum
Return self after removing any <a:lumMod> and <a:lumOff> child elements.
src/pptx/oxml/dml/color.py:40
↓ 5 callersMethodget_or_add_image_part
Return `(image_part, rId)` pair corresponding to `image_file`. The returned |ImagePart| object contains the image in `image_file` and is
src/pptx/parts/slide.py:43
↓ 5 callersMethodget_or_add_tx_rich
Return `c:tx/c:rich`, newly created if not present. Return the `c:rich` grandchild at `c:tx/c:rich`. Both the `c:tx` and `c:rich` ele
src/pptx/oxml/chart/shared.py:162
↓ 5 callersMethodgetdef
Return definition element with name *defname*
lab/parse_xsd/parse_xsd.py:91
↓ 5 callersMethodinsert
Insert a new node containing *value* into this tree such that its structure as a binary search tree is preserved.
src/pptx/text/layout.py:156
↓ 5 callersMethodnew_txPr
Return a `c:txPr` element tree. Suitable for use in a chart object like data labels or tick labels.
src/pptx/oxml/text.py:151
↓ 4 callersFunctionSlideShapeFactory
Return appropriate shape object for `shape_elm` on a slide.
src/pptx/shapes/shapetree.py:863
↓ 4 callersMethod__init__
(self, xsd_tree, nsprefix)
lab/parse_xsd/parse_xsd.py:57
↓ 4 callersMethod__init__
(self, gradFill)
src/pptx/dml/fill.py:224
↓ 4 callersMethod__init__
(self, rPr: CT_TextCharacterProperties)
src/pptx/text/text.py:287
↓ 4 callersMethod_add_adder
Add an ``_add_x()`` method to the element class for this child element.
src/pptx/oxml/xmlchemy.py:293
↓ 4 callersMethod_add_creator
Add a `_new_{prop_name}()` method to the element class. This method creates a new, empty element of the correct type, having no attributes.
src/pptx/oxml/xmlchemy.py:311
↓ 4 callersMethod_add_inserter
Add an ``_insert_x()`` method to the element class for this child element.
src/pptx/oxml/xmlchemy.py:332
↓ 4 callersMethod_add_notes_slide_part
Return a newly created |NotesSlidePart| object related to this slide part. Caller is responsible for ensuring this slide doesn't alre
src/pptx/parts/slide.py:252
↓ 4 callersMethod_add_relationship
Return str rId of |_Relationship| newly added to spec.
src/pptx/opc/package.py:620
↓ 4 callersMethod_effective_value
The effective value of *attr_name* on this placeholder shape; its directly-applied value if it has one, otherwise the value on the
src/pptx/shapes/placeholder.py:104
↓ 4 callersMethod_find_by_sha1
Return an |ImagePart| object belonging to this package or |None| if no matching image part is found. The image part is identified by
src/pptx/package.py:157
↓ 4 callersMethod_get_marX
Generalized method to get margin values.
src/pptx/oxml/table.py:342
↓ 4 callersMethod_get_matching
Return optional str rId of rel of `reltype`, `target`, and `is_external`. Returns `None` on no matching relationship
src/pptx/opc/package.py:632
↓ 4 callersMethod_get_or_add_dLbl
The ``CT_DLbl`` instance referring specifically to this individual data label, newly created if not yet present in the XML.
src/pptx/chart/datalabel.py:236
↓ 4 callersMethod_iter_member_elms
Generate each child of the `p:spTree` element that corresponds to a shape. Items appear in XML document order.
src/pptx/shapes/shapetree.py:173
↓ 4 callersMethod_load
Return the package after loading all parts and relationships.
src/pptx/opc/package.py:158
↓ 4 callersMethod_populate_worksheet
Write chart data contents to *worksheet* in the standard XY chart layout. Write the data for each series to a separate two-column
src/pptx/chart/xlsx.py:220
↓ 4 callersMethod_replace_placeholder_with
Substitute *element* for this placeholder element in the shapetree. This placeholder's `._element` attribute is set to |None| and its
src/pptx/shapes/placeholder.py:160
↓ 4 callersFunction_required_attribute
Add attribute with default value to element if it doesn't already exist.
lab/cust-elm-classes/main.py:85
↓ 4 callersMethod_set_marX
Set value of marX attribute on `a:tcPr` child element. If `marX` is |None|, the marX attribute is removed. `marX` is a string, one of `('marL
src/pptx/oxml/table.py:351
↓ 4 callersMethod_srcRect_x
Value of `p:blipFill/a:srcRect/@{attr_name}` or 0.0 if not present.
src/pptx/oxml/shapes/picture.py:253
↓ 4 callersMethod_validate_margin_value
Raise ValueError if `margin_value` is not a positive integer value or |None|.
src/pptx/table.py:374
↓ 4 callersFunctiona_graphicFrame
()
tests/oxml/unitdata/shape.py:150
↓ 4 callersMethodadd_category
Return a newly created |data.Category| object having *label* and appended to the end of the category collection for this chart.
src/pptx/chart/data.py:271
↓ 4 callersMethodadd_override
Add a child `<Override>` element with attributes set to parameter values.
src/pptx/opc/oxml.py:173
↓ 4 callersMethodadd_picture
Add picture shape displaying image in `image_file`. `image_file` can be either a path to a file (a string) or a file-like object. The picture
src/pptx/shapes/shapetree.py:353
↓ 4 callersMethodadd_rel
Add a child `<Relationship>` element with attributes set as specified.
src/pptx/opc/oxml.py:131
↓ 4 callersMethodadd_shape
Return new |Shape| object appended to this shape tree. `autoshape_type_id` is a member of :ref:`MsoAutoShapeType` e.g. `MSO_SHAPE.RECTANGLE`
src/pptx/shapes/shapetree.py:375
↓ 4 callersMethodadd_table
Add a |GraphicFrame| object containing a table. The table has the specified number of `rows` and `cols` and the specified position and
src/pptx/shapes/shapetree.py:589
↓ 4 callersMethodadd_textbox
Return newly added text box shape appended to this shape tree. The text box is of the specified size, located at the specified position on th
src/pptx/shapes/shapetree.py:389
↓ 4 callersFunctionan_rPr
()
tests/oxml/unitdata/text.py:84
↓ 4 callersFunctionan_srgbClr
()
tests/oxml/unitdata/dml.py:97
↓ 4 callersMethodapply_operation_to
Add `a:close` element to `path`.
src/pptx/shapes/freeform.py:294
↓ 4 callersMethodconvert_from_percent_literal
(cls, str_value)
src/pptx/oxml/simpletypes.py:88
↓ 4 callersMethodconvert_from_xml
(cls, str_value)
tests/oxml/test_simpletypes.py:274
↓ 4 callersMethodfrom_ordered_sequence
Return the root of a balanced binary search tree populated with the values in iterable *iseq*.
src/pptx/text/layout.py:145
↓ 4 callersMethodfrom_rel_ref
Construct an absolute pack URI formed by translating `relative_ref` onto `baseURI`.
src/pptx/opc/packuri.py:23
↓ 4 callersMethodget_by_name
Return SlideLayout object having `name`, or `default` if not found.
src/pptx/slide.py:373
↓ 4 callersMethodget_or_add_title
Return the `c:title` grandchild, newly created if not present.
src/pptx/oxml/chart/chart.py:124
↓ 4 callersMethodindex
The offset of *sub_category* in the overall sequence of leaf categories.
src/pptx/chart/data.py:555
↓ 4 callersMethoditer_ph_elms
Generate each placeholder shape child element in document order.
src/pptx/oxml/shapes/groupshape.py:135
↓ 4 callersMethoditer_rels
Generate exactly one reference to each relationship in package. Performs a depth-first traversal of the rels graph.
src/pptx/opc/package.py:100
↓ 4 callersMethoditer_shape_elms
Generate each child of this `p:spTree` element that corresponds to a shape. Items appear in XML document order.
src/pptx/oxml/shapes/groupshape.py:141
↓ 4 callersMethoditer_tcs
Generate each `a:tc` element in this range. Cell elements are generated left-to-right, top-to-bottom.
src/pptx/oxml/table.py:517
↓ 4 callersMethodnew
Return a new _Close object.
src/pptx/shapes/freeform.py:290
↓ 4 callersMethodnew_default
Return a new `p:notesMaster` element based on the built-in default template.
src/pptx/oxml/slide.py:137
↓ 4 callersMethodnew_gradFill
Return newly-created "loose" default gradient subtree.
src/pptx/oxml/dml/fill.py:61
↓ 4 callersMethodparent_bldr
(self, oomChild_is_present)
tests/oxml/test_xmlchemy.py:204
↓ 4 callersMethodparent_bldr
(self, zomChild_is_present)
tests/oxml/test_xmlchemy.py:352
↓ 4 callersMethodpart_with_reltype
Return target part of relationship with matching `reltype`. Raises |KeyError| if not found and |ValueError| if more than one matching relatio
src/pptx/opc/package.py:571
↓ 4 callersMethodpop
Return |_Relationship| identified by `rId` after removing it from collection. The caller is responsible for ensuring it is no longer required
src/pptx/opc/package.py:587
↓ 4 callersMethodreplace_data
Use the categories and series values in the |ChartData| object *chart_data* to replace those in the XML and Excel worksheet for this
src/pptx/chart/chart.py:159
↓ 4 callersFunctionsnippet_bytes
Return bytes read from snippet file having `snippet_file_name`.
tests/unitutil/file.py:14
↓ 4 callersMethodsolid
Sets the fill type to solid, i.e. a solid color. Note that calling this method does not set a color or by itself cause the shape to
src/pptx/dml/fill.py:148
↓ 4 callersMethodupdate_from_xlsx_blob
Replace the Excel spreadsheet in the related |EmbeddedXlsxPart| with the Excel binary in *xlsx_blob*, adding a new |EmbeddedXlsxPart|
src/pptx/parts/chart.py:65
↓ 3 callersFunction_LayoutShapeFactory
Return appropriate shape object for `shape_elm` on a slide layout.
src/pptx/shapes/shapetree.py:823
↓ 3 callersFunction_MasterShapeFactory
Return appropriate shape object for `shape_elm` on a slide master.
src/pptx/shapes/shapetree.py:830
↓ 3 callersFunction_NotesSlideShapeFactory
Return appropriate shape object for `shape_elm` on a notes slide.
src/pptx/shapes/shapetree.py:837
↓ 3 callersMethod__expand_choice
(self, choice_elm)
lab/parse_xsd/parse_xsd.py:229
↓ 3 callersMethod__init__
(self, sldIdLst: CT_SlideIdList, prs: Presentation)
src/pptx/slide.py:247
↓ 3 callersMethod__init__
(self, xAx)
src/pptx/chart/axis.py:22
↓ 3 callersMethod__init__
(self, xClr)
src/pptx/dml/color.py:128
↓ 3 callersMethod__init__
(self, attr_name: str, simple_type: type[AttributeType])
src/pptx/oxml/xmlchemy.py:137
↓ 3 callersMethod_add_close
Add a close |_Close| operation to the drawing sequence.
src/pptx/shapes/freeform.py:147
↓ 3 callersMethod_add_getter
Add a read-only `{prop_name}` property to the parent element class. The property locates and returns this child element or `None` if not pres
src/pptx/oxml/xmlchemy.py:323
↓ 3 callersMethod_best_fit_font_size
Return font-size in points that best fits text in this text-frame. The best-fit font size is the largest integer point size not greater than
src/pptx/text/text.py:229
↓ 3 callersMethod_blob_from_file
Return bytes of `file`, which is either a str path or a file-like object.
src/pptx/opc/package.py:363
↓ 3 callersMethod_column_reference
Return str Excel column reference like 'BQ' for *column_number*. *column_number* is an int in the range 1-16384 inclusive, where 1 ma
src/pptx/chart/xlsx.py:88
↓ 3 callersMethod_datetime_of_element
(self, property_name: str)
src/pptx/oxml/coreprops.py:192
↓ 3 callersMethod_get_or_add_ln
Return the ``<a:ln>`` element containing the line format properties in the XML.
src/pptx/dml/line.py:91
↓ 3 callersMethod_rewrite_ser_data
Rewrite the ``<c:tx>``, ``<c:xVal>`` and ``<c:yVal>`` child elements of *ser* based on the values in *series_data*.
src/pptx/chart/xmlwriter.py:1827
↓ 3 callersMethod_set_element_datetime
Set date/time value of child element having `prop_name` to `value`.
src/pptx/oxml/coreprops.py:256
↓ 3 callersMethod_shape_factory
Return an instance of the appropriate shape proxy class for `shape_elm`.
src/pptx/shapes/shapetree.py:646
↓ 3 callersFunctiona_cxnSp
()
tests/oxml/unitdata/shape.py:142
↓ 3 callersFunctiona_grpSp
()
tests/oxml/unitdata/shape.py:154
↓ 3 callersFunctiona_grpSpPr
()
tests/oxml/unitdata/shape.py:158
↓ 3 callersFunctiona_p_xfrm
()
tests/oxml/unitdata/shape.py:162
← previousnext →101–200 of 5,025, ranked by callers