text stringlengths 0 828 |
|---|
return data" |
4337,"def update_store_credit_by_id(cls, store_credit_id, store_credit, **kwargs): |
""""""Update StoreCredit |
Update attributes of StoreCredit |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.update_store_credit_by_id(store_credit_id, store_credit, async=True) |
>>> result = thread.get() |
:param async bool |
:param str store_credit_id: ID of storeCredit to update. (required) |
:param StoreCredit store_credit: Attributes of storeCredit to update. (required) |
:return: StoreCredit |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._update_store_credit_by_id_with_http_info(store_credit_id, store_credit, **kwargs) |
else: |
(data) = cls._update_store_credit_by_id_with_http_info(store_credit_id, store_credit, **kwargs) |
return data" |
4338,"def on_mouse_motion(x, y, dx, dy): |
"""""" 当鼠标没有按下时移动的时候触发 """""" |
mouse.x, mouse.y = x, y |
mouse.move() |
window.update_caption(mouse)" |
4339,"def on_mouse_drag(x, y, dx, dy, buttons, modifiers): |
"""""" 当鼠标按下并且移动的时候触发 """""" |
mouse.x, mouse.y = x, y |
mouse.move()" |
4340,"def on_mouse_press(x, y, button, modifiers): |
"""""" 按下鼠标时 |
"""""" |
if button == MouseKeyCode.LEFT: |
mouse.press() |
elif button == MouseKeyCode.RIGHT: |
mouse.right_press() |
# 判断是否有图形的点击事件被触发了 |
shapes = list(all_shapes) |
while shapes: |
shape = shapes.pop() |
if(shape._press and shape_clicked(shape)): |
shape._press()" |
4341,"def on_mouse_release(x, y, button, modifiers): |
"""""" 松开鼠标时 """""" |
if button == MouseKeyCode.LEFT: |
mouse.release() |
elif button == MouseKeyCode.RIGHT: |
mouse.right_release()" |
4342,"def _register_extensions(self, namespace): |
""""""Register any extensions under the given namespace."""""" |
# Register any extension classes for this class. |
extmanager = ExtensionManager( |
'extensions.classes.{}'.format(namespace), |
propagate_map_exceptions=True |
) |
if extmanager.extensions: |
extmanager.map(util.register_extension_class, base=self) |
# Register any extension methods for this class. |
extmanager = ExtensionManager( |
'extensions.methods.{}'.format(namespace), |
propagate_map_exceptions=True |
) |
if extmanager.extensions: |
extmanager.map(util.register_extension_method, base=self)" |
4343,"def acls(self): |
""""""The instance bound ACLs operations layer."""""" |
if self._acls is None: |
self._acls = InstanceAcls(instance=self) |
return self._acls" |
4344,"def all(self): |
""""""Get all ACLs for this instance."""""" |
return self._instance._client.acls.all(self._instance.name)" |
4345,"def create(self, cidr_mask, description, **kwargs): |
""""""Create an ACL for this instance. |
See :py:meth:`Acls.create` for call signature. |
"""""" |
return self._instance._client.acls.create( |
self._instance.name, |
cidr_mask, |
description, |
**kwargs |
)" |
4346,"def get(self, acl): |
""""""Get the ACL specified by ID belonging to this instance. |
See :py:meth:`Acls.get` for call signature. |
"""""" |
return self._instance._client.acls.get(self._instance.name, acl)" |
4347,"def is_number(num, if_bool=False): |
"""""" :return: True if num is either an actual number, or an object that converts to one """""" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.