MCPcopy Create free account

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

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

↓ 2 callersMethod_lvl_xml
The unicode XML snippet for the ``<c:lvl>`` elements containing multi-level category names.
src/pptx/chart/xmlwriter.py:1537
↓ 2 callersMethod_move_begin_to_cxn
Move the begin point of this connector to coordinates of the connection point of *shape* specified by *cxn_pt_idx*.
src/pptx/shapes/connector.py:273
↓ 2 callersMethod_move_end_to_cxn
Move the end point of this connector to the coordinates of the connection point of *shape* specified by *cxn_pt_idx*.
src/pptx/shapes/connector.py:286
↓ 2 callersMethod_name_header
The (platform_id, encoding_id, language_id, name_id, length, name_str_offset) 6-tuple encoded in each name record C-struct.
src/pptx/text/fonts.py:333
↓ 2 callersMethod_new
Create and return a standalone, default notes master part based on the built-in template (without any related parts, such as theme).
src/pptx/parts/slide.py:85
↓ 2 callersMethod_new_chart_graphicFrame
Return a newly created `p:graphicFrame` element having the specified position and size and containing the chart identified by *rId*.
src/pptx/shapes/placeholder.py:302
↓ 2 callersMethod_new_placeholder_pic
Return a new `p:pic` element depicting the image in *image_file*, suitable for use as a placeholder. In particular this means not
src/pptx/shapes/placeholder.py:327
↓ 2 callersMethod_new_placeholder_table
Return a newly added `p:graphicFrame` element containing an empty table with *rows* rows and *cols* columns, positioned at the locati
src/pptx/shapes/placeholder.py:397
↓ 2 callersMethod_new_theme_part
Return new default theme-part suitable for use with a notes master.
src/pptx/parts/slide.py:98
↓ 2 callersMethod_next_ph_name
Next unique placeholder name for placeholder shape of type `ph_type`. Usually will be standard placeholder root name suffixed with id-1, e.g.
src/pptx/shapes/shapetree.py:182
↓ 2 callersMethod_open_worksheet
Enable XlsxWriter Worksheet object to be opened, operated on, and then automatically closed within a `with` statement. A filename or
src/pptx/chart/xlsx.py:27
↓ 2 callersMethod_os_x_font_directories
Return a sequence of directory paths on a Mac in which fonts are likely to be located.
src/pptx/text/fonts.py:70
↓ 2 callersMethod_parse_line
Return front, attrs, close, text 4-tuple result of parsing XML element string `line`.
src/pptx/oxml/xmlchemy.py:107
↓ 2 callersFunction_qtag
(tag)
lab/cust-elm-classes/main.py:80
↓ 2 callersMethod_raw_name_string
Return the *length* bytes comprising the encoded string in *bufr* at *str_offset* in the strings area beginning at *strings_offset*.
src/pptx/text/fonts.py:342
↓ 2 callersMethod_read_name
Return a (platform_id, name_id, name) 3-tuple for name at `idx` in `bufr`. The triple looks like (0, 1, 'Arial'). `strings_offset` is the for
src/pptx/text/fonts.py:351
↓ 2 callersMethod_read_name_text
Return the unicode name string at *name_str_offset* or |None| if decoding its format is not supported.
src/pptx/text/fonts.py:362
↓ 2 callersFunction_rendered_size
Return a (width, height) pair representing the size of *text* in English Metric Units (EMU) when rendered at *point_size* in the font defined
src/pptx/text/layout.py:306
↓ 2 callersMethod_series_col_letter
The letter of the Excel worksheet column in which the data for a series appears.
src/pptx/chart/xlsx.py:131
↓ 2 callersMethod_set_font
Set the font properties of all the text in this text frame.
src/pptx/text/text.py:259
↓ 2 callersMethod_set_xmlattr
(self, xmlattr_name, value)
tests/unitdata.py:107
↓ 2 callersMethod_start_path
Return a newly created `a:path` element added to `sp`. The returned `a:path` element has an `a:moveTo` element representing the shape startin
src/pptx/shapes/freeform.py:220
↓ 2 callersMethod_trim_ser_count_by
Remove the last *count* ser elements from *plotArea*. Any xChart elements having no ser child elements after trimming are also
src/pptx/chart/xmlwriter.py:271
↓ 2 callersMethod_windows_font_directories
Return a sequence of directory paths on Windows in which fonts are likely to be located.
src/pptx/text/fonts.py:88
↓ 2 callersMethod_wrap_lines
Return a sequence of str values representing the text in *line_source* wrapped within this fitter when rendered at *point_siz
src/pptx/text/layout.py:106
↓ 2 callersMethod_write
Write physical package (.pptx file).
src/pptx/opc/serialized.py:81
↓ 2 callersMethod_write_cat_column
Write a category column defined by *level* to *worksheet* at offset *col* and formatted with *num_format*.
src/pptx/chart/xlsx.py:154
↓ 2 callersMethod_write_categories
Write the categories column(s) to *worksheet*. Categories start in the first column starting in the second row, and proceeding one
src/pptx/chart/xlsx.py:139
↓ 2 callersMethod_write_content_types_stream
Write `[Content_Types].xml` part to the physical package. This part must contain an appropriate content type lookup target for each part in t
src/pptx/opc/serialized.py:88
↓ 2 callersMethod_write_parts
Write blob of each part in `parts` to the package. A rels item for each part is also written when the part has relationships.
src/pptx/opc/serialized.py:99
↓ 2 callersMethod_write_pkg_rels
Write the XML rels item for `pkg_rels` ('/_rels/.rels') to the package.
src/pptx/opc/serialized.py:109
↓ 2 callersMethod_write_series
Write the series column(s) to *worksheet*. Series start in the column following the last categories column, placing the series title
src/pptx/chart/xlsx.py:164
↓ 2 callersMethod_xml_rels_for
Return CT_Relationships object formed by parsing rels XML for `partname`. A CT_Relationships object is returned in all cases. A part that has
src/pptx/opc/package.py:267
↓ 2 callersFunctiona_choice2
()
tests/oxml/test_xmlchemy.py:583
↓ 2 callersFunctiona_p
Return a CT_TextParagraphBuilder instance
tests/oxml/unitdata/text.py:67
↓ 2 callersMethodadd_autoshape
Return new `p:sp` appended to the group/shapetree with specified attributes.
src/pptx/oxml/shapes/groupshape.py:43
↓ 2 callersMethodadd_br
Return a newly appended `a:br` element.
src/pptx/oxml/text.py:414
↓ 2 callersMethodadd_element
Add *element* to elements dictionary, keyed by name
lab/parse_xsd/parse_xsd.py:76
↓ 2 callersMethodadd_element
Add an element to this ComplexType and also append it to element dict of parent type graph.
lab/parse_xsd/parse_xsd.py:181
↓ 2 callersMethodadd_embedded_ole_object_part
Return rId of newly-added OLE-object part formed from `ole_object_file`.
src/pptx/parts/slide.py:179
↓ 2 callersMethodadd_grpSp
Return `p:grpSp` element newly appended to this shape tree. The element contains no sub-shapes, is positioned at (0, 0), and has widt
src/pptx/oxml/shapes/groupshape.py:77
↓ 2 callersMethodadd_line_segments
Add a straight line segment to each point in `vertices`. `vertices` must be an iterable of (x, y) pairs (2-tuples). Each x and y value is rou
src/pptx/shapes/freeform.py:81
↓ 2 callersMethodadd_lumOff
Return a newly added <a:lumOff> child element.
src/pptx/oxml/dml/color.py:32
↓ 2 callersMethodadd_moveTo
Return a newly created `a:moveTo` subtree with point `(x, y)`. The new `a:moveTo` element is appended to this `a:path` element.
src/pptx/oxml/shapes/autoshape.py:119
↓ 2 callersMethodadd_movie
Return newly added movie shape displaying video in `movie_file`. **EXPERIMENTAL.** This method has important limitations: * The size
src/pptx/shapes/shapetree.py:547
↓ 2 callersMethodadd_ole_object
Return newly-created GraphicFrame shape embedding `object_file`. The returned graphic-frame shape contains `object_file` as an embedded OLE o
src/pptx/shapes/shapetree.py:296
↓ 2 callersMethodadd_pic
Append a `p:pic` shape to the group/shapetree having properties as specified in call.
src/pptx/oxml/shapes/groupshape.py:89
↓ 2 callersMethodadd_placeholder
Append a newly-created placeholder `p:sp` shape having the specified properties.
src/pptx/oxml/shapes/groupshape.py:97
↓ 2 callersMethodadd_r
Return a newly appended `a:r` element.
src/pptx/oxml/text.py:418
↓ 2 callersMethodadd_sldId
Create and return a reference to a new `p:sldId` child element. The new `p:sldId` element has its r:id attribute set to `rId`.
src/pptx/oxml/presentation.py:62
↓ 2 callersFunctionan_hlinkClick
()
tests/oxml/unitdata/text.py:76
↓ 2 callersMethodappend_text
Append `a:r` and `a:br` elements to `p` based on `text`. Any `\n` or `\v` (vertical-tab) characters in `text` delimit `a:r` (run) elements an
src/pptx/oxml/text.py:425
↓ 2 callersMethodbackground
|_Background| object providing slide background properties. This property returns a |_Background| object whether or not the slide, ma
src/pptx/slide.py:45
↓ 2 callersMethodbasename
Base of shape name for this auto shape type. A shape name is like "Rounded Rectangle 7" and appears as an XML attribute for example at
src/pptx/shapes/autoshape.py:222
↓ 2 callersMethodbegin_connect
**EXPERIMENTAL** - *The current implementation only works properly with rectangular shapes, such as pictures and rectangles. Use with
src/pptx/shapes/connector.py:24
↓ 2 callersMethodbest_fit_font_size
Return whole-number best fit point size less than or equal to `max_size`. The return value is the largest whole-number point size less than o
src/pptx/text/layout.py:21
↓ 2 callersMethodclear_content
Remove all `a:p` children, but leave any others. cf. lxml `_Element.clear()` method which removes all children.
src/pptx/oxml/text.py:93
↓ 2 callersMethodclone_layout_placeholders
Add placeholder shapes based on those in `slide_layout`. Z-order of placeholders is preserved. Latent placeholders (date, slide number, and f
src/pptx/shapes/shapetree.py:602
↓ 2 callersMethodclone_master_placeholders
Selectively add placeholder shape elements from `notes_master`. Selected placeholder shape elements from `notes_master` are added to the shap
src/pptx/slide.py:110
↓ 2 callersMethodconnect_children
Make each of the elements appearing in *child_node_list* a child of this element.
tests/unitutil/cxml.py:88
↓ 2 callersMethodconvert_to_xml
Convert signed angle float like -42.42 to int 60000 per degree, normalized to positive value.
src/pptx/oxml/simpletypes.py:236
↓ 2 callersMethodconvert_to_xml
(cls, value)
tests/oxml/test_simpletypes.py:278
↓ 2 callersFunctioncount
Local implementation of `itertools.count()` to allow v2.6 compatibility.
features/steps/helpers.py:31
↓ 2 callersMethodcreate_default
Create and return a default notes master part, including creating the new theme it requires.
src/pptx/parts/slide.py:67
↓ 2 callersMethoddefault
Return default new |CorePropertiesPart| instance suitable as starting point. This provides a base for adding core-properties to a package tha
src/pptx/parts/coreprops.py:26
↓ 2 callersMethoddefault_adjustment_values
Sequence of (name, value) pair adjustment value defaults for `prst` autoshape-type.
src/pptx/shapes/autoshape.py:233
↓ 2 callersMethodend_connect
**EXPERIMENTAL** - *The current implementation only works properly with rectangular shapes, such as pictures and rectangles. Use with
src/pptx/shapes/connector.py:125
↓ 2 callersMethodfirst_child_found_in
First child with tag in `tagnames`, or None if not found.
src/pptx/oxml/xmlchemy.py:677
↓ 2 callersMethodfit_text
Fit text-frame text entirely within bounds of its shape. Make the text in this text frame fit entirely within the bounds of its shape by sett
src/pptx/text/text.py:78
↓ 2 callersMethodfrom_string
Return a new instance from an RGB color hex string like ``'3C2F80'``.
src/pptx/dml/color.py:294
↓ 2 callersMethodfrom_xml
Return |_Relationship| object based on CT_Relationship element `rel`.
src/pptx/opc/package.py:691
↓ 2 callersMethodfrom_xml
Transform an attribute value to a Python value.
src/pptx/oxml/xmlchemy.py:25
↓ 2 callersMethodget_or_add_dPt_for_point
Return the `c:dPt` child representing the visual properties of the data point at index *idx*.
src/pptx/oxml/chart/series.py:194
↓ 2 callersMethodget_or_add_video_media_part
Return rIds for media and video relationships to media part. A new |MediaPart| object is created if it does not already exist (such a
src/pptx/parts/slide.py:191
↓ 2 callersMethodget_or_add_xfrm
Return the `a:xfrm` grandchild element, newly-added if not present. This version works for `p:sp`, `p:cxnSp`, and `p:pic` elements, others wi
src/pptx/oxml/shapes/shared.py:76
↓ 2 callersMethodget_or_add_xfrm
Return the `a:xfrm` grandchild element, newly-added if not present.
src/pptx/oxml/shapes/groupshape.py:131
↓ 2 callersMethodget_slide
Return optional related |Slide| object identified by `slide_id`. Returns |None| if no slide with `slide_id` is related to this presentation.
src/pptx/parts/presentation.py:44
↓ 2 callersMethodgradient
Sets the fill type to gradient. If the fill is not already a gradient, a default gradient is added. The default gradient corresponds
src/pptx/dml/fill.py:73
↓ 2 callersMethodid_from_prst
Select auto shape type with matching `prst`. e.g. `MSO_SHAPE.RECTANGLE` corresponding to preset geometry keyword `"rect"`.
src/pptx/shapes/autoshape.py:238
↓ 2 callersMethodinsert_chart
Return a |PlaceholderGraphicFrame| object containing a new chart of *chart_type* depicting *chart_data* and having the same position
src/pptx/shapes/placeholder.py:283
↓ 2 callersMethodinsert_picture
Return a |PlaceholderPicture| object depicting the image in `image_file`. `image_file` may be either a path (string) or a file-like object. T
src/pptx/shapes/placeholder.py:314
↓ 2 callersMethodinsert_table
Return |PlaceholderGraphicFrame| object containing a `rows` by `cols` table. The position and width of the table are those of the placeholder
src/pptx/shapes/placeholder.py:381
↓ 2 callersMethoditer_cells
Generate _Cell object for each cell in this table. Each grid cell is generated in left-to-right, top-to-bottom order.
src/pptx/table.py:90
↓ 2 callersMethoditer_cloneable_placeholders
Generate a reference to each cloneable placeholder in `notes_master`. These are the placeholders that should be cloned to a notes slide w
src/pptx/slide.py:118
↓ 2 callersMethoditer_except_left_col_tcs
Generate each `a:tc` element not in leftmost column of range.
src/pptx/oxml/table.py:499
↓ 2 callersMethoditer_except_top_row_tcs
Generate each `a:tc` element in non-first rows of range.
src/pptx/oxml/table.py:505
↓ 2 callersMethoditer_left_col_tcs
Generate each `a:tc` element in leftmost column of range.
src/pptx/oxml/table.py:511
↓ 2 callersMethoditer_top_row_tcs
Generate each `a:tc` element in topmost row of range.
src/pptx/oxml/table.py:528
↓ 2 callersMethodmove_content_to_origin
Move all paragraphs in range to origin cell.
src/pptx/oxml/table.py:534
↓ 2 callersMethodnew_autoshape_sp
Return a new `p:sp` element tree configured as a base auto shape.
src/pptx/oxml/shapes/autoshape.py:249
↓ 2 callersMethodnew_dLbls
Return a newly created "loose" `c:dLbls` element.
src/pptx/oxml/chart/datalabel.py:192
↓ 2 callersMethodnew_gsLst
Return newly-created "loose" default stop-list subtree. An `a:gsLst` element must have at least two `a:gs` children. These are the de
src/pptx/oxml/dml/fill.py:113
↓ 2 callersMethodnew_movie_pic
Return a new `p:pic` element containing video in `movie_file`. If `mime_type` is None, 'video/unknown' is used. If `poster_frame_file` is Non
src/pptx/shapes/shapetree.py:900
↓ 2 callersMethodnew_pic
Return new `<p:pic>` element tree configured with supplied parameters.
src/pptx/oxml/shapes/picture.py:69
↓ 2 callersMethodnew_placeholder_sp
Return a new `p:sp` element tree configured as a placeholder shape.
src/pptx/oxml/shapes/autoshape.py:348
↓ 2 callersMethodnew_tbl
Return a new `p:tbl` element tree.
src/pptx/oxml/table.py:104
↓ 2 callersMethodnew_textbox_sp
Return a new `p:sp` element tree configured as a base textbox shape.
src/pptx/oxml/shapes/autoshape.py:388
↓ 2 callersMethodnew_title
Return "loose" `c:title` element containing default children.
src/pptx/oxml/chart/shared.py:184
↓ 2 callersMethodnew_video_pic
Return a new `p:pic` populated with the specified video.
src/pptx/oxml/shapes/picture.py:74
↓ 2 callersMethodnext_image_partname
Return a |PackURI| instance representing the next available image partname. Partname uses the next available sequence number. *ext* is used a
src/pptx/package.py:48
← previousnext →301–400 of 5,025, ranked by callers