id int32 0 252k | repo stringlengths 7 55 | path stringlengths 4 127 | func_name stringlengths 1 88 | original_string stringlengths 75 19.8k | language stringclasses 1
value | code stringlengths 75 19.8k | code_tokens list | docstring stringlengths 3 17.3k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 87 242 |
|---|---|---|---|---|---|---|---|---|---|---|---|
236,300 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar._update_alignment | def _update_alignment(self, alignment):
"""Updates vertical text alignment button
Parameters
----------
alignment: String in ["top", "middle", "right"]
\tSwitches button to untoggled if False and toggled if True
"""
states = {"top": 2, "middle": 0, "bottom": 1... | python | def _update_alignment(self, alignment):
"""Updates vertical text alignment button
Parameters
----------
alignment: String in ["top", "middle", "right"]
\tSwitches button to untoggled if False and toggled if True
"""
states = {"top": 2, "middle": 0, "bottom": 1... | [
"def",
"_update_alignment",
"(",
"self",
",",
"alignment",
")",
":",
"states",
"=",
"{",
"\"top\"",
":",
"2",
",",
"\"middle\"",
":",
"0",
",",
"\"bottom\"",
":",
"1",
"}",
"self",
".",
"alignment_tb",
".",
"state",
"=",
"states",
"[",
"alignment",
"]"... | Updates vertical text alignment button
Parameters
----------
alignment: String in ["top", "middle", "right"]
\tSwitches button to untoggled if False and toggled if True | [
"Updates",
"vertical",
"text",
"alignment",
"button"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L885-L901 |
236,301 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar._update_fontcolor | def _update_fontcolor(self, fontcolor):
"""Updates text font color button
Parameters
----------
fontcolor: Integer
\tText color in integer RGB format
"""
textcolor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOWTEXT)
textcolor.SetRGB(fontcolor)
... | python | def _update_fontcolor(self, fontcolor):
"""Updates text font color button
Parameters
----------
fontcolor: Integer
\tText color in integer RGB format
"""
textcolor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOWTEXT)
textcolor.SetRGB(fontcolor)
... | [
"def",
"_update_fontcolor",
"(",
"self",
",",
"fontcolor",
")",
":",
"textcolor",
"=",
"wx",
".",
"SystemSettings_GetColour",
"(",
"wx",
".",
"SYS_COLOUR_WINDOWTEXT",
")",
"textcolor",
".",
"SetRGB",
"(",
"fontcolor",
")",
"self",
".",
"textcolor_choice",
".",
... | Updates text font color button
Parameters
----------
fontcolor: Integer
\tText color in integer RGB format | [
"Updates",
"text",
"font",
"color",
"button"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L903-L917 |
236,302 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar.OnBorderChoice | def OnBorderChoice(self, event):
"""Change the borders that are affected by color and width changes"""
choicelist = event.GetEventObject().GetItems()
self.borderstate = choicelist[event.GetInt()] | python | def OnBorderChoice(self, event):
"""Change the borders that are affected by color and width changes"""
choicelist = event.GetEventObject().GetItems()
self.borderstate = choicelist[event.GetInt()] | [
"def",
"OnBorderChoice",
"(",
"self",
",",
"event",
")",
":",
"choicelist",
"=",
"event",
".",
"GetEventObject",
"(",
")",
".",
"GetItems",
"(",
")",
"self",
".",
"borderstate",
"=",
"choicelist",
"[",
"event",
".",
"GetInt",
"(",
")",
"]"
] | Change the borders that are affected by color and width changes | [
"Change",
"the",
"borders",
"that",
"are",
"affected",
"by",
"color",
"and",
"width",
"changes"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L975-L979 |
236,303 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar.OnLineColor | def OnLineColor(self, event):
"""Line color choice event handler"""
color = event.GetValue().GetRGB()
borders = self.bordermap[self.borderstate]
post_command_event(self, self.BorderColorMsg, color=color,
borders=borders) | python | def OnLineColor(self, event):
"""Line color choice event handler"""
color = event.GetValue().GetRGB()
borders = self.bordermap[self.borderstate]
post_command_event(self, self.BorderColorMsg, color=color,
borders=borders) | [
"def",
"OnLineColor",
"(",
"self",
",",
"event",
")",
":",
"color",
"=",
"event",
".",
"GetValue",
"(",
")",
".",
"GetRGB",
"(",
")",
"borders",
"=",
"self",
".",
"bordermap",
"[",
"self",
".",
"borderstate",
"]",
"post_command_event",
"(",
"self",
","... | Line color choice event handler | [
"Line",
"color",
"choice",
"event",
"handler"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L981-L988 |
236,304 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar.OnLineWidth | def OnLineWidth(self, event):
"""Line width choice event handler"""
linewidth_combobox = event.GetEventObject()
idx = event.GetInt()
width = int(linewidth_combobox.GetString(idx))
borders = self.bordermap[self.borderstate]
post_command_event(self, self.BorderWidthMsg, w... | python | def OnLineWidth(self, event):
"""Line width choice event handler"""
linewidth_combobox = event.GetEventObject()
idx = event.GetInt()
width = int(linewidth_combobox.GetString(idx))
borders = self.bordermap[self.borderstate]
post_command_event(self, self.BorderWidthMsg, w... | [
"def",
"OnLineWidth",
"(",
"self",
",",
"event",
")",
":",
"linewidth_combobox",
"=",
"event",
".",
"GetEventObject",
"(",
")",
"idx",
"=",
"event",
".",
"GetInt",
"(",
")",
"width",
"=",
"int",
"(",
"linewidth_combobox",
".",
"GetString",
"(",
"idx",
")... | Line width choice event handler | [
"Line",
"width",
"choice",
"event",
"handler"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L990-L999 |
236,305 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar.OnBGColor | def OnBGColor(self, event):
"""Background color choice event handler"""
color = event.GetValue().GetRGB()
post_command_event(self, self.BackgroundColorMsg, color=color) | python | def OnBGColor(self, event):
"""Background color choice event handler"""
color = event.GetValue().GetRGB()
post_command_event(self, self.BackgroundColorMsg, color=color) | [
"def",
"OnBGColor",
"(",
"self",
",",
"event",
")",
":",
"color",
"=",
"event",
".",
"GetValue",
"(",
")",
".",
"GetRGB",
"(",
")",
"post_command_event",
"(",
"self",
",",
"self",
".",
"BackgroundColorMsg",
",",
"color",
"=",
"color",
")"
] | Background color choice event handler | [
"Background",
"color",
"choice",
"event",
"handler"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L1001-L1006 |
236,306 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar.OnTextColor | def OnTextColor(self, event):
"""Text color choice event handler"""
color = event.GetValue().GetRGB()
post_command_event(self, self.TextColorMsg, color=color) | python | def OnTextColor(self, event):
"""Text color choice event handler"""
color = event.GetValue().GetRGB()
post_command_event(self, self.TextColorMsg, color=color) | [
"def",
"OnTextColor",
"(",
"self",
",",
"event",
")",
":",
"color",
"=",
"event",
".",
"GetValue",
"(",
")",
".",
"GetRGB",
"(",
")",
"post_command_event",
"(",
"self",
",",
"self",
".",
"TextColorMsg",
",",
"color",
"=",
"color",
")"
] | Text color choice event handler | [
"Text",
"color",
"choice",
"event",
"handler"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L1008-L1013 |
236,307 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar.OnTextFont | def OnTextFont(self, event):
"""Text font choice event handler"""
fontchoice_combobox = event.GetEventObject()
idx = event.GetInt()
try:
font_string = fontchoice_combobox.GetString(idx)
except AttributeError:
font_string = event.GetString()
post... | python | def OnTextFont(self, event):
"""Text font choice event handler"""
fontchoice_combobox = event.GetEventObject()
idx = event.GetInt()
try:
font_string = fontchoice_combobox.GetString(idx)
except AttributeError:
font_string = event.GetString()
post... | [
"def",
"OnTextFont",
"(",
"self",
",",
"event",
")",
":",
"fontchoice_combobox",
"=",
"event",
".",
"GetEventObject",
"(",
")",
"idx",
"=",
"event",
".",
"GetInt",
"(",
")",
"try",
":",
"font_string",
"=",
"fontchoice_combobox",
".",
"GetString",
"(",
"idx... | Text font choice event handler | [
"Text",
"font",
"choice",
"event",
"handler"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L1015-L1026 |
236,308 | manns/pyspread | pyspread/src/gui/_toolbars.py | AttributesToolbar.OnTextSize | def OnTextSize(self, event):
"""Text size combo text event handler"""
try:
size = int(event.GetString())
except Exception:
size = get_default_font().GetPointSize()
post_command_event(self, self.FontSizeMsg, size=size) | python | def OnTextSize(self, event):
"""Text size combo text event handler"""
try:
size = int(event.GetString())
except Exception:
size = get_default_font().GetPointSize()
post_command_event(self, self.FontSizeMsg, size=size) | [
"def",
"OnTextSize",
"(",
"self",
",",
"event",
")",
":",
"try",
":",
"size",
"=",
"int",
"(",
"event",
".",
"GetString",
"(",
")",
")",
"except",
"Exception",
":",
"size",
"=",
"get_default_font",
"(",
")",
".",
"GetPointSize",
"(",
")",
"post_command... | Text size combo text event handler | [
"Text",
"size",
"combo",
"text",
"event",
"handler"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_toolbars.py#L1028-L1037 |
236,309 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.set_code | def set_code(self, key, code):
"""Sets code of cell key, marks grid as changed"""
old_code = self.grid.code_array(key)
try:
old_code = unicode(old_code, encoding="utf-8")
except TypeError:
pass
if code == old_code:
return
if not (o... | python | def set_code(self, key, code):
"""Sets code of cell key, marks grid as changed"""
old_code = self.grid.code_array(key)
try:
old_code = unicode(old_code, encoding="utf-8")
except TypeError:
pass
if code == old_code:
return
if not (o... | [
"def",
"set_code",
"(",
"self",
",",
"key",
",",
"code",
")",
":",
"old_code",
"=",
"self",
".",
"grid",
".",
"code_array",
"(",
"key",
")",
"try",
":",
"old_code",
"=",
"unicode",
"(",
"old_code",
",",
"encoding",
"=",
"\"utf-8\"",
")",
"except",
"T... | Sets code of cell key, marks grid as changed | [
"Sets",
"code",
"of",
"cell",
"key",
"marks",
"grid",
"as",
"changed"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L50-L69 |
236,310 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.quote_code | def quote_code(self, key):
"""Returns string quoted code """
code = self.grid.code_array(key)
quoted_code = quote(code)
if quoted_code is not None:
self.set_code(key, quoted_code) | python | def quote_code(self, key):
"""Returns string quoted code """
code = self.grid.code_array(key)
quoted_code = quote(code)
if quoted_code is not None:
self.set_code(key, quoted_code) | [
"def",
"quote_code",
"(",
"self",
",",
"key",
")",
":",
"code",
"=",
"self",
".",
"grid",
".",
"code_array",
"(",
"key",
")",
"quoted_code",
"=",
"quote",
"(",
"code",
")",
"if",
"quoted_code",
"is",
"not",
"None",
":",
"self",
".",
"set_code",
"(",
... | Returns string quoted code | [
"Returns",
"string",
"quoted",
"code"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L71-L78 |
236,311 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.delete_cell | def delete_cell(self, key):
"""Deletes key cell"""
try:
self.code_array.pop(key)
except KeyError:
pass
self.grid.code_array.result_cache.clear() | python | def delete_cell(self, key):
"""Deletes key cell"""
try:
self.code_array.pop(key)
except KeyError:
pass
self.grid.code_array.result_cache.clear() | [
"def",
"delete_cell",
"(",
"self",
",",
"key",
")",
":",
"try",
":",
"self",
".",
"code_array",
".",
"pop",
"(",
"key",
")",
"except",
"KeyError",
":",
"pass",
"self",
".",
"grid",
".",
"code_array",
".",
"result_cache",
".",
"clear",
"(",
")"
] | Deletes key cell | [
"Deletes",
"key",
"cell"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L80-L89 |
236,312 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.append_reference_code | def append_reference_code(self, key, ref_key, ref_type="absolute"):
"""Appends reference code to cell code.
Replaces existing reference.
Parameters
----------
key: 3-tuple of Integer
\tKey of cell that gets the reference
ref_key: 3-tuple of Integer
\tKey... | python | def append_reference_code(self, key, ref_key, ref_type="absolute"):
"""Appends reference code to cell code.
Replaces existing reference.
Parameters
----------
key: 3-tuple of Integer
\tKey of cell that gets the reference
ref_key: 3-tuple of Integer
\tKey... | [
"def",
"append_reference_code",
"(",
"self",
",",
"key",
",",
"ref_key",
",",
"ref_type",
"=",
"\"absolute\"",
")",
":",
"if",
"ref_type",
"==",
"\"absolute\"",
":",
"code",
"=",
"self",
".",
"_get_absolute_reference",
"(",
"ref_key",
")",
"elif",
"ref_type",
... | Appends reference code to cell code.
Replaces existing reference.
Parameters
----------
key: 3-tuple of Integer
\tKey of cell that gets the reference
ref_key: 3-tuple of Integer
\tKey of cell that is referenced
ref_type: Sting in ["absolute", "relative"]... | [
"Appends",
"reference",
"code",
"to",
"cell",
"code",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L145-L184 |
236,313 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions._set_cell_attr | def _set_cell_attr(self, selection, table, attr):
"""Sets cell attr for key cell and mark grid content as changed
Parameters
----------
attr: dict
\tContains cell attribute keys
\tkeys in ["borderwidth_bottom", "borderwidth_right",
\t"bordercolor_bottom", "borde... | python | def _set_cell_attr(self, selection, table, attr):
"""Sets cell attr for key cell and mark grid content as changed
Parameters
----------
attr: dict
\tContains cell attribute keys
\tkeys in ["borderwidth_bottom", "borderwidth_right",
\t"bordercolor_bottom", "borde... | [
"def",
"_set_cell_attr",
"(",
"self",
",",
"selection",
",",
"table",
",",
"attr",
")",
":",
"# Mark content as changed",
"post_command_event",
"(",
"self",
".",
"main_window",
",",
"self",
".",
"ContentChangedMsg",
")",
"if",
"selection",
"is",
"not",
"None",
... | Sets cell attr for key cell and mark grid content as changed
Parameters
----------
attr: dict
\tContains cell attribute keys
\tkeys in ["borderwidth_bottom", "borderwidth_right",
\t"bordercolor_bottom", "bordercolor_right",
\t"bgcolor", "textfont",
\t"po... | [
"Sets",
"cell",
"attr",
"for",
"key",
"cell",
"and",
"mark",
"grid",
"content",
"as",
"changed"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L186-L207 |
236,314 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.set_attr | def set_attr(self, attr, value, selection=None):
"""Sets attr of current selection to value"""
if selection is None:
selection = self.grid.selection
if not selection:
# Add current cell to selection so that it gets changed
selection.cells.append(self.grid.ac... | python | def set_attr(self, attr, value, selection=None):
"""Sets attr of current selection to value"""
if selection is None:
selection = self.grid.selection
if not selection:
# Add current cell to selection so that it gets changed
selection.cells.append(self.grid.ac... | [
"def",
"set_attr",
"(",
"self",
",",
"attr",
",",
"value",
",",
"selection",
"=",
"None",
")",
":",
"if",
"selection",
"is",
"None",
":",
"selection",
"=",
"self",
".",
"grid",
".",
"selection",
"if",
"not",
"selection",
":",
"# Add current cell to selecti... | Sets attr of current selection to value | [
"Sets",
"attr",
"of",
"current",
"selection",
"to",
"value"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L209-L224 |
236,315 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.set_border_attr | def set_border_attr(self, attr, value, borders):
"""Sets border attribute by adjusting selection to borders
Parameters
----------
attr: String in ["borderwidth", "bordercolor"]
\tBorder attribute that shall be changed
value: wx.Colour or Integer
\tAttribute value... | python | def set_border_attr(self, attr, value, borders):
"""Sets border attribute by adjusting selection to borders
Parameters
----------
attr: String in ["borderwidth", "bordercolor"]
\tBorder attribute that shall be changed
value: wx.Colour or Integer
\tAttribute value... | [
"def",
"set_border_attr",
"(",
"self",
",",
"attr",
",",
"value",
",",
"borders",
")",
":",
"selection",
"=",
"self",
".",
"grid",
".",
"selection",
"if",
"not",
"selection",
":",
"selection",
".",
"cells",
".",
"append",
"(",
"self",
".",
"grid",
".",... | Sets border attribute by adjusting selection to borders
Parameters
----------
attr: String in ["borderwidth", "bordercolor"]
\tBorder attribute that shall be changed
value: wx.Colour or Integer
\tAttribute value dependent on attribute type
borders: Iterable over ... | [
"Sets",
"border",
"attribute",
"by",
"adjusting",
"selection",
"to",
"borders"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L226-L286 |
236,316 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.toggle_attr | def toggle_attr(self, attr):
"""Toggles an attribute attr for current selection"""
selection = self.grid.selection
# Selection or single cell access?
if selection:
value = self.get_new_selection_attr_state(selection, attr)
else:
value = self.get_new_ce... | python | def toggle_attr(self, attr):
"""Toggles an attribute attr for current selection"""
selection = self.grid.selection
# Selection or single cell access?
if selection:
value = self.get_new_selection_attr_state(selection, attr)
else:
value = self.get_new_ce... | [
"def",
"toggle_attr",
"(",
"self",
",",
"attr",
")",
":",
"selection",
"=",
"self",
".",
"grid",
".",
"selection",
"# Selection or single cell access?",
"if",
"selection",
":",
"value",
"=",
"self",
".",
"get_new_selection_attr_state",
"(",
"selection",
",",
"at... | Toggles an attribute attr for current selection | [
"Toggles",
"an",
"attribute",
"attr",
"for",
"current",
"selection"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L288-L304 |
236,317 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.change_frozen_attr | def change_frozen_attr(self):
"""Changes frozen state of cell if there is no selection"""
# Selections are not supported
if self.grid.selection:
statustext = _("Freezing selections is not supported.")
post_command_event(self.main_window, self.StatusBarMsg,
... | python | def change_frozen_attr(self):
"""Changes frozen state of cell if there is no selection"""
# Selections are not supported
if self.grid.selection:
statustext = _("Freezing selections is not supported.")
post_command_event(self.main_window, self.StatusBarMsg,
... | [
"def",
"change_frozen_attr",
"(",
"self",
")",
":",
"# Selections are not supported",
"if",
"self",
".",
"grid",
".",
"selection",
":",
"statustext",
"=",
"_",
"(",
"\"Freezing selections is not supported.\"",
")",
"post_command_event",
"(",
"self",
".",
"main_window"... | Changes frozen state of cell if there is no selection | [
"Changes",
"frozen",
"state",
"of",
"cell",
"if",
"there",
"is",
"no",
"selection"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L308-L337 |
236,318 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.unmerge | def unmerge(self, unmerge_area, tab):
"""Unmerges all cells in unmerge_area"""
top, left, bottom, right = unmerge_area
selection = Selection([(top, left)], [(bottom, right)], [], [], [])
attr = {"merge_area": None, "locked": False}
self._set_cell_attr(selection, tab, attr) | python | def unmerge(self, unmerge_area, tab):
"""Unmerges all cells in unmerge_area"""
top, left, bottom, right = unmerge_area
selection = Selection([(top, left)], [(bottom, right)], [], [], [])
attr = {"merge_area": None, "locked": False}
self._set_cell_attr(selection, tab, attr) | [
"def",
"unmerge",
"(",
"self",
",",
"unmerge_area",
",",
"tab",
")",
":",
"top",
",",
"left",
",",
"bottom",
",",
"right",
"=",
"unmerge_area",
"selection",
"=",
"Selection",
"(",
"[",
"(",
"top",
",",
"left",
")",
"]",
",",
"[",
"(",
"bottom",
","... | Unmerges all cells in unmerge_area | [
"Unmerges",
"all",
"cells",
"in",
"unmerge_area"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L339-L346 |
236,319 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.merge | def merge(self, merge_area, tab):
"""Merges top left cell with all cells until bottom_right"""
top, left, bottom, right = merge_area
cursor = self.grid.actions.cursor
top_left_code = self.code_array((top, left, cursor[2]))
selection = Selection([(top, left)], [(bottom, right)]... | python | def merge(self, merge_area, tab):
"""Merges top left cell with all cells until bottom_right"""
top, left, bottom, right = merge_area
cursor = self.grid.actions.cursor
top_left_code = self.code_array((top, left, cursor[2]))
selection = Selection([(top, left)], [(bottom, right)]... | [
"def",
"merge",
"(",
"self",
",",
"merge_area",
",",
"tab",
")",
":",
"top",
",",
"left",
",",
"bottom",
",",
"right",
"=",
"merge_area",
"cursor",
"=",
"self",
".",
"grid",
".",
"actions",
".",
"cursor",
"top_left_code",
"=",
"self",
".",
"code_array"... | Merges top left cell with all cells until bottom_right | [
"Merges",
"top",
"left",
"cell",
"with",
"all",
"cells",
"until",
"bottom_right"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L348-L380 |
236,320 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.merge_selected_cells | def merge_selected_cells(self, selection):
"""Merges or unmerges cells that are in the selection bounding box
Parameters
----------
selection: Selection object
\tSelection for which attr toggle shall be returned
"""
tab = self.grid.current_table
# Get ... | python | def merge_selected_cells(self, selection):
"""Merges or unmerges cells that are in the selection bounding box
Parameters
----------
selection: Selection object
\tSelection for which attr toggle shall be returned
"""
tab = self.grid.current_table
# Get ... | [
"def",
"merge_selected_cells",
"(",
"self",
",",
"selection",
")",
":",
"tab",
"=",
"self",
".",
"grid",
".",
"current_table",
"# Get the selection bounding box",
"bbox",
"=",
"selection",
".",
"get_bbox",
"(",
")",
"if",
"bbox",
"is",
"None",
":",
"row",
",... | Merges or unmerges cells that are in the selection bounding box
Parameters
----------
selection: Selection object
\tSelection for which attr toggle shall be returned | [
"Merges",
"or",
"unmerges",
"cells",
"that",
"are",
"in",
"the",
"selection",
"bounding",
"box"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L382-L410 |
236,321 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.get_new_cell_attr_state | def get_new_cell_attr_state(self, key, attr_key):
"""Returns new attr cell state for toggles
Parameters
----------
key: 3-Tuple
\tCell for which attr toggle shall be returned
attr_key: Hashable
\tAttribute key
"""
cell_attributes = self.grid.cod... | python | def get_new_cell_attr_state(self, key, attr_key):
"""Returns new attr cell state for toggles
Parameters
----------
key: 3-Tuple
\tCell for which attr toggle shall be returned
attr_key: Hashable
\tAttribute key
"""
cell_attributes = self.grid.cod... | [
"def",
"get_new_cell_attr_state",
"(",
"self",
",",
"key",
",",
"attr_key",
")",
":",
"cell_attributes",
"=",
"self",
".",
"grid",
".",
"code_array",
".",
"cell_attributes",
"attr_values",
"=",
"self",
".",
"attr_toggle_values",
"[",
"attr_key",
"]",
"# Map attr... | Returns new attr cell state for toggles
Parameters
----------
key: 3-Tuple
\tCell for which attr toggle shall be returned
attr_key: Hashable
\tAttribute key | [
"Returns",
"new",
"attr",
"cell",
"state",
"for",
"toggles"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L425-L445 |
236,322 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.get_new_selection_attr_state | def get_new_selection_attr_state(self, selection, attr_key):
"""Toggles new attr selection state and returns it
Parameters
----------
selection: Selection object
\tSelection for which attr toggle shall be returned
attr_key: Hashable
\tAttribute key
"""
... | python | def get_new_selection_attr_state(self, selection, attr_key):
"""Toggles new attr selection state and returns it
Parameters
----------
selection: Selection object
\tSelection for which attr toggle shall be returned
attr_key: Hashable
\tAttribute key
"""
... | [
"def",
"get_new_selection_attr_state",
"(",
"self",
",",
"selection",
",",
"attr_key",
")",
":",
"cell_attributes",
"=",
"self",
".",
"grid",
".",
"code_array",
".",
"cell_attributes",
"attr_values",
"=",
"self",
".",
"attr_toggle_values",
"[",
"attr_key",
"]",
... | Toggles new attr selection state and returns it
Parameters
----------
selection: Selection object
\tSelection for which attr toggle shall be returned
attr_key: Hashable
\tAttribute key | [
"Toggles",
"new",
"attr",
"selection",
"state",
"and",
"returns",
"it"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L447-L477 |
236,323 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.refresh_frozen_cell | def refresh_frozen_cell(self, key):
"""Refreshes a frozen cell"""
code = self.grid.code_array(key)
result = self.grid.code_array._eval_cell(key, code)
self.grid.code_array.frozen_cache[repr(key)] = result | python | def refresh_frozen_cell(self, key):
"""Refreshes a frozen cell"""
code = self.grid.code_array(key)
result = self.grid.code_array._eval_cell(key, code)
self.grid.code_array.frozen_cache[repr(key)] = result | [
"def",
"refresh_frozen_cell",
"(",
"self",
",",
"key",
")",
":",
"code",
"=",
"self",
".",
"grid",
".",
"code_array",
"(",
"key",
")",
"result",
"=",
"self",
".",
"grid",
".",
"code_array",
".",
"_eval_cell",
"(",
"key",
",",
"code",
")",
"self",
"."... | Refreshes a frozen cell | [
"Refreshes",
"a",
"frozen",
"cell"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L479-L484 |
236,324 | manns/pyspread | pyspread/src/actions/_grid_cell_actions.py | CellActions.refresh_selected_frozen_cells | def refresh_selected_frozen_cells(self, selection=None):
"""Refreshes content of frozen cells that are currently selected
If there is no selection, the cell at the cursor is updated.
Parameters
----------
selection: Selection, defaults to None
\tIf not None then use thi... | python | def refresh_selected_frozen_cells(self, selection=None):
"""Refreshes content of frozen cells that are currently selected
If there is no selection, the cell at the cursor is updated.
Parameters
----------
selection: Selection, defaults to None
\tIf not None then use thi... | [
"def",
"refresh_selected_frozen_cells",
"(",
"self",
",",
"selection",
"=",
"None",
")",
":",
"if",
"selection",
"is",
"None",
":",
"selection",
"=",
"self",
".",
"grid",
".",
"selection",
"# Add cursor to empty selection",
"if",
"not",
"selection",
":",
"select... | Refreshes content of frozen cells that are currently selected
If there is no selection, the cell at the cursor is updated.
Parameters
----------
selection: Selection, defaults to None
\tIf not None then use this selection instead of the grid selection | [
"Refreshes",
"content",
"of",
"frozen",
"cells",
"that",
"are",
"currently",
"selected"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_grid_cell_actions.py#L486-L523 |
236,325 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ExchangeActions._import_csv | def _import_csv(self, path):
"""CSV import workflow"""
# If path is not set, do nothing
if not path:
return
# Get csv info
try:
dialect, has_header, digest_types, encoding = \
self.main_window.interfaces.get_csv_import_info(path)
... | python | def _import_csv(self, path):
"""CSV import workflow"""
# If path is not set, do nothing
if not path:
return
# Get csv info
try:
dialect, has_header, digest_types, encoding = \
self.main_window.interfaces.get_csv_import_info(path)
... | [
"def",
"_import_csv",
"(",
"self",
",",
"path",
")",
":",
"# If path is not set, do nothing",
"if",
"not",
"path",
":",
"return",
"# Get csv info",
"try",
":",
"dialect",
",",
"has_header",
",",
"digest_types",
",",
"encoding",
"=",
"self",
".",
"main_window",
... | CSV import workflow | [
"CSV",
"import",
"workflow"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L88-L110 |
236,326 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ExchangeActions.import_file | def import_file(self, filepath, filterindex):
"""Imports external file
Parameters
----------
filepath: String
\tPath of import file
filterindex: Integer
\tIndex for type of file, 0: csv, 1: tab-delimited text file
"""
# Mark content as changed
... | python | def import_file(self, filepath, filterindex):
"""Imports external file
Parameters
----------
filepath: String
\tPath of import file
filterindex: Integer
\tIndex for type of file, 0: csv, 1: tab-delimited text file
"""
# Mark content as changed
... | [
"def",
"import_file",
"(",
"self",
",",
"filepath",
",",
"filterindex",
")",
":",
"# Mark content as changed",
"post_command_event",
"(",
"self",
".",
"main_window",
",",
"self",
".",
"ContentChangedMsg",
")",
"if",
"filterindex",
"==",
"0",
":",
"# CSV import opt... | Imports external file
Parameters
----------
filepath: String
\tPath of import file
filterindex: Integer
\tIndex for type of file, 0: csv, 1: tab-delimited text file | [
"Imports",
"external",
"file"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L117-L144 |
236,327 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ExchangeActions._export_csv | def _export_csv(self, filepath, data, preview_data):
"""CSV export of code_array results
Parameters
----------
filepath: String
\tPath of export file
data: Object
\tCode array result object slice, i. e. one object or iterable of
\tsuch objects
""... | python | def _export_csv(self, filepath, data, preview_data):
"""CSV export of code_array results
Parameters
----------
filepath: String
\tPath of export file
data: Object
\tCode array result object slice, i. e. one object or iterable of
\tsuch objects
""... | [
"def",
"_export_csv",
"(",
"self",
",",
"filepath",
",",
"data",
",",
"preview_data",
")",
":",
"# Get csv info",
"csv_info",
"=",
"self",
".",
"main_window",
".",
"interfaces",
".",
"get_csv_export_info",
"(",
"preview_data",
")",
"if",
"csv_info",
"is",
"Non... | CSV export of code_array results
Parameters
----------
filepath: String
\tPath of export file
data: Object
\tCode array result object slice, i. e. one object or iterable of
\tsuch objects | [
"CSV",
"export",
"of",
"code_array",
"results"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L146-L185 |
236,328 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ExchangeActions._export_figure | def _export_figure(self, filepath, data, format):
"""Export of single cell that contains a matplotlib figure
Parameters
----------
filepath: String
\tPath of export file
data: Matplotlib Figure
\tMatplotlib figure that is eported
format: String in ["png",... | python | def _export_figure(self, filepath, data, format):
"""Export of single cell that contains a matplotlib figure
Parameters
----------
filepath: String
\tPath of export file
data: Matplotlib Figure
\tMatplotlib figure that is eported
format: String in ["png",... | [
"def",
"_export_figure",
"(",
"self",
",",
"filepath",
",",
"data",
",",
"format",
")",
":",
"formats",
"=",
"[",
"\"svg\"",
",",
"\"eps\"",
",",
"\"ps\"",
",",
"\"pdf\"",
",",
"\"png\"",
"]",
"assert",
"format",
"in",
"formats",
"data",
"=",
"fig2x",
... | Export of single cell that contains a matplotlib figure
Parameters
----------
filepath: String
\tPath of export file
data: Matplotlib Figure
\tMatplotlib figure that is eported
format: String in ["png", "pdf", "ps", "eps", "svg"] | [
"Export",
"of",
"single",
"cell",
"that",
"contains",
"a",
"matplotlib",
"figure"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L187-L217 |
236,329 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ExchangeActions.export_file | def export_file(self, filepath, __filter, data, preview_data=None):
"""Export data for other applications
Parameters
----------
filepath: String
\tPath of export file
__filter: String
\tImport filter
data: Object
\tCode array result object slice, ... | python | def export_file(self, filepath, __filter, data, preview_data=None):
"""Export data for other applications
Parameters
----------
filepath: String
\tPath of export file
__filter: String
\tImport filter
data: Object
\tCode array result object slice, ... | [
"def",
"export_file",
"(",
"self",
",",
"filepath",
",",
"__filter",
",",
"data",
",",
"preview_data",
"=",
"None",
")",
":",
"if",
"__filter",
".",
"startswith",
"(",
"\"cell_\"",
")",
":",
"self",
".",
"_export_figure",
"(",
"filepath",
",",
"data",
",... | Export data for other applications
Parameters
----------
filepath: String
\tPath of export file
__filter: String
\tImport filter
data: Object
\tCode array result object slice, i. e. one object or iterable of
\tsuch objects | [
"Export",
"data",
"for",
"other",
"applications"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L219-L241 |
236,330 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ExchangeActions.get_print_rect | def get_print_rect(self, grid_rect):
"""Returns wx.Rect that is correctly positioned on the print canvas"""
grid = self.grid
rect_x = grid_rect.x - \
grid.GetScrollPos(wx.HORIZONTAL) * grid.GetScrollLineX()
rect_y = grid_rect.y - \
grid.GetScrollPos(wx.VERTICAL)... | python | def get_print_rect(self, grid_rect):
"""Returns wx.Rect that is correctly positioned on the print canvas"""
grid = self.grid
rect_x = grid_rect.x - \
grid.GetScrollPos(wx.HORIZONTAL) * grid.GetScrollLineX()
rect_y = grid_rect.y - \
grid.GetScrollPos(wx.VERTICAL)... | [
"def",
"get_print_rect",
"(",
"self",
",",
"grid_rect",
")",
":",
"grid",
"=",
"self",
".",
"grid",
"rect_x",
"=",
"grid_rect",
".",
"x",
"-",
"grid",
".",
"GetScrollPos",
"(",
"wx",
".",
"HORIZONTAL",
")",
"*",
"grid",
".",
"GetScrollLineX",
"(",
")",... | Returns wx.Rect that is correctly positioned on the print canvas | [
"Returns",
"wx",
".",
"Rect",
"that",
"is",
"correctly",
"positioned",
"on",
"the",
"print",
"canvas"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L243-L253 |
236,331 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ExchangeActions.export_cairo | def export_cairo(self, filepath, filetype):
"""Exports grid to the PDF file filepath
Parameters
----------
filepath: String
\tPath of file to export
filetype in ["pdf", "svg"]
\tType of file to export
"""
if cairo is None:
return
... | python | def export_cairo(self, filepath, filetype):
"""Exports grid to the PDF file filepath
Parameters
----------
filepath: String
\tPath of file to export
filetype in ["pdf", "svg"]
\tType of file to export
"""
if cairo is None:
return
... | [
"def",
"export_cairo",
"(",
"self",
",",
"filepath",
",",
"filetype",
")",
":",
"if",
"cairo",
"is",
"None",
":",
"return",
"export_info",
"=",
"self",
".",
"main_window",
".",
"interfaces",
".",
"get_cairo_export_info",
"(",
"filetype",
")",
"if",
"export_i... | Exports grid to the PDF file filepath
Parameters
----------
filepath: String
\tPath of file to export
filetype in ["pdf", "svg"]
\tType of file to export | [
"Exports",
"grid",
"to",
"the",
"PDF",
"file",
"filepath"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L255-L319 |
236,332 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | PrintActions.print_preview | def print_preview(self, print_area, print_data):
"""Launch print preview"""
if cairo is None:
return
print_info = \
self.main_window.interfaces.get_cairo_export_info("Print")
if print_info is None:
# Dialog has been canceled
return
... | python | def print_preview(self, print_area, print_data):
"""Launch print preview"""
if cairo is None:
return
print_info = \
self.main_window.interfaces.get_cairo_export_info("Print")
if print_info is None:
# Dialog has been canceled
return
... | [
"def",
"print_preview",
"(",
"self",
",",
"print_area",
",",
"print_data",
")",
":",
"if",
"cairo",
"is",
"None",
":",
"return",
"print_info",
"=",
"self",
".",
"main_window",
".",
"interfaces",
".",
"get_cairo_export_info",
"(",
"\"Print\"",
")",
"if",
"pri... | Launch print preview | [
"Launch",
"print",
"preview"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L325-L353 |
236,333 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | PrintActions.printout | def printout(self, print_area, print_data):
"""Print out print area
See:
http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3471083
"""
print_info = \
self.main_window.interfaces.get_cairo_export_info("Print")
if print_info is None:
#... | python | def printout(self, print_area, print_data):
"""Print out print area
See:
http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3471083
"""
print_info = \
self.main_window.interfaces.get_cairo_export_info("Print")
if print_info is None:
#... | [
"def",
"printout",
"(",
"self",
",",
"print_area",
",",
"print_data",
")",
":",
"print_info",
"=",
"self",
".",
"main_window",
".",
"interfaces",
".",
"get_cairo_export_info",
"(",
"\"Print\"",
")",
"if",
"print_info",
"is",
"None",
":",
"# Dialog has been cance... | Print out print area
See:
http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3471083 | [
"Print",
"out",
"print",
"area"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L355-L379 |
236,334 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ClipboardActions.copy | def copy(self, selection, getter=None, delete=False):
"""Returns code from selection in a tab separated string
Cells that are not in selection are included as empty.
Parameters
----------
selection: Selection object
\tSelection of cells in current table that shall be c... | python | def copy(self, selection, getter=None, delete=False):
"""Returns code from selection in a tab separated string
Cells that are not in selection are included as empty.
Parameters
----------
selection: Selection object
\tSelection of cells in current table that shall be c... | [
"def",
"copy",
"(",
"self",
",",
"selection",
",",
"getter",
"=",
"None",
",",
"delete",
"=",
"False",
")",
":",
"if",
"getter",
"is",
"None",
":",
"getter",
"=",
"self",
".",
"_get_code",
"tab",
"=",
"self",
".",
"grid",
".",
"current_table",
"selec... | Returns code from selection in a tab separated string
Cells that are not in selection are included as empty.
Parameters
----------
selection: Selection object
\tSelection of cells in current table that shall be copied
getter: Function, defaults to _get_code
\tG... | [
"Returns",
"code",
"from",
"selection",
"in",
"a",
"tab",
"separated",
"string"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L416-L481 |
236,335 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ClipboardActions.img2code | def img2code(self, key, img):
"""Pastes wx.Image into single cell"""
code_template = \
"wx.ImageFromData({width}, {height}, " + \
"bz2.decompress(base64.b64decode('{data}'))).ConvertToBitmap()"
code_alpha_template = \
"wx.ImageFromDataWithAlpha({width}, {hei... | python | def img2code(self, key, img):
"""Pastes wx.Image into single cell"""
code_template = \
"wx.ImageFromData({width}, {height}, " + \
"bz2.decompress(base64.b64decode('{data}'))).ConvertToBitmap()"
code_alpha_template = \
"wx.ImageFromDataWithAlpha({width}, {hei... | [
"def",
"img2code",
"(",
"self",
",",
"key",
",",
"img",
")",
":",
"code_template",
"=",
"\"wx.ImageFromData({width}, {height}, \"",
"+",
"\"bz2.decompress(base64.b64decode('{data}'))).ConvertToBitmap()\"",
"code_alpha_template",
"=",
"\"wx.ImageFromDataWithAlpha({width}, {height}, ... | Pastes wx.Image into single cell | [
"Pastes",
"wx",
".",
"Image",
"into",
"single",
"cell"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L555-L578 |
236,336 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ClipboardActions._get_paste_data_gen | def _get_paste_data_gen(self, key, data):
"""Generator for paste data
Can be used in grid.actions.paste
"""
if type(data) is wx._gdi.Bitmap:
code_str = self.bmp2code(key, data)
return [[code_str]]
else:
return (line.split("\t") for line in d... | python | def _get_paste_data_gen(self, key, data):
"""Generator for paste data
Can be used in grid.actions.paste
"""
if type(data) is wx._gdi.Bitmap:
code_str = self.bmp2code(key, data)
return [[code_str]]
else:
return (line.split("\t") for line in d... | [
"def",
"_get_paste_data_gen",
"(",
"self",
",",
"key",
",",
"data",
")",
":",
"if",
"type",
"(",
"data",
")",
"is",
"wx",
".",
"_gdi",
".",
"Bitmap",
":",
"code_str",
"=",
"self",
".",
"bmp2code",
"(",
"key",
",",
"data",
")",
"return",
"[",
"[",
... | Generator for paste data
Can be used in grid.actions.paste | [
"Generator",
"for",
"paste",
"data"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L585-L596 |
236,337 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ClipboardActions.paste | def paste(self, key, data):
"""Pastes data into grid
Parameters
----------
key: 2-Tuple of Integer
\tTop left cell
data: String or wx.Bitmap
\tTab separated string of paste data
\tor paste data image
"""
data_gen = self._get_paste_data_g... | python | def paste(self, key, data):
"""Pastes data into grid
Parameters
----------
key: 2-Tuple of Integer
\tTop left cell
data: String or wx.Bitmap
\tTab separated string of paste data
\tor paste data image
"""
data_gen = self._get_paste_data_g... | [
"def",
"paste",
"(",
"self",
",",
"key",
",",
"data",
")",
":",
"data_gen",
"=",
"self",
".",
"_get_paste_data_gen",
"(",
"key",
",",
"data",
")",
"self",
".",
"grid",
".",
"actions",
".",
"paste",
"(",
"key",
"[",
":",
"2",
"]",
",",
"data_gen",
... | Pastes data into grid
Parameters
----------
key: 2-Tuple of Integer
\tTop left cell
data: String or wx.Bitmap
\tTab separated string of paste data
\tor paste data image | [
"Pastes",
"data",
"into",
"grid"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L598-L615 |
236,338 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ClipboardActions._get_pasteas_data | def _get_pasteas_data(self, dim, obj):
"""Returns list of lists of obj than has dimensionality dim
Parameters
----------
dim: Integer
\tDimensionality of obj
obj: Object
\tIterable object of dimensionality dim
"""
if dim == 0:
return... | python | def _get_pasteas_data(self, dim, obj):
"""Returns list of lists of obj than has dimensionality dim
Parameters
----------
dim: Integer
\tDimensionality of obj
obj: Object
\tIterable object of dimensionality dim
"""
if dim == 0:
return... | [
"def",
"_get_pasteas_data",
"(",
"self",
",",
"dim",
",",
"obj",
")",
":",
"if",
"dim",
"==",
"0",
":",
"return",
"[",
"[",
"repr",
"(",
"obj",
")",
"]",
"]",
"elif",
"dim",
"==",
"1",
":",
"return",
"[",
"[",
"repr",
"(",
"o",
")",
"]",
"for... | Returns list of lists of obj than has dimensionality dim
Parameters
----------
dim: Integer
\tDimensionality of obj
obj: Object
\tIterable object of dimensionality dim | [
"Returns",
"list",
"of",
"lists",
"of",
"obj",
"than",
"has",
"dimensionality",
"dim"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L617-L634 |
236,339 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | ClipboardActions.paste_as | def paste_as(self, key, data):
"""Paste and transform data
Data may be given as a Python code as well as a tab separated
multi-line strings similar to paste.
"""
def error_msg(err):
msg = _("Error evaluating data: ") + str(err)
post_command_event(self.m... | python | def paste_as(self, key, data):
"""Paste and transform data
Data may be given as a Python code as well as a tab separated
multi-line strings similar to paste.
"""
def error_msg(err):
msg = _("Error evaluating data: ") + str(err)
post_command_event(self.m... | [
"def",
"paste_as",
"(",
"self",
",",
"key",
",",
"data",
")",
":",
"def",
"error_msg",
"(",
"err",
")",
":",
"msg",
"=",
"_",
"(",
"\"Error evaluating data: \"",
")",
"+",
"str",
"(",
"err",
")",
"post_command_event",
"(",
"self",
".",
"main_window",
"... | Paste and transform data
Data may be given as a Python code as well as a tab separated
multi-line strings similar to paste. | [
"Paste",
"and",
"transform",
"data"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L636-L684 |
236,340 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | MacroActions.execute_macros | def execute_macros(self):
"""Executes macros and marks grid as changed"""
# Mark content as changed
post_command_event(self.main_window, self.ContentChangedMsg)
(result, err) = self.grid.code_array.execute_macros()
# Post event to macro dialog
post_command_event(self.m... | python | def execute_macros(self):
"""Executes macros and marks grid as changed"""
# Mark content as changed
post_command_event(self.main_window, self.ContentChangedMsg)
(result, err) = self.grid.code_array.execute_macros()
# Post event to macro dialog
post_command_event(self.m... | [
"def",
"execute_macros",
"(",
"self",
")",
":",
"# Mark content as changed",
"post_command_event",
"(",
"self",
".",
"main_window",
",",
"self",
".",
"ContentChangedMsg",
")",
"(",
"result",
",",
"err",
")",
"=",
"self",
".",
"grid",
".",
"code_array",
".",
... | Executes macros and marks grid as changed | [
"Executes",
"macros",
"and",
"marks",
"grid",
"as",
"changed"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L695-L705 |
236,341 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | MacroActions.open_macros | def open_macros(self, filepath):
"""Loads macros from file and marks grid as changed
Parameters
----------
filepath: String
\tPath to macro file
"""
try:
wx.BeginBusyCursor()
self.main_window.grid.Disable()
with open(filepat... | python | def open_macros(self, filepath):
"""Loads macros from file and marks grid as changed
Parameters
----------
filepath: String
\tPath to macro file
"""
try:
wx.BeginBusyCursor()
self.main_window.grid.Disable()
with open(filepat... | [
"def",
"open_macros",
"(",
"self",
",",
"filepath",
")",
":",
"try",
":",
"wx",
".",
"BeginBusyCursor",
"(",
")",
"self",
".",
"main_window",
".",
"grid",
".",
"Disable",
"(",
")",
"with",
"open",
"(",
"filepath",
")",
"as",
"macro_infile",
":",
"# Ent... | Loads macros from file and marks grid as changed
Parameters
----------
filepath: String
\tPath to macro file | [
"Loads",
"macros",
"from",
"file",
"and",
"marks",
"grid",
"as",
"changed"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L707-L751 |
236,342 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | MacroActions.save_macros | def save_macros(self, filepath, macros):
"""Saves macros to file
Parameters
----------
filepath: String
\tPath to macro file
macros: String
\tMacro code
"""
io_error_text = _("Error writing to file {filepath}.")
io_error_text = io_error_... | python | def save_macros(self, filepath, macros):
"""Saves macros to file
Parameters
----------
filepath: String
\tPath to macro file
macros: String
\tMacro code
"""
io_error_text = _("Error writing to file {filepath}.")
io_error_text = io_error_... | [
"def",
"save_macros",
"(",
"self",
",",
"filepath",
",",
"macros",
")",
":",
"io_error_text",
"=",
"_",
"(",
"\"Error writing to file {filepath}.\"",
")",
"io_error_text",
"=",
"io_error_text",
".",
"format",
"(",
"filepath",
"=",
"filepath",
")",
"# Make sure tha... | Saves macros to file
Parameters
----------
filepath: String
\tPath to macro file
macros: String
\tMacro code | [
"Saves",
"macros",
"to",
"file"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L753-L797 |
236,343 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | HelpActions.launch_help | def launch_help(self, helpname, filename):
"""Generic help launcher
Launches HTMLWindow that shows content of filename
or the Internet page with the filename url
Parameters
----------
filename: String
\thtml file or url
"""
# Set up window
... | python | def launch_help(self, helpname, filename):
"""Generic help launcher
Launches HTMLWindow that shows content of filename
or the Internet page with the filename url
Parameters
----------
filename: String
\thtml file or url
"""
# Set up window
... | [
"def",
"launch_help",
"(",
"self",
",",
"helpname",
",",
"filename",
")",
":",
"# Set up window",
"position",
"=",
"config",
"[",
"\"help_window_position\"",
"]",
"size",
"=",
"config",
"[",
"\"help_window_size\"",
"]",
"self",
".",
"help_window",
"=",
"wx",
"... | Generic help launcher
Launches HTMLWindow that shows content of filename
or the Internet page with the filename url
Parameters
----------
filename: String
\thtml file or url | [
"Generic",
"help",
"launcher"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L803-L853 |
236,344 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | HelpActions.OnHelpMove | def OnHelpMove(self, event):
"""Help window move event handler stores position in config"""
position = event.GetPosition()
config["help_window_position"] = repr((position.x, position.y))
event.Skip() | python | def OnHelpMove(self, event):
"""Help window move event handler stores position in config"""
position = event.GetPosition()
config["help_window_position"] = repr((position.x, position.y))
event.Skip() | [
"def",
"OnHelpMove",
"(",
"self",
",",
"event",
")",
":",
"position",
"=",
"event",
".",
"GetPosition",
"(",
")",
"config",
"[",
"\"help_window_position\"",
"]",
"=",
"repr",
"(",
"(",
"position",
".",
"x",
",",
"position",
".",
"y",
")",
")",
"event",... | Help window move event handler stores position in config | [
"Help",
"window",
"move",
"event",
"handler",
"stores",
"position",
"in",
"config"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L861-L867 |
236,345 | manns/pyspread | pyspread/src/actions/_main_window_actions.py | HelpActions.OnHelpSize | def OnHelpSize(self, event):
"""Help window size event handler stores size in config"""
size = event.GetSize()
config["help_window_size"] = repr((size.width, size.height))
event.Skip() | python | def OnHelpSize(self, event):
"""Help window size event handler stores size in config"""
size = event.GetSize()
config["help_window_size"] = repr((size.width, size.height))
event.Skip() | [
"def",
"OnHelpSize",
"(",
"self",
",",
"event",
")",
":",
"size",
"=",
"event",
".",
"GetSize",
"(",
")",
"config",
"[",
"\"help_window_size\"",
"]",
"=",
"repr",
"(",
"(",
"size",
".",
"width",
",",
"size",
".",
"height",
")",
")",
"event",
".",
"... | Help window size event handler stores size in config | [
"Help",
"window",
"size",
"event",
"handler",
"stores",
"size",
"in",
"config"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/actions/_main_window_actions.py#L869-L875 |
236,346 | manns/pyspread | pyspread/src/gui/grid_panels.py | vlcpanel_factory | def vlcpanel_factory(filepath, volume=None):
"""Returns a VLCPanel class
Parameters
----------
filepath: String
\tFile path of video
volume: Float, optional
\tSound volume
"""
vlc_panel_cls = VLCPanel
VLCPanel.filepath = filepath
if volume is not None:
VLCPanel.vol... | python | def vlcpanel_factory(filepath, volume=None):
"""Returns a VLCPanel class
Parameters
----------
filepath: String
\tFile path of video
volume: Float, optional
\tSound volume
"""
vlc_panel_cls = VLCPanel
VLCPanel.filepath = filepath
if volume is not None:
VLCPanel.vol... | [
"def",
"vlcpanel_factory",
"(",
"filepath",
",",
"volume",
"=",
"None",
")",
":",
"vlc_panel_cls",
"=",
"VLCPanel",
"VLCPanel",
".",
"filepath",
"=",
"filepath",
"if",
"volume",
"is",
"not",
"None",
":",
"VLCPanel",
".",
"volume",
"=",
"volume",
"return",
... | Returns a VLCPanel class
Parameters
----------
filepath: String
\tFile path of video
volume: Float, optional
\tSound volume | [
"Returns",
"a",
"VLCPanel",
"class"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/grid_panels.py#L175-L192 |
236,347 | manns/pyspread | pyspread/src/gui/grid_panels.py | VLCPanel.SetClientRect | def SetClientRect(self, rect):
"""Positions and resizes video panel
Parameters
----------
rect: 4-tuple of Integer
\tRect area of video panel
"""
panel_posx = rect[0] + self.grid.GetRowLabelSize()
panel_posy = rect[1] + self.grid.GetColLabelSize()
... | python | def SetClientRect(self, rect):
"""Positions and resizes video panel
Parameters
----------
rect: 4-tuple of Integer
\tRect area of video panel
"""
panel_posx = rect[0] + self.grid.GetRowLabelSize()
panel_posy = rect[1] + self.grid.GetColLabelSize()
... | [
"def",
"SetClientRect",
"(",
"self",
",",
"rect",
")",
":",
"panel_posx",
"=",
"rect",
"[",
"0",
"]",
"+",
"self",
".",
"grid",
".",
"GetRowLabelSize",
"(",
")",
"panel_posy",
"=",
"rect",
"[",
"1",
"]",
"+",
"self",
".",
"grid",
".",
"GetColLabelSiz... | Positions and resizes video panel
Parameters
----------
rect: 4-tuple of Integer
\tRect area of video panel | [
"Positions",
"and",
"resizes",
"video",
"panel"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/grid_panels.py#L93-L120 |
236,348 | manns/pyspread | pyspread/src/gui/grid_panels.py | VLCPanel.OnTogglePlay | def OnTogglePlay(self, event):
"""Toggles the video status between play and hold"""
if self.player.get_state() == vlc.State.Playing:
self.player.pause()
else:
self.player.play()
event.Skip() | python | def OnTogglePlay(self, event):
"""Toggles the video status between play and hold"""
if self.player.get_state() == vlc.State.Playing:
self.player.pause()
else:
self.player.play()
event.Skip() | [
"def",
"OnTogglePlay",
"(",
"self",
",",
"event",
")",
":",
"if",
"self",
".",
"player",
".",
"get_state",
"(",
")",
"==",
"vlc",
".",
"State",
".",
"Playing",
":",
"self",
".",
"player",
".",
"pause",
"(",
")",
"else",
":",
"self",
".",
"player",
... | Toggles the video status between play and hold | [
"Toggles",
"the",
"video",
"status",
"between",
"play",
"and",
"hold"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/grid_panels.py#L125-L133 |
236,349 | manns/pyspread | pyspread/src/gui/grid_panels.py | VLCPanel.OnShiftVideo | def OnShiftVideo(self, event):
"""Shifts through the video"""
length = self.player.get_length()
time = self.player.get_time()
if event.GetWheelRotation() < 0:
target_time = max(0, time-length/100.0)
elif event.GetWheelRotation() > 0:
target_time = min(le... | python | def OnShiftVideo(self, event):
"""Shifts through the video"""
length = self.player.get_length()
time = self.player.get_time()
if event.GetWheelRotation() < 0:
target_time = max(0, time-length/100.0)
elif event.GetWheelRotation() > 0:
target_time = min(le... | [
"def",
"OnShiftVideo",
"(",
"self",
",",
"event",
")",
":",
"length",
"=",
"self",
".",
"player",
".",
"get_length",
"(",
")",
"time",
"=",
"self",
".",
"player",
".",
"get_time",
"(",
")",
"if",
"event",
".",
"GetWheelRotation",
"(",
")",
"<",
"0",
... | Shifts through the video | [
"Shifts",
"through",
"the",
"video"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/grid_panels.py#L149-L160 |
236,350 | manns/pyspread | pyspread/src/gui/grid_panels.py | VLCPanel.OnAdjustVolume | def OnAdjustVolume(self, event):
"""Changes video volume"""
self.volume = self.player.audio_get_volume()
if event.GetWheelRotation() < 0:
self.volume = max(0, self.volume-10)
elif event.GetWheelRotation() > 0:
self.volume = min(200, self.volume+10)
self... | python | def OnAdjustVolume(self, event):
"""Changes video volume"""
self.volume = self.player.audio_get_volume()
if event.GetWheelRotation() < 0:
self.volume = max(0, self.volume-10)
elif event.GetWheelRotation() > 0:
self.volume = min(200, self.volume+10)
self... | [
"def",
"OnAdjustVolume",
"(",
"self",
",",
"event",
")",
":",
"self",
".",
"volume",
"=",
"self",
".",
"player",
".",
"audio_get_volume",
"(",
")",
"if",
"event",
".",
"GetWheelRotation",
"(",
")",
"<",
"0",
":",
"self",
".",
"volume",
"=",
"max",
"(... | Changes video volume | [
"Changes",
"video",
"volume"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/grid_panels.py#L162-L172 |
236,351 | manns/pyspread | pyspread/src/config.py | Config.load | def load(self):
"""Loads configuration file"""
# Config files prior to 0.2.4 dor not have config version keys
old_config = not self.cfg_file.Exists("config_version")
# Reset data
self.data.__dict__.update(self.defaults.__dict__)
for key in self.defaults.__dict__:
... | python | def load(self):
"""Loads configuration file"""
# Config files prior to 0.2.4 dor not have config version keys
old_config = not self.cfg_file.Exists("config_version")
# Reset data
self.data.__dict__.update(self.defaults.__dict__)
for key in self.defaults.__dict__:
... | [
"def",
"load",
"(",
"self",
")",
":",
"# Config files prior to 0.2.4 dor not have config version keys",
"old_config",
"=",
"not",
"self",
".",
"cfg_file",
".",
"Exists",
"(",
"\"config_version\"",
")",
"# Reset data",
"self",
".",
"data",
".",
"__dict__",
".",
"upda... | Loads configuration file | [
"Loads",
"configuration",
"file"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/config.py#L195-L220 |
236,352 | manns/pyspread | pyspread/src/config.py | Config.save | def save(self):
"""Saves configuration file"""
for key in self.defaults.__dict__:
data = getattr(self.data, key)
self.cfg_file.Write(key, data) | python | def save(self):
"""Saves configuration file"""
for key in self.defaults.__dict__:
data = getattr(self.data, key)
self.cfg_file.Write(key, data) | [
"def",
"save",
"(",
"self",
")",
":",
"for",
"key",
"in",
"self",
".",
"defaults",
".",
"__dict__",
":",
"data",
"=",
"getattr",
"(",
"self",
".",
"data",
",",
"key",
")",
"self",
".",
"cfg_file",
".",
"Write",
"(",
"key",
",",
"data",
")"
] | Saves configuration file | [
"Saves",
"configuration",
"file"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/config.py#L222-L228 |
236,353 | manns/pyspread | pyspread/src/lib/vlc.py | string_result | def string_result(result, func, arguments):
"""Errcheck function. Returns a string and frees the original pointer.
It assumes the result is a char *.
"""
if result:
# make a python string copy
s = bytes_to_str(ctypes.string_at(result))
# free original string ptr
libvlc_f... | python | def string_result(result, func, arguments):
"""Errcheck function. Returns a string and frees the original pointer.
It assumes the result is a char *.
"""
if result:
# make a python string copy
s = bytes_to_str(ctypes.string_at(result))
# free original string ptr
libvlc_f... | [
"def",
"string_result",
"(",
"result",
",",
"func",
",",
"arguments",
")",
":",
"if",
"result",
":",
"# make a python string copy",
"s",
"=",
"bytes_to_str",
"(",
"ctypes",
".",
"string_at",
"(",
"result",
")",
")",
"# free original string ptr",
"libvlc_free",
"... | Errcheck function. Returns a string and frees the original pointer.
It assumes the result is a char *. | [
"Errcheck",
"function",
".",
"Returns",
"a",
"string",
"and",
"frees",
"the",
"original",
"pointer",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L293-L304 |
236,354 | manns/pyspread | pyspread/src/lib/vlc.py | class_result | def class_result(classname):
"""Errcheck function. Returns a function that creates the specified class.
"""
def wrap_errcheck(result, func, arguments):
if result is None:
return None
return classname(result)
return wrap_errcheck | python | def class_result(classname):
"""Errcheck function. Returns a function that creates the specified class.
"""
def wrap_errcheck(result, func, arguments):
if result is None:
return None
return classname(result)
return wrap_errcheck | [
"def",
"class_result",
"(",
"classname",
")",
":",
"def",
"wrap_errcheck",
"(",
"result",
",",
"func",
",",
"arguments",
")",
":",
"if",
"result",
"is",
"None",
":",
"return",
"None",
"return",
"classname",
"(",
"result",
")",
"return",
"wrap_errcheck"
] | Errcheck function. Returns a function that creates the specified class. | [
"Errcheck",
"function",
".",
"Returns",
"a",
"function",
"that",
"creates",
"the",
"specified",
"class",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L306-L313 |
236,355 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_vprinterr | def libvlc_vprinterr(fmt, ap):
'''Sets the LibVLC error status and message for the current thread.
Any previous error is overridden.
@param fmt: the format string.
@param ap: the arguments.
@return: a nul terminated string in any case.
'''
f = _Cfunctions.get('libvlc_vprinterr', None) or \
... | python | def libvlc_vprinterr(fmt, ap):
'''Sets the LibVLC error status and message for the current thread.
Any previous error is overridden.
@param fmt: the format string.
@param ap: the arguments.
@return: a nul terminated string in any case.
'''
f = _Cfunctions.get('libvlc_vprinterr', None) or \
... | [
"def",
"libvlc_vprinterr",
"(",
"fmt",
",",
"ap",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_vprinterr'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_vprinterr'",
",",
"(",
"(",
"1",
",",
")",
",",
"(",
"1",
",",
")",
",",
... | Sets the LibVLC error status and message for the current thread.
Any previous error is overridden.
@param fmt: the format string.
@param ap: the arguments.
@return: a nul terminated string in any case. | [
"Sets",
"the",
"LibVLC",
"error",
"status",
"and",
"message",
"for",
"the",
"current",
"thread",
".",
"Any",
"previous",
"error",
"is",
"overridden",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L3781-L3791 |
236,356 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_add_intf | def libvlc_add_intf(p_instance, name):
'''Try to start a user interface for the libvlc instance.
@param p_instance: the instance.
@param name: interface name, or NULL for default.
@return: 0 on success, -1 on error.
'''
f = _Cfunctions.get('libvlc_add_intf', None) or \
_Cfunction('libvlc... | python | def libvlc_add_intf(p_instance, name):
'''Try to start a user interface for the libvlc instance.
@param p_instance: the instance.
@param name: interface name, or NULL for default.
@return: 0 on success, -1 on error.
'''
f = _Cfunctions.get('libvlc_add_intf', None) or \
_Cfunction('libvlc... | [
"def",
"libvlc_add_intf",
"(",
"p_instance",
",",
"name",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_add_intf'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_add_intf'",
",",
"(",
"(",
"1",
",",
")",
",",
"(",
"1",
",",
")",
... | Try to start a user interface for the libvlc instance.
@param p_instance: the instance.
@param name: interface name, or NULL for default.
@return: 0 on success, -1 on error. | [
"Try",
"to",
"start",
"a",
"user",
"interface",
"for",
"the",
"libvlc",
"instance",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L3827-L3836 |
236,357 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_event_attach | def libvlc_event_attach(p_event_manager, i_event_type, f_callback, user_data):
'''Register for an event notification.
@param p_event_manager: the event manager to which you want to attach to. Generally it is obtained by vlc_my_object_event_manager() where my_object is the object you want to listen to.
@para... | python | def libvlc_event_attach(p_event_manager, i_event_type, f_callback, user_data):
'''Register for an event notification.
@param p_event_manager: the event manager to which you want to attach to. Generally it is obtained by vlc_my_object_event_manager() where my_object is the object you want to listen to.
@para... | [
"def",
"libvlc_event_attach",
"(",
"p_event_manager",
",",
"i_event_type",
",",
"f_callback",
",",
"user_data",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_event_attach'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_event_attach'",
",",
... | Register for an event notification.
@param p_event_manager: the event manager to which you want to attach to. Generally it is obtained by vlc_my_object_event_manager() where my_object is the object you want to listen to.
@param i_event_type: the desired event to which we want to listen.
@param f_callback: t... | [
"Register",
"for",
"an",
"event",
"notification",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L3906-L3917 |
236,358 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_event_type_name | def libvlc_event_type_name(event_type):
'''Get an event's type name.
@param event_type: the desired event.
'''
f = _Cfunctions.get('libvlc_event_type_name', None) or \
_Cfunction('libvlc_event_type_name', ((1,),), None,
ctypes.c_char_p, ctypes.c_uint)
return f(event_type) | python | def libvlc_event_type_name(event_type):
'''Get an event's type name.
@param event_type: the desired event.
'''
f = _Cfunctions.get('libvlc_event_type_name', None) or \
_Cfunction('libvlc_event_type_name', ((1,),), None,
ctypes.c_char_p, ctypes.c_uint)
return f(event_type) | [
"def",
"libvlc_event_type_name",
"(",
"event_type",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_event_type_name'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_event_type_name'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"None",
... | Get an event's type name.
@param event_type: the desired event. | [
"Get",
"an",
"event",
"s",
"type",
"name",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L3931-L3938 |
236,359 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_log_set_file | def libvlc_log_set_file(p_instance, stream):
'''Sets up logging to a file.
@param p_instance: libvlc instance.
@param stream: FILE pointer opened for writing (the FILE pointer must remain valid until L{libvlc_log_unset}()).
@version: LibVLC 2.1.0 or later.
'''
f = _Cfunctions.get('libvlc_log_set... | python | def libvlc_log_set_file(p_instance, stream):
'''Sets up logging to a file.
@param p_instance: libvlc instance.
@param stream: FILE pointer opened for writing (the FILE pointer must remain valid until L{libvlc_log_unset}()).
@version: LibVLC 2.1.0 or later.
'''
f = _Cfunctions.get('libvlc_log_set... | [
"def",
"libvlc_log_set_file",
"(",
"p_instance",
",",
"stream",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_log_set_file'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_log_set_file'",
",",
"(",
"(",
"1",
",",
")",
",",
"(",
"1",
... | Sets up logging to a file.
@param p_instance: libvlc instance.
@param stream: FILE pointer opened for writing (the FILE pointer must remain valid until L{libvlc_log_unset}()).
@version: LibVLC 2.1.0 or later. | [
"Sets",
"up",
"logging",
"to",
"a",
"file",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4000-L4009 |
236,360 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_module_description_list_release | def libvlc_module_description_list_release(p_list):
'''Release a list of module descriptions.
@param p_list: the list to be released.
'''
f = _Cfunctions.get('libvlc_module_description_list_release', None) or \
_Cfunction('libvlc_module_description_list_release', ((1,),), None,
... | python | def libvlc_module_description_list_release(p_list):
'''Release a list of module descriptions.
@param p_list: the list to be released.
'''
f = _Cfunctions.get('libvlc_module_description_list_release', None) or \
_Cfunction('libvlc_module_description_list_release', ((1,),), None,
... | [
"def",
"libvlc_module_description_list_release",
"(",
"p_list",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_module_description_list_release'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_module_description_list_release'",
",",
"(",
"(",
"1",
"... | Release a list of module descriptions.
@param p_list: the list to be released. | [
"Release",
"a",
"list",
"of",
"module",
"descriptions",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4011-L4018 |
236,361 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_audio_filter_list_get | def libvlc_audio_filter_list_get(p_instance):
'''Returns a list of audio filters that are available.
@param p_instance: libvlc instance.
@return: a list of module descriptions. It should be freed with L{libvlc_module_description_list_release}(). In case of an error, NULL is returned. See L{ModuleDescription... | python | def libvlc_audio_filter_list_get(p_instance):
'''Returns a list of audio filters that are available.
@param p_instance: libvlc instance.
@return: a list of module descriptions. It should be freed with L{libvlc_module_description_list_release}(). In case of an error, NULL is returned. See L{ModuleDescription... | [
"def",
"libvlc_audio_filter_list_get",
"(",
"p_instance",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_audio_filter_list_get'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_audio_filter_list_get'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
... | Returns a list of audio filters that are available.
@param p_instance: libvlc instance.
@return: a list of module descriptions. It should be freed with L{libvlc_module_description_list_release}(). In case of an error, NULL is returned. See L{ModuleDescription} See L{libvlc_module_description_list_release}. | [
"Returns",
"a",
"list",
"of",
"audio",
"filters",
"that",
"are",
"available",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4020-L4028 |
236,362 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_new_location | def libvlc_media_new_location(p_instance, psz_mrl):
'''Create a media with a certain given media resource location,
for instance a valid URL.
@note: To refer to a local file with this function,
the file://... URI syntax B{must} be used (see IETF RFC3986).
We recommend using L{libvlc_media_new_path}(... | python | def libvlc_media_new_location(p_instance, psz_mrl):
'''Create a media with a certain given media resource location,
for instance a valid URL.
@note: To refer to a local file with this function,
the file://... URI syntax B{must} be used (see IETF RFC3986).
We recommend using L{libvlc_media_new_path}(... | [
"def",
"libvlc_media_new_location",
"(",
"p_instance",
",",
"psz_mrl",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_new_location'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_new_location'",
",",
"(",
"(",
"1",
",",
")",
",... | Create a media with a certain given media resource location,
for instance a valid URL.
@note: To refer to a local file with this function,
the file://... URI syntax B{must} be used (see IETF RFC3986).
We recommend using L{libvlc_media_new_path}() instead when dealing with
local files.
See L{libv... | [
"Create",
"a",
"media",
"with",
"a",
"certain",
"given",
"media",
"resource",
"location",
"for",
"instance",
"a",
"valid",
"URL",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4053-L4068 |
236,363 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_duplicate | def libvlc_media_duplicate(p_md):
'''Duplicate a media descriptor object.
@param p_md: a media descriptor object.
'''
f = _Cfunctions.get('libvlc_media_duplicate', None) or \
_Cfunction('libvlc_media_duplicate', ((1,),), class_result(Media),
ctypes.c_void_p, Media)
return... | python | def libvlc_media_duplicate(p_md):
'''Duplicate a media descriptor object.
@param p_md: a media descriptor object.
'''
f = _Cfunctions.get('libvlc_media_duplicate', None) or \
_Cfunction('libvlc_media_duplicate', ((1,),), class_result(Media),
ctypes.c_void_p, Media)
return... | [
"def",
"libvlc_media_duplicate",
"(",
"p_md",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_duplicate'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_duplicate'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"class_result",
... | Duplicate a media descriptor object.
@param p_md: a media descriptor object. | [
"Duplicate",
"a",
"media",
"descriptor",
"object",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4207-L4214 |
236,364 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_save_meta | def libvlc_media_save_meta(p_md):
'''Save the meta previously set.
@param p_md: the media desriptor.
@return: true if the write operation was successful.
'''
f = _Cfunctions.get('libvlc_media_save_meta', None) or \
_Cfunction('libvlc_media_save_meta', ((1,),), None,
ctype... | python | def libvlc_media_save_meta(p_md):
'''Save the meta previously set.
@param p_md: the media desriptor.
@return: true if the write operation was successful.
'''
f = _Cfunctions.get('libvlc_media_save_meta', None) or \
_Cfunction('libvlc_media_save_meta', ((1,),), None,
ctype... | [
"def",
"libvlc_media_save_meta",
"(",
"p_md",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_save_meta'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_save_meta'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"None",
",",
... | Save the meta previously set.
@param p_md: the media desriptor.
@return: true if the write operation was successful. | [
"Save",
"the",
"meta",
"previously",
"set",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4246-L4254 |
236,365 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_get_stats | def libvlc_media_get_stats(p_md, p_stats):
'''Get the current statistics about the media.
@param p_md:: media descriptor object.
@param p_stats:: structure that contain the statistics about the media (this structure must be allocated by the caller).
@return: true if the statistics are available, false o... | python | def libvlc_media_get_stats(p_md, p_stats):
'''Get the current statistics about the media.
@param p_md:: media descriptor object.
@param p_stats:: structure that contain the statistics about the media (this structure must be allocated by the caller).
@return: true if the statistics are available, false o... | [
"def",
"libvlc_media_get_stats",
"(",
"p_md",
",",
"p_stats",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_get_stats'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_get_stats'",
",",
"(",
"(",
"1",
",",
")",
",",
"(",
"1"... | Get the current statistics about the media.
@param p_md:: media descriptor object.
@param p_stats:: structure that contain the statistics about the media (this structure must be allocated by the caller).
@return: true if the statistics are available, false otherwise \libvlc_return_bool. | [
"Get",
"the",
"current",
"statistics",
"about",
"the",
"media",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4271-L4280 |
236,366 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_get_codec_description | def libvlc_media_get_codec_description(i_type, i_codec):
'''Get codec description from media elementary stream.
@param i_type: i_type from L{MediaTrack}.
@param i_codec: i_codec or i_original_fourcc from L{MediaTrack}.
@return: codec description.
@version: LibVLC 3.0.0 and later. See L{MediaTrack}.
... | python | def libvlc_media_get_codec_description(i_type, i_codec):
'''Get codec description from media elementary stream.
@param i_type: i_type from L{MediaTrack}.
@param i_codec: i_codec or i_original_fourcc from L{MediaTrack}.
@return: codec description.
@version: LibVLC 3.0.0 and later. See L{MediaTrack}.
... | [
"def",
"libvlc_media_get_codec_description",
"(",
"i_type",
",",
"i_codec",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_get_codec_description'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_get_codec_description'",
",",
"(",
"(",
... | Get codec description from media elementary stream.
@param i_type: i_type from L{MediaTrack}.
@param i_codec: i_codec or i_original_fourcc from L{MediaTrack}.
@return: codec description.
@version: LibVLC 3.0.0 and later. See L{MediaTrack}. | [
"Get",
"codec",
"description",
"from",
"media",
"elementary",
"stream",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4420-L4430 |
236,367 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_tracks_release | def libvlc_media_tracks_release(p_tracks, i_count):
'''Release media descriptor's elementary streams description array.
@param p_tracks: tracks info array to release.
@param i_count: number of elements in the array.
@version: LibVLC 2.1.0 and later.
'''
f = _Cfunctions.get('libvlc_media_tracks_r... | python | def libvlc_media_tracks_release(p_tracks, i_count):
'''Release media descriptor's elementary streams description array.
@param p_tracks: tracks info array to release.
@param i_count: number of elements in the array.
@version: LibVLC 2.1.0 and later.
'''
f = _Cfunctions.get('libvlc_media_tracks_r... | [
"def",
"libvlc_media_tracks_release",
"(",
"p_tracks",
",",
"i_count",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_tracks_release'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_tracks_release'",
",",
"(",
"(",
"1",
",",
")",
... | Release media descriptor's elementary streams description array.
@param p_tracks: tracks info array to release.
@param i_count: number of elements in the array.
@version: LibVLC 2.1.0 and later. | [
"Release",
"media",
"descriptor",
"s",
"elementary",
"streams",
"description",
"array",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4432-L4441 |
236,368 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_get_type | def libvlc_media_get_type(p_md):
'''Get the media type of the media descriptor object.
@param p_md: media descriptor object.
@return: media type.
@version: LibVLC 3.0.0 and later. See libvlc_media_type_t.
'''
f = _Cfunctions.get('libvlc_media_get_type', None) or \
_Cfunction('libvlc_medi... | python | def libvlc_media_get_type(p_md):
'''Get the media type of the media descriptor object.
@param p_md: media descriptor object.
@return: media type.
@version: LibVLC 3.0.0 and later. See libvlc_media_type_t.
'''
f = _Cfunctions.get('libvlc_media_get_type', None) or \
_Cfunction('libvlc_medi... | [
"def",
"libvlc_media_get_type",
"(",
"p_md",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_get_type'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_get_type'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"None",
",",
"M... | Get the media type of the media descriptor object.
@param p_md: media descriptor object.
@return: media type.
@version: LibVLC 3.0.0 and later. See libvlc_media_type_t. | [
"Get",
"the",
"media",
"type",
"of",
"the",
"media",
"descriptor",
"object",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4443-L4452 |
236,369 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_discoverer_localized_name | def libvlc_media_discoverer_localized_name(p_mdis):
'''Get media service discover object its localized name.
@param p_mdis: media discover object.
@return: localized name.
'''
f = _Cfunctions.get('libvlc_media_discoverer_localized_name', None) or \
_Cfunction('libvlc_media_discoverer_localiz... | python | def libvlc_media_discoverer_localized_name(p_mdis):
'''Get media service discover object its localized name.
@param p_mdis: media discover object.
@return: localized name.
'''
f = _Cfunctions.get('libvlc_media_discoverer_localized_name', None) or \
_Cfunction('libvlc_media_discoverer_localiz... | [
"def",
"libvlc_media_discoverer_localized_name",
"(",
"p_mdis",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_discoverer_localized_name'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_discoverer_localized_name'",
",",
"(",
"(",
"1",
"... | Get media service discover object its localized name.
@param p_mdis: media discover object.
@return: localized name. | [
"Get",
"media",
"service",
"discover",
"object",
"its",
"localized",
"name",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4510-L4518 |
236,370 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_discoverer_media_list | def libvlc_media_discoverer_media_list(p_mdis):
'''Get media service discover media list.
@param p_mdis: media service discover object.
@return: list of media items.
'''
f = _Cfunctions.get('libvlc_media_discoverer_media_list', None) or \
_Cfunction('libvlc_media_discoverer_media_list', ((1,... | python | def libvlc_media_discoverer_media_list(p_mdis):
'''Get media service discover media list.
@param p_mdis: media service discover object.
@return: list of media items.
'''
f = _Cfunctions.get('libvlc_media_discoverer_media_list', None) or \
_Cfunction('libvlc_media_discoverer_media_list', ((1,... | [
"def",
"libvlc_media_discoverer_media_list",
"(",
"p_mdis",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_discoverer_media_list'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_discoverer_media_list'",
",",
"(",
"(",
"1",
",",
")",
... | Get media service discover media list.
@param p_mdis: media service discover object.
@return: list of media items. | [
"Get",
"media",
"service",
"discover",
"media",
"list",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4520-L4528 |
236,371 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_discoverer_event_manager | def libvlc_media_discoverer_event_manager(p_mdis):
'''Get event manager from media service discover object.
@param p_mdis: media service discover object.
@return: event manager object.
'''
f = _Cfunctions.get('libvlc_media_discoverer_event_manager', None) or \
_Cfunction('libvlc_media_discov... | python | def libvlc_media_discoverer_event_manager(p_mdis):
'''Get event manager from media service discover object.
@param p_mdis: media service discover object.
@return: event manager object.
'''
f = _Cfunctions.get('libvlc_media_discoverer_event_manager', None) or \
_Cfunction('libvlc_media_discov... | [
"def",
"libvlc_media_discoverer_event_manager",
"(",
"p_mdis",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_discoverer_event_manager'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_discoverer_event_manager'",
",",
"(",
"(",
"1",
",",... | Get event manager from media service discover object.
@param p_mdis: media service discover object.
@return: event manager object. | [
"Get",
"event",
"manager",
"from",
"media",
"service",
"discover",
"object",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4530-L4538 |
236,372 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_discoverer_is_running | def libvlc_media_discoverer_is_running(p_mdis):
'''Query if media service discover object is running.
@param p_mdis: media service discover object.
@return: true if running, false if not \libvlc_return_bool.
'''
f = _Cfunctions.get('libvlc_media_discoverer_is_running', None) or \
_Cfunction(... | python | def libvlc_media_discoverer_is_running(p_mdis):
'''Query if media service discover object is running.
@param p_mdis: media service discover object.
@return: true if running, false if not \libvlc_return_bool.
'''
f = _Cfunctions.get('libvlc_media_discoverer_is_running', None) or \
_Cfunction(... | [
"def",
"libvlc_media_discoverer_is_running",
"(",
"p_mdis",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_discoverer_is_running'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_discoverer_is_running'",
",",
"(",
"(",
"1",
",",
")",
... | Query if media service discover object is running.
@param p_mdis: media service discover object.
@return: true if running, false if not \libvlc_return_bool. | [
"Query",
"if",
"media",
"service",
"discover",
"object",
"is",
"running",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4540-L4548 |
236,373 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_library_new | def libvlc_media_library_new(p_instance):
'''Create an new Media Library object.
@param p_instance: the libvlc instance.
@return: a new object or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_library_new', None) or \
_Cfunction('libvlc_media_library_new', ((1,),), class_result(MediaLi... | python | def libvlc_media_library_new(p_instance):
'''Create an new Media Library object.
@param p_instance: the libvlc instance.
@return: a new object or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_library_new', None) or \
_Cfunction('libvlc_media_library_new', ((1,),), class_result(MediaLi... | [
"def",
"libvlc_media_library_new",
"(",
"p_instance",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_library_new'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_library_new'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"cla... | Create an new Media Library object.
@param p_instance: the libvlc instance.
@return: a new object or NULL on error. | [
"Create",
"an",
"new",
"Media",
"Library",
"object",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4550-L4558 |
236,374 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_library_load | def libvlc_media_library_load(p_mlib):
'''Load media library.
@param p_mlib: media library object.
@return: 0 on success, -1 on error.
'''
f = _Cfunctions.get('libvlc_media_library_load', None) or \
_Cfunction('libvlc_media_library_load', ((1,),), None,
ctypes.c_int, Medi... | python | def libvlc_media_library_load(p_mlib):
'''Load media library.
@param p_mlib: media library object.
@return: 0 on success, -1 on error.
'''
f = _Cfunctions.get('libvlc_media_library_load', None) or \
_Cfunction('libvlc_media_library_load', ((1,),), None,
ctypes.c_int, Medi... | [
"def",
"libvlc_media_library_load",
"(",
"p_mlib",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_library_load'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_library_load'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"None... | Load media library.
@param p_mlib: media library object.
@return: 0 on success, -1 on error. | [
"Load",
"media",
"library",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4582-L4590 |
236,375 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_library_media_list | def libvlc_media_library_media_list(p_mlib):
'''Get media library subitems.
@param p_mlib: media library object.
@return: media list subitems.
'''
f = _Cfunctions.get('libvlc_media_library_media_list', None) or \
_Cfunction('libvlc_media_library_media_list', ((1,),), class_result(MediaList),... | python | def libvlc_media_library_media_list(p_mlib):
'''Get media library subitems.
@param p_mlib: media library object.
@return: media list subitems.
'''
f = _Cfunctions.get('libvlc_media_library_media_list', None) or \
_Cfunction('libvlc_media_library_media_list', ((1,),), class_result(MediaList),... | [
"def",
"libvlc_media_library_media_list",
"(",
"p_mlib",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_library_media_list'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_library_media_list'",
",",
"(",
"(",
"1",
",",
")",
",",
"... | Get media library subitems.
@param p_mlib: media library object.
@return: media list subitems. | [
"Get",
"media",
"library",
"subitems",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4592-L4600 |
236,376 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_new | def libvlc_media_list_new(p_instance):
'''Create an empty media list.
@param p_instance: libvlc instance.
@return: empty media list, or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_list_new', None) or \
_Cfunction('libvlc_media_list_new', ((1,),), class_result(MediaList),
... | python | def libvlc_media_list_new(p_instance):
'''Create an empty media list.
@param p_instance: libvlc instance.
@return: empty media list, or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_list_new', None) or \
_Cfunction('libvlc_media_list_new', ((1,),), class_result(MediaList),
... | [
"def",
"libvlc_media_list_new",
"(",
"p_instance",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_new'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_new'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"class_result... | Create an empty media list.
@param p_instance: libvlc instance.
@return: empty media list, or NULL on error. | [
"Create",
"an",
"empty",
"media",
"list",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4602-L4610 |
236,377 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_event_manager | def libvlc_media_list_event_manager(p_ml):
'''Get libvlc_event_manager from this media list instance.
The p_event_manager is immutable, so you don't have to hold the lock.
@param p_ml: a media list instance.
@return: libvlc_event_manager.
'''
f = _Cfunctions.get('libvlc_media_list_event_manager'... | python | def libvlc_media_list_event_manager(p_ml):
'''Get libvlc_event_manager from this media list instance.
The p_event_manager is immutable, so you don't have to hold the lock.
@param p_ml: a media list instance.
@return: libvlc_event_manager.
'''
f = _Cfunctions.get('libvlc_media_list_event_manager'... | [
"def",
"libvlc_media_list_event_manager",
"(",
"p_ml",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_event_manager'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_event_manager'",
",",
"(",
"(",
"1",
",",
")",
",",
")"... | Get libvlc_event_manager from this media list instance.
The p_event_manager is immutable, so you don't have to hold the lock.
@param p_ml: a media list instance.
@return: libvlc_event_manager. | [
"Get",
"libvlc_event_manager",
"from",
"this",
"media",
"list",
"instance",
".",
"The",
"p_event_manager",
"is",
"immutable",
"so",
"you",
"don",
"t",
"have",
"to",
"hold",
"the",
"lock",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4756-L4765 |
236,378 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_new | def libvlc_media_list_player_new(p_instance):
'''Create new media_list_player.
@param p_instance: libvlc instance.
@return: media list player instance or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_list_player_new', None) or \
_Cfunction('libvlc_media_list_player_new', ((1,),), clas... | python | def libvlc_media_list_player_new(p_instance):
'''Create new media_list_player.
@param p_instance: libvlc instance.
@return: media list player instance or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_list_player_new', None) or \
_Cfunction('libvlc_media_list_player_new', ((1,),), clas... | [
"def",
"libvlc_media_list_player_new",
"(",
"p_instance",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_new'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_new'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
... | Create new media_list_player.
@param p_instance: libvlc instance.
@return: media list player instance or NULL on error. | [
"Create",
"new",
"media_list_player",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4767-L4775 |
236,379 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_event_manager | def libvlc_media_list_player_event_manager(p_mlp):
'''Return the event manager of this media_list_player.
@param p_mlp: media list player instance.
@return: the event manager.
'''
f = _Cfunctions.get('libvlc_media_list_player_event_manager', None) or \
_Cfunction('libvlc_media_list_player_ev... | python | def libvlc_media_list_player_event_manager(p_mlp):
'''Return the event manager of this media_list_player.
@param p_mlp: media list player instance.
@return: the event manager.
'''
f = _Cfunctions.get('libvlc_media_list_player_event_manager', None) or \
_Cfunction('libvlc_media_list_player_ev... | [
"def",
"libvlc_media_list_player_event_manager",
"(",
"p_mlp",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_event_manager'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_event_manager'",
",",
"(",
"(",
"1",
",... | Return the event manager of this media_list_player.
@param p_mlp: media list player instance.
@return: the event manager. | [
"Return",
"the",
"event",
"manager",
"of",
"this",
"media_list_player",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4800-L4808 |
236,380 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_set_media_player | def libvlc_media_list_player_set_media_player(p_mlp, p_mi):
'''Replace media player in media_list_player with this instance.
@param p_mlp: media list player instance.
@param p_mi: media player instance.
'''
f = _Cfunctions.get('libvlc_media_list_player_set_media_player', None) or \
_Cfunctio... | python | def libvlc_media_list_player_set_media_player(p_mlp, p_mi):
'''Replace media player in media_list_player with this instance.
@param p_mlp: media list player instance.
@param p_mi: media player instance.
'''
f = _Cfunctions.get('libvlc_media_list_player_set_media_player', None) or \
_Cfunctio... | [
"def",
"libvlc_media_list_player_set_media_player",
"(",
"p_mlp",
",",
"p_mi",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_set_media_player'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_set_media_player'",
",",... | Replace media player in media_list_player with this instance.
@param p_mlp: media list player instance.
@param p_mi: media player instance. | [
"Replace",
"media",
"player",
"in",
"media_list_player",
"with",
"this",
"instance",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4810-L4818 |
236,381 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_set_media_list | def libvlc_media_list_player_set_media_list(p_mlp, p_mlist):
'''Set the media list associated with the player.
@param p_mlp: media list player instance.
@param p_mlist: list of media.
'''
f = _Cfunctions.get('libvlc_media_list_player_set_media_list', None) or \
_Cfunction('libvlc_media_list_... | python | def libvlc_media_list_player_set_media_list(p_mlp, p_mlist):
'''Set the media list associated with the player.
@param p_mlp: media list player instance.
@param p_mlist: list of media.
'''
f = _Cfunctions.get('libvlc_media_list_player_set_media_list', None) or \
_Cfunction('libvlc_media_list_... | [
"def",
"libvlc_media_list_player_set_media_list",
"(",
"p_mlp",
",",
"p_mlist",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_set_media_list'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_set_media_list'",
",",
... | Set the media list associated with the player.
@param p_mlp: media list player instance.
@param p_mlist: list of media. | [
"Set",
"the",
"media",
"list",
"associated",
"with",
"the",
"player",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4820-L4828 |
236,382 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_is_playing | def libvlc_media_list_player_is_playing(p_mlp):
'''Is media list playing?
@param p_mlp: media list player instance.
@return: true for playing and false for not playing \libvlc_return_bool.
'''
f = _Cfunctions.get('libvlc_media_list_player_is_playing', None) or \
_Cfunction('libvlc_media_list... | python | def libvlc_media_list_player_is_playing(p_mlp):
'''Is media list playing?
@param p_mlp: media list player instance.
@return: true for playing and false for not playing \libvlc_return_bool.
'''
f = _Cfunctions.get('libvlc_media_list_player_is_playing', None) or \
_Cfunction('libvlc_media_list... | [
"def",
"libvlc_media_list_player_is_playing",
"(",
"p_mlp",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_is_playing'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_is_playing'",
",",
"(",
"(",
"1",
",",
")",... | Is media list playing?
@param p_mlp: media list player instance.
@return: true for playing and false for not playing \libvlc_return_bool. | [
"Is",
"media",
"list",
"playing?"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4848-L4856 |
236,383 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_get_state | def libvlc_media_list_player_get_state(p_mlp):
'''Get current libvlc_state of media list player.
@param p_mlp: media list player instance.
@return: libvlc_state_t for media list player.
'''
f = _Cfunctions.get('libvlc_media_list_player_get_state', None) or \
_Cfunction('libvlc_media_list_pla... | python | def libvlc_media_list_player_get_state(p_mlp):
'''Get current libvlc_state of media list player.
@param p_mlp: media list player instance.
@return: libvlc_state_t for media list player.
'''
f = _Cfunctions.get('libvlc_media_list_player_get_state', None) or \
_Cfunction('libvlc_media_list_pla... | [
"def",
"libvlc_media_list_player_get_state",
"(",
"p_mlp",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_get_state'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_get_state'",
",",
"(",
"(",
"1",
",",
")",
... | Get current libvlc_state of media list player.
@param p_mlp: media list player instance.
@return: libvlc_state_t for media list player. | [
"Get",
"current",
"libvlc_state",
"of",
"media",
"list",
"player",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4858-L4866 |
236,384 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_play_item_at_index | def libvlc_media_list_player_play_item_at_index(p_mlp, i_index):
'''Play media list item at position index.
@param p_mlp: media list player instance.
@param i_index: index in media list to play.
@return: 0 upon success -1 if the item wasn't found.
'''
f = _Cfunctions.get('libvlc_media_list_playe... | python | def libvlc_media_list_player_play_item_at_index(p_mlp, i_index):
'''Play media list item at position index.
@param p_mlp: media list player instance.
@param i_index: index in media list to play.
@return: 0 upon success -1 if the item wasn't found.
'''
f = _Cfunctions.get('libvlc_media_list_playe... | [
"def",
"libvlc_media_list_player_play_item_at_index",
"(",
"p_mlp",
",",
"i_index",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_play_item_at_index'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_play_item_at_index'... | Play media list item at position index.
@param p_mlp: media list player instance.
@param i_index: index in media list to play.
@return: 0 upon success -1 if the item wasn't found. | [
"Play",
"media",
"list",
"item",
"at",
"position",
"index",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4868-L4877 |
236,385 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_play_item | def libvlc_media_list_player_play_item(p_mlp, p_md):
'''Play the given media item.
@param p_mlp: media list player instance.
@param p_md: the media instance.
@return: 0 upon success, -1 if the media is not part of the media list.
'''
f = _Cfunctions.get('libvlc_media_list_player_play_item', None... | python | def libvlc_media_list_player_play_item(p_mlp, p_md):
'''Play the given media item.
@param p_mlp: media list player instance.
@param p_md: the media instance.
@return: 0 upon success, -1 if the media is not part of the media list.
'''
f = _Cfunctions.get('libvlc_media_list_player_play_item', None... | [
"def",
"libvlc_media_list_player_play_item",
"(",
"p_mlp",
",",
"p_md",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_play_item'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_play_item'",
",",
"(",
"(",
"1",... | Play the given media item.
@param p_mlp: media list player instance.
@param p_md: the media instance.
@return: 0 upon success, -1 if the media is not part of the media list. | [
"Play",
"the",
"given",
"media",
"item",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4879-L4888 |
236,386 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_list_player_set_playback_mode | def libvlc_media_list_player_set_playback_mode(p_mlp, e_mode):
'''Sets the playback mode for the playlist.
@param p_mlp: media list player instance.
@param e_mode: playback mode specification.
'''
f = _Cfunctions.get('libvlc_media_list_player_set_playback_mode', None) or \
_Cfunction('libvlc... | python | def libvlc_media_list_player_set_playback_mode(p_mlp, e_mode):
'''Sets the playback mode for the playlist.
@param p_mlp: media list player instance.
@param e_mode: playback mode specification.
'''
f = _Cfunctions.get('libvlc_media_list_player_set_playback_mode', None) or \
_Cfunction('libvlc... | [
"def",
"libvlc_media_list_player_set_playback_mode",
"(",
"p_mlp",
",",
"e_mode",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_list_player_set_playback_mode'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_list_player_set_playback_mode'",
... | Sets the playback mode for the playlist.
@param p_mlp: media list player instance.
@param e_mode: playback mode specification. | [
"Sets",
"the",
"playback",
"mode",
"for",
"the",
"playlist",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4919-L4927 |
236,387 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_new | def libvlc_media_player_new(p_libvlc_instance):
'''Create an empty Media Player object.
@param p_libvlc_instance: the libvlc instance in which the Media Player should be created.
@return: a new media player object, or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_player_new', None) or \
... | python | def libvlc_media_player_new(p_libvlc_instance):
'''Create an empty Media Player object.
@param p_libvlc_instance: the libvlc instance in which the Media Player should be created.
@return: a new media player object, or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_player_new', None) or \
... | [
"def",
"libvlc_media_player_new",
"(",
"p_libvlc_instance",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_new'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_new'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
... | Create an empty Media Player object.
@param p_libvlc_instance: the libvlc instance in which the Media Player should be created.
@return: a new media player object, or NULL on error. | [
"Create",
"an",
"empty",
"Media",
"Player",
"object",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4929-L4937 |
236,388 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_new_from_media | def libvlc_media_player_new_from_media(p_md):
'''Create a Media Player object from a Media.
@param p_md: the media. Afterwards the p_md can be safely destroyed.
@return: a new media player object, or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_player_new_from_media', None) or \
_Cfu... | python | def libvlc_media_player_new_from_media(p_md):
'''Create a Media Player object from a Media.
@param p_md: the media. Afterwards the p_md can be safely destroyed.
@return: a new media player object, or NULL on error.
'''
f = _Cfunctions.get('libvlc_media_player_new_from_media', None) or \
_Cfu... | [
"def",
"libvlc_media_player_new_from_media",
"(",
"p_md",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_new_from_media'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_new_from_media'",
",",
"(",
"(",
"1",
",",
")",
"... | Create a Media Player object from a Media.
@param p_md: the media. Afterwards the p_md can be safely destroyed.
@return: a new media player object, or NULL on error. | [
"Create",
"a",
"Media",
"Player",
"object",
"from",
"a",
"Media",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4939-L4947 |
236,389 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_set_media | def libvlc_media_player_set_media(p_mi, p_md):
'''Set the media that will be used by the media_player. If any,
previous md will be released.
@param p_mi: the Media Player.
@param p_md: the Media. Afterwards the p_md can be safely destroyed.
'''
f = _Cfunctions.get('libvlc_media_player_set_media'... | python | def libvlc_media_player_set_media(p_mi, p_md):
'''Set the media that will be used by the media_player. If any,
previous md will be released.
@param p_mi: the Media Player.
@param p_md: the Media. Afterwards the p_md can be safely destroyed.
'''
f = _Cfunctions.get('libvlc_media_player_set_media'... | [
"def",
"libvlc_media_player_set_media",
"(",
"p_mi",
",",
"p_md",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_set_media'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_set_media'",
",",
"(",
"(",
"1",
",",
")",
... | Set the media that will be used by the media_player. If any,
previous md will be released.
@param p_mi: the Media Player.
@param p_md: the Media. Afterwards the p_md can be safely destroyed. | [
"Set",
"the",
"media",
"that",
"will",
"be",
"used",
"by",
"the",
"media_player",
".",
"If",
"any",
"previous",
"md",
"will",
"be",
"released",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4972-L4981 |
236,390 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_get_media | def libvlc_media_player_get_media(p_mi):
'''Get the media used by the media_player.
@param p_mi: the Media Player.
@return: the media associated with p_mi, or NULL if no media is associated.
'''
f = _Cfunctions.get('libvlc_media_player_get_media', None) or \
_Cfunction('libvlc_media_player_g... | python | def libvlc_media_player_get_media(p_mi):
'''Get the media used by the media_player.
@param p_mi: the Media Player.
@return: the media associated with p_mi, or NULL if no media is associated.
'''
f = _Cfunctions.get('libvlc_media_player_get_media', None) or \
_Cfunction('libvlc_media_player_g... | [
"def",
"libvlc_media_player_get_media",
"(",
"p_mi",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_get_media'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_get_media'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",... | Get the media used by the media_player.
@param p_mi: the Media Player.
@return: the media associated with p_mi, or NULL if no media is associated. | [
"Get",
"the",
"media",
"used",
"by",
"the",
"media_player",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4983-L4991 |
236,391 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_event_manager | def libvlc_media_player_event_manager(p_mi):
'''Get the Event Manager from which the media player send event.
@param p_mi: the Media Player.
@return: the event manager associated with p_mi.
'''
f = _Cfunctions.get('libvlc_media_player_event_manager', None) or \
_Cfunction('libvlc_media_playe... | python | def libvlc_media_player_event_manager(p_mi):
'''Get the Event Manager from which the media player send event.
@param p_mi: the Media Player.
@return: the event manager associated with p_mi.
'''
f = _Cfunctions.get('libvlc_media_player_event_manager', None) or \
_Cfunction('libvlc_media_playe... | [
"def",
"libvlc_media_player_event_manager",
"(",
"p_mi",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_event_manager'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_event_manager'",
",",
"(",
"(",
"1",
",",
")",
",",... | Get the Event Manager from which the media player send event.
@param p_mi: the Media Player.
@return: the event manager associated with p_mi. | [
"Get",
"the",
"Event",
"Manager",
"from",
"which",
"the",
"media",
"player",
"send",
"event",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L4993-L5001 |
236,392 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_set_agl | def libvlc_media_player_set_agl(p_mi, drawable):
'''Set the agl handler where the media player should render its video output.
@param p_mi: the Media Player.
@param drawable: the agl handler.
'''
f = _Cfunctions.get('libvlc_media_player_set_agl', None) or \
_Cfunction('libvlc_media_player_se... | python | def libvlc_media_player_set_agl(p_mi, drawable):
'''Set the agl handler where the media player should render its video output.
@param p_mi: the Media Player.
@param drawable: the agl handler.
'''
f = _Cfunctions.get('libvlc_media_player_set_agl', None) or \
_Cfunction('libvlc_media_player_se... | [
"def",
"libvlc_media_player_set_agl",
"(",
"p_mi",
",",
"drawable",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_set_agl'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_set_agl'",
",",
"(",
"(",
"1",
",",
")",
"... | Set the agl handler where the media player should render its video output.
@param p_mi: the Media Player.
@param drawable: the agl handler. | [
"Set",
"the",
"agl",
"handler",
"where",
"the",
"media",
"player",
"should",
"render",
"its",
"video",
"output",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5140-L5148 |
236,393 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_set_position | def libvlc_media_player_set_position(p_mi, f_pos):
'''Set movie position as percentage between 0.0 and 1.0.
This has no effect if playback is not enabled.
This might not work depending on the underlying input format and protocol.
@param p_mi: the Media Player.
@param f_pos: the position.
'''
... | python | def libvlc_media_player_set_position(p_mi, f_pos):
'''Set movie position as percentage between 0.0 and 1.0.
This has no effect if playback is not enabled.
This might not work depending on the underlying input format and protocol.
@param p_mi: the Media Player.
@param f_pos: the position.
'''
... | [
"def",
"libvlc_media_player_set_position",
"(",
"p_mi",
",",
"f_pos",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_set_position'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_set_position'",
",",
"(",
"(",
"1",
","... | Set movie position as percentage between 0.0 and 1.0.
This has no effect if playback is not enabled.
This might not work depending on the underlying input format and protocol.
@param p_mi: the Media Player.
@param f_pos: the position. | [
"Set",
"movie",
"position",
"as",
"percentage",
"between",
"0",
".",
"0",
"and",
"1",
".",
"0",
".",
"This",
"has",
"no",
"effect",
"if",
"playback",
"is",
"not",
"enabled",
".",
"This",
"might",
"not",
"work",
"depending",
"on",
"the",
"underlying",
"... | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5315-L5325 |
236,394 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_get_chapter_count_for_title | def libvlc_media_player_get_chapter_count_for_title(p_mi, i_title):
'''Get title chapter count.
@param p_mi: the Media Player.
@param i_title: title.
@return: number of chapters in title, or -1.
'''
f = _Cfunctions.get('libvlc_media_player_get_chapter_count_for_title', None) or \
_Cfunct... | python | def libvlc_media_player_get_chapter_count_for_title(p_mi, i_title):
'''Get title chapter count.
@param p_mi: the Media Player.
@param i_title: title.
@return: number of chapters in title, or -1.
'''
f = _Cfunctions.get('libvlc_media_player_get_chapter_count_for_title', None) or \
_Cfunct... | [
"def",
"libvlc_media_player_get_chapter_count_for_title",
"(",
"p_mi",
",",
"i_title",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_get_chapter_count_for_title'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_get_chapter_count... | Get title chapter count.
@param p_mi: the Media Player.
@param i_title: title.
@return: number of chapters in title, or -1. | [
"Get",
"title",
"chapter",
"count",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5367-L5376 |
236,395 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_set_rate | def libvlc_media_player_set_rate(p_mi, rate):
'''Set movie play rate.
@param p_mi: the Media Player.
@param rate: movie play rate to set.
@return: -1 if an error was detected, 0 otherwise (but even then, it might not actually work depending on the underlying media protocol).
'''
f = _Cfunctions.... | python | def libvlc_media_player_set_rate(p_mi, rate):
'''Set movie play rate.
@param p_mi: the Media Player.
@param rate: movie play rate to set.
@return: -1 if an error was detected, 0 otherwise (but even then, it might not actually work depending on the underlying media protocol).
'''
f = _Cfunctions.... | [
"def",
"libvlc_media_player_set_rate",
"(",
"p_mi",
",",
"rate",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_set_rate'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_set_rate'",
",",
"(",
"(",
"1",
",",
")",
",... | Set movie play rate.
@param p_mi: the Media Player.
@param rate: movie play rate to set.
@return: -1 if an error was detected, 0 otherwise (but even then, it might not actually work depending on the underlying media protocol). | [
"Set",
"movie",
"play",
"rate",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5438-L5447 |
236,396 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_get_state | def libvlc_media_player_get_state(p_mi):
'''Get current movie state.
@param p_mi: the Media Player.
@return: the current state of the media player (playing, paused, ...) See libvlc_state_t.
'''
f = _Cfunctions.get('libvlc_media_player_get_state', None) or \
_Cfunction('libvlc_media_player_ge... | python | def libvlc_media_player_get_state(p_mi):
'''Get current movie state.
@param p_mi: the Media Player.
@return: the current state of the media player (playing, paused, ...) See libvlc_state_t.
'''
f = _Cfunctions.get('libvlc_media_player_get_state', None) or \
_Cfunction('libvlc_media_player_ge... | [
"def",
"libvlc_media_player_get_state",
"(",
"p_mi",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_get_state'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_get_state'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",... | Get current movie state.
@param p_mi: the Media Player.
@return: the current state of the media player (playing, paused, ...) See libvlc_state_t. | [
"Get",
"current",
"movie",
"state",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5449-L5457 |
236,397 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_get_fps | def libvlc_media_player_get_fps(p_mi):
'''Get movie fps rate.
@param p_mi: the Media Player.
@return: frames per second (fps) for this playing movie, or 0 if unspecified.
'''
f = _Cfunctions.get('libvlc_media_player_get_fps', None) or \
_Cfunction('libvlc_media_player_get_fps', ((1,),), None... | python | def libvlc_media_player_get_fps(p_mi):
'''Get movie fps rate.
@param p_mi: the Media Player.
@return: frames per second (fps) for this playing movie, or 0 if unspecified.
'''
f = _Cfunctions.get('libvlc_media_player_get_fps', None) or \
_Cfunction('libvlc_media_player_get_fps', ((1,),), None... | [
"def",
"libvlc_media_player_get_fps",
"(",
"p_mi",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_get_fps'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_get_fps'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
"... | Get movie fps rate.
@param p_mi: the Media Player.
@return: frames per second (fps) for this playing movie, or 0 if unspecified. | [
"Get",
"movie",
"fps",
"rate",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5459-L5467 |
236,398 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_has_vout | def libvlc_media_player_has_vout(p_mi):
'''How many video outputs does this media player have?
@param p_mi: the media player.
@return: the number of video outputs.
'''
f = _Cfunctions.get('libvlc_media_player_has_vout', None) or \
_Cfunction('libvlc_media_player_has_vout', ((1,),), None,
... | python | def libvlc_media_player_has_vout(p_mi):
'''How many video outputs does this media player have?
@param p_mi: the media player.
@return: the number of video outputs.
'''
f = _Cfunctions.get('libvlc_media_player_has_vout', None) or \
_Cfunction('libvlc_media_player_has_vout', ((1,),), None,
... | [
"def",
"libvlc_media_player_has_vout",
"(",
"p_mi",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_has_vout'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_has_vout'",
",",
"(",
"(",
"1",
",",
")",
",",
")",
",",
... | How many video outputs does this media player have?
@param p_mi: the media player.
@return: the number of video outputs. | [
"How",
"many",
"video",
"outputs",
"does",
"this",
"media",
"player",
"have?"
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5469-L5477 |
236,399 | manns/pyspread | pyspread/src/lib/vlc.py | libvlc_media_player_navigate | def libvlc_media_player_navigate(p_mi, navigate):
'''Navigate through DVD Menu.
@param p_mi: the Media Player.
@param navigate: the Navigation mode.
@version: libVLC 2.0.0 or later.
'''
f = _Cfunctions.get('libvlc_media_player_navigate', None) or \
_Cfunction('libvlc_media_player_navigat... | python | def libvlc_media_player_navigate(p_mi, navigate):
'''Navigate through DVD Menu.
@param p_mi: the Media Player.
@param navigate: the Navigation mode.
@version: libVLC 2.0.0 or later.
'''
f = _Cfunctions.get('libvlc_media_player_navigate', None) or \
_Cfunction('libvlc_media_player_navigat... | [
"def",
"libvlc_media_player_navigate",
"(",
"p_mi",
",",
"navigate",
")",
":",
"f",
"=",
"_Cfunctions",
".",
"get",
"(",
"'libvlc_media_player_navigate'",
",",
"None",
")",
"or",
"_Cfunction",
"(",
"'libvlc_media_player_navigate'",
",",
"(",
"(",
"1",
",",
")",
... | Navigate through DVD Menu.
@param p_mi: the Media Player.
@param navigate: the Navigation mode.
@version: libVLC 2.0.0 or later. | [
"Navigate",
"through",
"DVD",
"Menu",
"."
] | 0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0 | https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/vlc.py#L5519-L5528 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.