body_hash
stringlengths
64
64
body
stringlengths
23
109k
docstring
stringlengths
1
57k
path
stringlengths
4
198
name
stringlengths
1
115
repository_name
stringlengths
7
111
repository_stars
float64
0
191k
lang
stringclasses
1 value
body_without_docstring
stringlengths
14
108k
unified
stringlengths
45
133k
08f1fed3956d43922d9c88c5104bce6288a8720d3c1b6edccd1826c2b46d2b0e
def findItem(self, name: str): '\n self.findItem(name) -> Menu or None\n Finds a submenu or command with a particular name.\n @param name: The name to search for.\n @return: The submenu or command we found, or None if we could not find anything.\n ' return Union[(Menu, None)]
self.findItem(name) -> Menu or None Finds a submenu or command with a particular name. @param name: The name to search for. @return: The submenu or command we found, or None if we could not find anything.
nuke_stubs/nuke/nuke_classes/ToolBar.py
findItem
sisoe24/Nuke-Python-Stubs
1
python
def findItem(self, name: str): '\n self.findItem(name) -> Menu or None\n Finds a submenu or command with a particular name.\n @param name: The name to search for.\n @return: The submenu or command we found, or None if we could not find anything.\n ' return Union[(Menu, None)]
def findItem(self, name: str): '\n self.findItem(name) -> Menu or None\n Finds a submenu or command with a particular name.\n @param name: The name to search for.\n @return: The submenu or command we found, or None if we could not find anything.\n ' return Union[(Menu, None)]<...
85e1ccd9819913e002dfadcefbd0438e5834ce526d9d9685f5cdf87fa4c28101
def menu(self, name: str): '\n self.menu(name) -> Menu or None\n Finds a submenu or command with a particular name.\n @param name: The name to search for.\n @return: The submenu or command we found, or None if we could not find anything.\n ' return Union[(Menu, None)]
self.menu(name) -> Menu or None Finds a submenu or command with a particular name. @param name: The name to search for. @return: The submenu or command we found, or None if we could not find anything.
nuke_stubs/nuke/nuke_classes/ToolBar.py
menu
sisoe24/Nuke-Python-Stubs
1
python
def menu(self, name: str): '\n self.menu(name) -> Menu or None\n Finds a submenu or command with a particular name.\n @param name: The name to search for.\n @return: The submenu or command we found, or None if we could not find anything.\n ' return Union[(Menu, None)]
def menu(self, name: str): '\n self.menu(name) -> Menu or None\n Finds a submenu or command with a particular name.\n @param name: The name to search for.\n @return: The submenu or command we found, or None if we could not find anything.\n ' return Union[(Menu, None)]<|docstri...
be08f88828d49e054e34a267b03068f22762dffae11749fb7f68b007f4f0f5d6
def removeItem(self, name: str): '\n self.removeItem(name) -> None\n Removes a submenu or command with a particular name. If the containing menu becomes empty, it will be removed too.\n @param name: The name to remove for.\n @return: true if removed, false if menu not found \n ' ...
self.removeItem(name) -> None Removes a submenu or command with a particular name. If the containing menu becomes empty, it will be removed too. @param name: The name to remove for. @return: true if removed, false if menu not found
nuke_stubs/nuke/nuke_classes/ToolBar.py
removeItem
sisoe24/Nuke-Python-Stubs
1
python
def removeItem(self, name: str): '\n self.removeItem(name) -> None\n Removes a submenu or command with a particular name. If the containing menu becomes empty, it will be removed too.\n @param name: The name to remove for.\n @return: true if removed, false if menu not found \n ' ...
def removeItem(self, name: str): '\n self.removeItem(name) -> None\n Removes a submenu or command with a particular name. If the containing menu becomes empty, it will be removed too.\n @param name: The name to remove for.\n @return: true if removed, false if menu not found \n ' ...
1e654bf388561345ba99699e700f7e258fee9c05c32b4aa3658cfd3549d74e2e
def items(self): '\n self.items() -> None\n Returns a list of sub menu items.\n ' return None
self.items() -> None Returns a list of sub menu items.
nuke_stubs/nuke/nuke_classes/ToolBar.py
items
sisoe24/Nuke-Python-Stubs
1
python
def items(self): '\n self.items() -> None\n Returns a list of sub menu items.\n ' return None
def items(self): '\n self.items() -> None\n Returns a list of sub menu items.\n ' return None<|docstring|>self.items() -> None Returns a list of sub menu items.<|endoftext|>
6ea9c1d9d31339a3cd5f20788ce07d752664283ac54ce3308bdec576731955ed
def name(self): '\n self.name() -> String\n Returns the name of the menu item.\n ' return str()
self.name() -> String Returns the name of the menu item.
nuke_stubs/nuke/nuke_classes/ToolBar.py
name
sisoe24/Nuke-Python-Stubs
1
python
def name(self): '\n self.name() -> String\n Returns the name of the menu item.\n ' return str()
def name(self): '\n self.name() -> String\n Returns the name of the menu item.\n ' return str()<|docstring|>self.name() -> String Returns the name of the menu item.<|endoftext|>
47cd310fc66ee08cf7f38aeeb4e6a7147ae46a3db24f2fdbd436aea9829b4e1b
def addAction(self, action): '\n self.addAction(action) -> bool\n Adds the QAction to the menu.\n ' return bool()
self.addAction(action) -> bool Adds the QAction to the menu.
nuke_stubs/nuke/nuke_classes/ToolBar.py
addAction
sisoe24/Nuke-Python-Stubs
1
python
def addAction(self, action): '\n self.addAction(action) -> bool\n Adds the QAction to the menu.\n ' return bool()
def addAction(self, action): '\n self.addAction(action) -> bool\n Adds the QAction to the menu.\n ' return bool()<|docstring|>self.addAction(action) -> bool Adds the QAction to the menu.<|endoftext|>
60d41c4071baebabb123fdbf39ce1567c8c8029d314177f4d9496f5281957484
def updateMenuItems(self): "\n updateMenuItems() -> None\n Updates menu items' states. Call on about to show menu.\n " return None
updateMenuItems() -> None Updates menu items' states. Call on about to show menu.
nuke_stubs/nuke/nuke_classes/ToolBar.py
updateMenuItems
sisoe24/Nuke-Python-Stubs
1
python
def updateMenuItems(self): "\n updateMenuItems() -> None\n Updates menu items' states. Call on about to show menu.\n " return None
def updateMenuItems(self): "\n updateMenuItems() -> None\n Updates menu items' states. Call on about to show menu.\n " return None<|docstring|>updateMenuItems() -> None Updates menu items' states. Call on about to show menu.<|endoftext|>
db13b343996701cc49debcd789288de525502a172c7273dd36ee82dda65a9f5f
def __init__(self, *args, **kwargs): '\n Initialize self. See help(type(self)) for accurate signature.\n ' return None
Initialize self. See help(type(self)) for accurate signature.
nuke_stubs/nuke/nuke_classes/ToolBar.py
__init__
sisoe24/Nuke-Python-Stubs
1
python
def __init__(self, *args, **kwargs): '\n \n ' return None
def __init__(self, *args, **kwargs): '\n \n ' return None<|docstring|>Initialize self. See help(type(self)) for accurate signature.<|endoftext|>
a479b60b329f1e1cb88d8530749e3ccbdaa64bd501cc1ee59297a281d67917a9
def get_files_from_root(root_dir: Path) -> Set[Path]: '\n Return all the code file the root directory has.\n Only process .py for now.\n ' out = set() for entry in os.scandir(root_dir): entry = Path(entry.path) if entry.is_dir(): out.update(get_files_from_root(entry)) ...
Return all the code file the root directory has. Only process .py for now.
dev/set_license.py
get_files_from_root
MrLixm/KUI
0
python
def get_files_from_root(root_dir: Path) -> Set[Path]: '\n Return all the code file the root directory has.\n Only process .py for now.\n ' out = set() for entry in os.scandir(root_dir): entry = Path(entry.path) if entry.is_dir(): out.update(get_files_from_root(entry)) ...
def get_files_from_root(root_dir: Path) -> Set[Path]: '\n Return all the code file the root directory has.\n Only process .py for now.\n ' out = set() for entry in os.scandir(root_dir): entry = Path(entry.path) if entry.is_dir(): out.update(get_files_from_root(entry)) ...
ebc34f9e84e30b778b05906f795defbfaaa2a1d1b1ae93dc6676ba07c0bcdb5f
def code_remove_license(file: Path) -> str: '\n The given file MUST have an existing top docstring.\n ' pattern = f'^--\[\[([\s\S]*?){re.escape(LICENSE_PREFIX)}[\s\S]*?\]\]' code = file.read_text(encoding='utf-8') new_code = re.sub(pattern=pattern, repl='"""\\1"""', string=code) print(f'[code_...
The given file MUST have an existing top docstring.
dev/set_license.py
code_remove_license
MrLixm/KUI
0
python
def code_remove_license(file: Path) -> str: '\n \n ' pattern = f'^--\[\[([\s\S]*?){re.escape(LICENSE_PREFIX)}[\s\S]*?\]\]' code = file.read_text(encoding='utf-8') new_code = re.sub(pattern=pattern, repl='"\\1"', string=code) print(f'[code_remove_license] Finished for <{file}>') return new_...
def code_remove_license(file: Path) -> str: '\n \n ' pattern = f'^--\[\[([\s\S]*?){re.escape(LICENSE_PREFIX)}[\s\S]*?\]\]' code = file.read_text(encoding='utf-8') new_code = re.sub(pattern=pattern, repl='"\\1"', string=code) print(f'[code_remove_license] Finished for <{file}>') return new_...
1dcafd42fcb6c447542e94c285b3229e24fb9226b19184d6818149ab83122b45
def __init__(self, **kwargs): '\n Init method.\n\n :keyword select2_options: A dictionary containing select2 options.\n ' if (not isinstance(kwargs.get('select2_options'), dict)): kwargs['select2_options'] = {} kwargs['select2_options'].update({'minimumInputLength': 0, 'minimumR...
Init method. :keyword select2_options: A dictionary containing select2 options.
django_select2_chained/widgets.py
__init__
djkartsa/django-select2-chained
0
python
def __init__(self, **kwargs): '\n Init method.\n\n :keyword select2_options: A dictionary containing select2 options.\n ' if (not isinstance(kwargs.get('select2_options'), dict)): kwargs['select2_options'] = {} kwargs['select2_options'].update({'minimumInputLength': 0, 'minimumR...
def __init__(self, **kwargs): '\n Init method.\n\n :keyword select2_options: A dictionary containing select2 options.\n ' if (not isinstance(kwargs.get('select2_options'), dict)): kwargs['select2_options'] = {} kwargs['select2_options'].update({'minimumInputLength': 0, 'minimumR...
d12bf081c09f3bf79dac6fc66368be68793a8eeefe7f3a4cdd54092757b4876c
def __init__(self, *args, **kwargs): '\n Init method.\n\n :keyword chain_field: Name of the field in the form.\n :keyword model_field: Name of the field in the model.\n ' self.chain_field = kwargs.pop('chain_field', None) self.model_field = kwargs.pop('model_field', None) sup...
Init method. :keyword chain_field: Name of the field in the form. :keyword model_field: Name of the field in the model.
django_select2_chained/widgets.py
__init__
djkartsa/django-select2-chained
0
python
def __init__(self, *args, **kwargs): '\n Init method.\n\n :keyword chain_field: Name of the field in the form.\n :keyword model_field: Name of the field in the model.\n ' self.chain_field = kwargs.pop('chain_field', None) self.model_field = kwargs.pop('model_field', None) sup...
def __init__(self, *args, **kwargs): '\n Init method.\n\n :keyword chain_field: Name of the field in the form.\n :keyword model_field: Name of the field in the model.\n ' self.chain_field = kwargs.pop('chain_field', None) self.model_field = kwargs.pop('model_field', None) sup...
2c3b74d5097b1ff92ec20b2bf3123a520241726bf00e96e246c49d7d8244fbd2
def render(self, name, value, attrs=None, choices=()): 'Render the widget.' if ((not self.chain_field) or (not self.model_field)): raise NotImplementedError(u'Chain field and model field must be specified.') if (len(name.split('-')) > 1): chain_field = '-'.join((name.split('-')[:(- 1)] + [se...
Render the widget.
django_select2_chained/widgets.py
render
djkartsa/django-select2-chained
0
python
def render(self, name, value, attrs=None, choices=()): if ((not self.chain_field) or (not self.model_field)): raise NotImplementedError(u'Chain field and model field must be specified.') if (len(name.split('-')) > 1): chain_field = '-'.join((name.split('-')[:(- 1)] + [self.chain_field])) ...
def render(self, name, value, attrs=None, choices=()): if ((not self.chain_field) or (not self.model_field)): raise NotImplementedError(u'Chain field and model field must be specified.') if (len(name.split('-')) > 1): chain_field = '-'.join((name.split('-')[:(- 1)] + [self.chain_field])) ...
f8f956ff4150f8c720524191cff0060690d3c1edc928e95788b63a2a18299c1d
def init_options(self): 'Initialize widget options.' self.options['ajax']['data'] = JSFunctionInContext('django_select2_chained.extra_url_params') self.options['chain_field'] = self.chain_field
Initialize widget options.
django_select2_chained/widgets.py
init_options
djkartsa/django-select2-chained
0
python
def init_options(self): self.options['ajax']['data'] = JSFunctionInContext('django_select2_chained.extra_url_params') self.options['chain_field'] = self.chain_field
def init_options(self): self.options['ajax']['data'] = JSFunctionInContext('django_select2_chained.extra_url_params') self.options['chain_field'] = self.chain_field<|docstring|>Initialize widget options.<|endoftext|>
ed4739e40a8ee448b2f5e335bbc672241c6162be5fc8afc8785b354239f59df0
def __init__(self, serial_port, baudrate=_DEFAULT_BAUDRATE): 'Set interface first, then call baseclass initializer' if MICROPYTHON: self.interface = SerialCompat(int(serial_port)) self.interface.init(baudrate=baudrate, timeout_chars=_DEFAULT_TIMEOUT) else: self.interface = Serial(por...
Set interface first, then call baseclass initializer
pyserialdrivers/exo/serial.py
__init__
pfrnz/pyserialdrivers
3
python
def __init__(self, serial_port, baudrate=_DEFAULT_BAUDRATE): if MICROPYTHON: self.interface = SerialCompat(int(serial_port)) self.interface.init(baudrate=baudrate, timeout_chars=_DEFAULT_TIMEOUT) else: self.interface = Serial(port=serial_port, baudrate=baudrate, timeout=_DEFAULT_TIM...
def __init__(self, serial_port, baudrate=_DEFAULT_BAUDRATE): if MICROPYTHON: self.interface = SerialCompat(int(serial_port)) self.interface.init(baudrate=baudrate, timeout_chars=_DEFAULT_TIMEOUT) else: self.interface = Serial(port=serial_port, baudrate=baudrate, timeout=_DEFAULT_TIM...
93c771645791c8fc5743d2c7da79f9fdf9954da1498d1f18ae3cabe924449e8b
def dropAccept(file_paths: List[str]) -> bool: 'Accept a list of files.\n\n This function is called by Houdini when files are dropped onto the UI.\n\n :param file_paths: A list of dropped files.\n :return: Whether or not the drop was handled.\n\n ' if any([file_path for file_path in file_paths if (o...
Accept a list of files. This function is called by Houdini when files are dropped onto the UI. :param file_paths: A list of dropped files. :return: Whether or not the drop was handled.
houdini/scripts/externaldragdrop.py
dropAccept
Hengle/Houdini-Toolbox
136
python
def dropAccept(file_paths: List[str]) -> bool: 'Accept a list of files.\n\n This function is called by Houdini when files are dropped onto the UI.\n\n :param file_paths: A list of dropped files.\n :return: Whether or not the drop was handled.\n\n ' if any([file_path for file_path in file_paths if (o...
def dropAccept(file_paths: List[str]) -> bool: 'Accept a list of files.\n\n This function is called by Houdini when files are dropped onto the UI.\n\n :param file_paths: A list of dropped files.\n :return: Whether or not the drop was handled.\n\n ' if any([file_path for file_path in file_paths if (o...
11003ad6780e75a6556ce8f2753be69edf790014356900de415d9c1e45a3d3f2
def step_decay_schedule(initial_lr=0.001, decay_factor=0.75, step_size=10): '\n Wrapper function to create a LearningRateScheduler with step decay schedule.\n ' def schedule(epoch): return (initial_lr * (decay_factor ** np.floor((epoch / step_size)))) return LearningRateScheduler(schedule)
Wrapper function to create a LearningRateScheduler with step decay schedule.
utils/learning_rate.py
step_decay_schedule
Kinzakasmi/Earth_Engine_Landcover_Segmentation
2
python
def step_decay_schedule(initial_lr=0.001, decay_factor=0.75, step_size=10): '\n \n ' def schedule(epoch): return (initial_lr * (decay_factor ** np.floor((epoch / step_size)))) return LearningRateScheduler(schedule)
def step_decay_schedule(initial_lr=0.001, decay_factor=0.75, step_size=10): '\n \n ' def schedule(epoch): return (initial_lr * (decay_factor ** np.floor((epoch / step_size)))) return LearningRateScheduler(schedule)<|docstring|>Wrapper function to create a LearningRateScheduler with step decay...
a43451881542d320d277ccc3f211e9c815cb77aec1b361d3f86eb2ad206bd6fb
def clr(self): 'Calculate the learning rate.' x = (self.iteration / self.total_iterations) return (self.min_lr + ((self.max_lr - self.min_lr) * x))
Calculate the learning rate.
utils/learning_rate.py
clr
Kinzakasmi/Earth_Engine_Landcover_Segmentation
2
python
def clr(self): x = (self.iteration / self.total_iterations) return (self.min_lr + ((self.max_lr - self.min_lr) * x))
def clr(self): x = (self.iteration / self.total_iterations) return (self.min_lr + ((self.max_lr - self.min_lr) * x))<|docstring|>Calculate the learning rate.<|endoftext|>
9cd4c3ea61ca954bfc4025fe46cbe6d20ce8adf718d9b54a45d8755a7bc56181
def on_train_begin(self, logs=None): 'Initialize the learning rate to the minimum value at the start of training.' logs = (logs or {}) K.set_value(self.model.optimizer.lr, self.min_lr)
Initialize the learning rate to the minimum value at the start of training.
utils/learning_rate.py
on_train_begin
Kinzakasmi/Earth_Engine_Landcover_Segmentation
2
python
def on_train_begin(self, logs=None): logs = (logs or {}) K.set_value(self.model.optimizer.lr, self.min_lr)
def on_train_begin(self, logs=None): logs = (logs or {}) K.set_value(self.model.optimizer.lr, self.min_lr)<|docstring|>Initialize the learning rate to the minimum value at the start of training.<|endoftext|>
c877fa9c651861e6af0d39792a031d538b76ff3e18bdc137d3063c0dcc86c727
def on_batch_end(self, epoch, logs=None): 'Record previous batch statistics and update the learning rate.' logs = (logs or {}) self.iteration += 1 self.history.setdefault('lr', []).append(K.get_value(self.model.optimizer.lr)) self.history.setdefault('iterations', []).append(self.iteration) for (...
Record previous batch statistics and update the learning rate.
utils/learning_rate.py
on_batch_end
Kinzakasmi/Earth_Engine_Landcover_Segmentation
2
python
def on_batch_end(self, epoch, logs=None): logs = (logs or {}) self.iteration += 1 self.history.setdefault('lr', []).append(K.get_value(self.model.optimizer.lr)) self.history.setdefault('iterations', []).append(self.iteration) for (k, v) in logs.items(): self.history.setdefault(k, []).ap...
def on_batch_end(self, epoch, logs=None): logs = (logs or {}) self.iteration += 1 self.history.setdefault('lr', []).append(K.get_value(self.model.optimizer.lr)) self.history.setdefault('iterations', []).append(self.iteration) for (k, v) in logs.items(): self.history.setdefault(k, []).ap...
57b78052b1b90ea5ea5febebfaea1d41d55246b4a28f15414922901123d0f3d8
def plot_lr(self): 'Helper function to quickly inspect the learning rate schedule.' plt.plot(self.history['iterations'], self.history['lr']) plt.yscale('log') plt.xlabel('Iteration') plt.ylabel('Learning rate') plt.show()
Helper function to quickly inspect the learning rate schedule.
utils/learning_rate.py
plot_lr
Kinzakasmi/Earth_Engine_Landcover_Segmentation
2
python
def plot_lr(self): plt.plot(self.history['iterations'], self.history['lr']) plt.yscale('log') plt.xlabel('Iteration') plt.ylabel('Learning rate') plt.show()
def plot_lr(self): plt.plot(self.history['iterations'], self.history['lr']) plt.yscale('log') plt.xlabel('Iteration') plt.ylabel('Learning rate') plt.show()<|docstring|>Helper function to quickly inspect the learning rate schedule.<|endoftext|>
23730c7052f03bc21e0ddd8d170aae46f0eabfb420741248ff65f1be0592f51d
def plot_loss(self): 'Helper function to quickly observe the learning rate experiment results.' plt.plot(self.history['lr'], self.history['loss']) plt.plot(self.history['lr'], self.history['sparse_categorical_accuracy']) plt.xscale('log') plt.xlabel('Learning rate') plt.ylabel('Metric') plt....
Helper function to quickly observe the learning rate experiment results.
utils/learning_rate.py
plot_loss
Kinzakasmi/Earth_Engine_Landcover_Segmentation
2
python
def plot_loss(self): plt.plot(self.history['lr'], self.history['loss']) plt.plot(self.history['lr'], self.history['sparse_categorical_accuracy']) plt.xscale('log') plt.xlabel('Learning rate') plt.ylabel('Metric') plt.legend(['loss', 'accuracy'], loc='upper left') plt.show()
def plot_loss(self): plt.plot(self.history['lr'], self.history['loss']) plt.plot(self.history['lr'], self.history['sparse_categorical_accuracy']) plt.xscale('log') plt.xlabel('Learning rate') plt.ylabel('Metric') plt.legend(['loss', 'accuracy'], loc='upper left') plt.show()<|docstring|>...
395a4203e3632c73e8b6d01621e94606ed5e37c8fa7b965e8ba802d3eef9e42d
def _reset(self, new_base_lr=None, new_max_lr=None, new_step_size=None): 'Resets cycle iterations.\n Optional boundary/step size adjustment.\n ' if (new_base_lr is not None): self.base_lr = new_base_lr if (new_max_lr is not None): self.max_lr = new_max_lr if (new_step_size ...
Resets cycle iterations. Optional boundary/step size adjustment.
utils/learning_rate.py
_reset
Kinzakasmi/Earth_Engine_Landcover_Segmentation
2
python
def _reset(self, new_base_lr=None, new_max_lr=None, new_step_size=None): 'Resets cycle iterations.\n Optional boundary/step size adjustment.\n ' if (new_base_lr is not None): self.base_lr = new_base_lr if (new_max_lr is not None): self.max_lr = new_max_lr if (new_step_size ...
def _reset(self, new_base_lr=None, new_max_lr=None, new_step_size=None): 'Resets cycle iterations.\n Optional boundary/step size adjustment.\n ' if (new_base_lr is not None): self.base_lr = new_base_lr if (new_max_lr is not None): self.max_lr = new_max_lr if (new_step_size ...
ae5d58fa35b4b2b3441da7eded37b82147d20b28a64c3102eec3a6a91a29f289
def fix_winding(mesh): '\n Traverse and change mesh faces in-place to make sure\n winding is correct with edges on adjacent faces in\n opposite directions.\n\n Parameters\n -------------\n mesh : Trimesh\n Source geometry to alter in-place.\n ' if mesh.is_winding_consistent: re...
Traverse and change mesh faces in-place to make sure winding is correct with edges on adjacent faces in opposite directions. Parameters ------------- mesh : Trimesh Source geometry to alter in-place.
trimesh/repair.py
fix_winding
Gmadges/trimesh
0
python
def fix_winding(mesh): '\n Traverse and change mesh faces in-place to make sure\n winding is correct with edges on adjacent faces in\n opposite directions.\n\n Parameters\n -------------\n mesh : Trimesh\n Source geometry to alter in-place.\n ' if mesh.is_winding_consistent: re...
def fix_winding(mesh): '\n Traverse and change mesh faces in-place to make sure\n winding is correct with edges on adjacent faces in\n opposite directions.\n\n Parameters\n -------------\n mesh : Trimesh\n Source geometry to alter in-place.\n ' if mesh.is_winding_consistent: re...
d71c09809752c8cb4a3825346f4904a6b8413ffa25f74542d62a4cf91a474d60
def fix_inversion(mesh, multibody=False): '\n Check to see if a mesh has normals pointing "out."\n\n Parameters\n -------------\n mesh : trimesh.Trimesh\n Mesh to fix in-place.\n multibody : bool\n If True will try to fix normals on every body\n ' if multibody: groups = graph...
Check to see if a mesh has normals pointing "out." Parameters ------------- mesh : trimesh.Trimesh Mesh to fix in-place. multibody : bool If True will try to fix normals on every body
trimesh/repair.py
fix_inversion
Gmadges/trimesh
0
python
def fix_inversion(mesh, multibody=False): '\n Check to see if a mesh has normals pointing "out."\n\n Parameters\n -------------\n mesh : trimesh.Trimesh\n Mesh to fix in-place.\n multibody : bool\n If True will try to fix normals on every body\n ' if multibody: groups = graph...
def fix_inversion(mesh, multibody=False): '\n Check to see if a mesh has normals pointing "out."\n\n Parameters\n -------------\n mesh : trimesh.Trimesh\n Mesh to fix in-place.\n multibody : bool\n If True will try to fix normals on every body\n ' if multibody: groups = graph...
9ffb3e8d8465af1b20367ab32f47a61ab4726e16ff94b02e365431a9c004be9c
def fix_normals(mesh, multibody=False): '\n Fix the winding and direction of a mesh face and\n face normals in-place.\n\n Really only meaningful on watertight meshes but will orient all\n faces and winding in a uniform way for non-watertight face\n patches as well.\n\n Parameters\n ------------...
Fix the winding and direction of a mesh face and face normals in-place. Really only meaningful on watertight meshes but will orient all faces and winding in a uniform way for non-watertight face patches as well. Parameters ------------- mesh : trimesh.Trimesh Mesh to fix normals on multibody : bool if True try to...
trimesh/repair.py
fix_normals
Gmadges/trimesh
0
python
def fix_normals(mesh, multibody=False): '\n Fix the winding and direction of a mesh face and\n face normals in-place.\n\n Really only meaningful on watertight meshes but will orient all\n faces and winding in a uniform way for non-watertight face\n patches as well.\n\n Parameters\n ------------...
def fix_normals(mesh, multibody=False): '\n Fix the winding and direction of a mesh face and\n face normals in-place.\n\n Really only meaningful on watertight meshes but will orient all\n faces and winding in a uniform way for non-watertight face\n patches as well.\n\n Parameters\n ------------...
d0d6c5597c75f7d4239c7ab574c6aa9952fc057dc30a1966936e518d24c14ca4
def broken_faces(mesh, color=None): '\n Return the index of faces in the mesh which break the\n watertight status of the mesh.\n\n Parameters\n --------------\n mesh : trimesh.Trimesh\n Mesh to check broken faces on\n color: (4,) uint8 or None\n Will set broken faces to this color if not...
Return the index of faces in the mesh which break the watertight status of the mesh. Parameters -------------- mesh : trimesh.Trimesh Mesh to check broken faces on color: (4,) uint8 or None Will set broken faces to this color if not None Returns --------------- broken : (n, ) int Indexes of mesh.faces
trimesh/repair.py
broken_faces
Gmadges/trimesh
0
python
def broken_faces(mesh, color=None): '\n Return the index of faces in the mesh which break the\n watertight status of the mesh.\n\n Parameters\n --------------\n mesh : trimesh.Trimesh\n Mesh to check broken faces on\n color: (4,) uint8 or None\n Will set broken faces to this color if not...
def broken_faces(mesh, color=None): '\n Return the index of faces in the mesh which break the\n watertight status of the mesh.\n\n Parameters\n --------------\n mesh : trimesh.Trimesh\n Mesh to check broken faces on\n color: (4,) uint8 or None\n Will set broken faces to this color if not...
086b34c8e97a15da1dabe73d541128e84fd36665543186dbc38b5a235d705bf3
def fill_holes(mesh): '\n Fill single- triangle holes on triangular meshes by adding\n new triangles to fill the holes. New triangles will have\n proper winding and normals, and if face colors exist the color\n of the last face will be assigned to the new triangles.\n\n Parameters\n ------------\n...
Fill single- triangle holes on triangular meshes by adding new triangles to fill the holes. New triangles will have proper winding and normals, and if face colors exist the color of the last face will be assigned to the new triangles. Parameters ------------ mesh : trimesh.Trimesh Mesh will be repaired in- place
trimesh/repair.py
fill_holes
Gmadges/trimesh
0
python
def fill_holes(mesh): '\n Fill single- triangle holes on triangular meshes by adding\n new triangles to fill the holes. New triangles will have\n proper winding and normals, and if face colors exist the color\n of the last face will be assigned to the new triangles.\n\n Parameters\n ------------\n...
def fill_holes(mesh): '\n Fill single- triangle holes on triangular meshes by adding\n new triangles to fill the holes. New triangles will have\n proper winding and normals, and if face colors exist the color\n of the last face will be assigned to the new triangles.\n\n Parameters\n ------------\n...
ad7ca832b48a550cc4f8dc370e070848949ac0f5c51186fd9927f481f4ff0c43
def fan_stitch(mesh, faces=None): '\n Create a fan stitch over the boundary of the specified\n faces. If the boundary is non-convex a triangle fan\n is going to be extremely wonky.\n\n Parameters\n -----------\n vertices : (n, 3) float\n Vertices in space.\n faces : (n,) int\n Face in...
Create a fan stitch over the boundary of the specified faces. If the boundary is non-convex a triangle fan is going to be extremely wonky. Parameters ----------- vertices : (n, 3) float Vertices in space. faces : (n,) int Face indexes to stitch with triangle fans. Returns ---------- fan : (m, 3) int New triangl...
trimesh/repair.py
fan_stitch
Gmadges/trimesh
0
python
def fan_stitch(mesh, faces=None): '\n Create a fan stitch over the boundary of the specified\n faces. If the boundary is non-convex a triangle fan\n is going to be extremely wonky.\n\n Parameters\n -----------\n vertices : (n, 3) float\n Vertices in space.\n faces : (n,) int\n Face in...
def fan_stitch(mesh, faces=None): '\n Create a fan stitch over the boundary of the specified\n faces. If the boundary is non-convex a triangle fan\n is going to be extremely wonky.\n\n Parameters\n -----------\n vertices : (n, 3) float\n Vertices in space.\n faces : (n,) int\n Face in...
c0ce3e5aedf4c116d0623b837c08cc80f3f8386ac68ed37ebbcea1f3e14fa82a
def hole_to_faces(hole): '\n Given a loop of vertex indices representing a hole\n turn it into triangular faces.\n If unable to do so, return None\n\n Parameters\n -----------\n hole : (n,) int\n Ordered loop of vertex indices\n\n Returns\n ---------...
Given a loop of vertex indices representing a hole turn it into triangular faces. If unable to do so, return None Parameters ----------- hole : (n,) int Ordered loop of vertex indices Returns --------- faces : (n, 3) int New faces vertices : (m, 3) float New vertices
trimesh/repair.py
hole_to_faces
Gmadges/trimesh
0
python
def hole_to_faces(hole): '\n Given a loop of vertex indices representing a hole\n turn it into triangular faces.\n If unable to do so, return None\n\n Parameters\n -----------\n hole : (n,) int\n Ordered loop of vertex indices\n\n Returns\n ---------...
def hole_to_faces(hole): '\n Given a loop of vertex indices representing a hole\n turn it into triangular faces.\n If unable to do so, return None\n\n Parameters\n -----------\n hole : (n,) int\n Ordered loop of vertex indices\n\n Returns\n ---------...
8523514401eeedbbd02b36d0f7119036654a27e83ff14668e7f5d974f29cd33a
def chain(func): '\n Decorator function that allows class methods to be chained by implicitly returning the object. Any method\n decorated with this function returns its object.\n\n :param func:\n :return:\n ' @functools.wraps(func) def wrap(self, *args, **kwargs): func(self, *args, ...
Decorator function that allows class methods to be chained by implicitly returning the object. Any method decorated with this function returns its object. :param func: :return:
hoverset/ui/widgets.py
chain
ObaraEmmanuel/Formation
71
python
def chain(func): '\n Decorator function that allows class methods to be chained by implicitly returning the object. Any method\n decorated with this function returns its object.\n\n :param func:\n :return:\n ' @functools.wraps(func) def wrap(self, *args, **kwargs): func(self, *args, ...
def chain(func): '\n Decorator function that allows class methods to be chained by implicitly returning the object. Any method\n decorated with this function returns its object.\n\n :param func:\n :return:\n ' @functools.wraps(func) def wrap(self, *args, **kwargs): func(self, *args, ...
e01b495863bacd504e123800692e40a98053a2fa325b0858cd9f920e96a08c6e
def set_ttk_style(widget, cnf=None, **styles) -> None: '\n Allows you set styles for ttk widgets just like conventional tkinter widgets.\n It bypasses the need to work with ttk styles.\n It is important however to note that unsupported styles will be silently ignored!\n\n :param widget: A ttk widget\n ...
Allows you set styles for ttk widgets just like conventional tkinter widgets. It bypasses the need to work with ttk styles. It is important however to note that unsupported styles will be silently ignored! :param widget: A ttk widget :param styles: keyword arguments representing conventional tkinter style :param cnf: ...
hoverset/ui/widgets.py
set_ttk_style
ObaraEmmanuel/Formation
71
python
def set_ttk_style(widget, cnf=None, **styles) -> None: '\n Allows you set styles for ttk widgets just like conventional tkinter widgets.\n It bypasses the need to work with ttk styles.\n It is important however to note that unsupported styles will be silently ignored!\n\n :param widget: A ttk widget\n ...
def set_ttk_style(widget, cnf=None, **styles) -> None: '\n Allows you set styles for ttk widgets just like conventional tkinter widgets.\n It bypasses the need to work with ttk styles.\n It is important however to note that unsupported styles will be silently ignored!\n\n :param widget: A ttk widget\n ...
2e452d21753fe58a6733d3dc8e5d812f3c10b89ed7824555816234cff2be2ebb
def config_ttk(widget, cnf=None, **styles) -> None: '\n\n :param widget:\n :param cnf:\n :param styles:\n :return:\n ' if (cnf is None): cnf = {} styles.update(cnf) direct = {i: styles[i] for i in (styles.keys() & set(widget.keys()))} widget.configure(**direct) set_ttk_sty...
:param widget: :param cnf: :param styles: :return:
hoverset/ui/widgets.py
config_ttk
ObaraEmmanuel/Formation
71
python
def config_ttk(widget, cnf=None, **styles) -> None: '\n\n :param widget:\n :param cnf:\n :param styles:\n :return:\n ' if (cnf is None): cnf = {} styles.update(cnf) direct = {i: styles[i] for i in (styles.keys() & set(widget.keys()))} widget.configure(**direct) set_ttk_sty...
def config_ttk(widget, cnf=None, **styles) -> None: '\n\n :param widget:\n :param cnf:\n :param styles:\n :return:\n ' if (cnf is None): cnf = {} styles.update(cnf) direct = {i: styles[i] for i in (styles.keys() & set(widget.keys()))} widget.configure(**direct) set_ttk_sty...
c3bb59ecd29aa704093211fce3d16bf3b872bd155baba9eead66aeb586a33b3e
def clean_styles(widget, styles) -> dict: '\n Ensures safety while passing styles to tkinter objects. Normally tkinter objects raise errors for declaring\n styles that are not allowed for a given widget. This function takes in the styles dictionary and removes\n invalid styles for the particular widget ret...
Ensures safety while passing styles to tkinter objects. Normally tkinter objects raise errors for declaring styles that are not allowed for a given widget. This function takes in the styles dictionary and removes invalid styles for the particular widget returning the cleaned styles dictionary. As a bonus, duplicate def...
hoverset/ui/widgets.py
clean_styles
ObaraEmmanuel/Formation
71
python
def clean_styles(widget, styles) -> dict: '\n Ensures safety while passing styles to tkinter objects. Normally tkinter objects raise errors for declaring\n styles that are not allowed for a given widget. This function takes in the styles dictionary and removes\n invalid styles for the particular widget ret...
def clean_styles(widget, styles) -> dict: '\n Ensures safety while passing styles to tkinter objects. Normally tkinter objects raise errors for declaring\n styles that are not allowed for a given widget. This function takes in the styles dictionary and removes\n invalid styles for the particular widget ret...
3dc48fd7a0213fa73ac1d68ee18617e458206948b54d716fc81185db00c6bb9b
def system_fonts(): '\n A list of all font on the current system\n\n :return: list of font names\n ' fonts = sorted(list(font.families())) fonts = list(filter((lambda x: (not x.startswith('@'))), fonts)) return fonts
A list of all font on the current system :return: list of font names
hoverset/ui/widgets.py
system_fonts
ObaraEmmanuel/Formation
71
python
def system_fonts(): '\n A list of all font on the current system\n\n :return: list of font names\n ' fonts = sorted(list(font.families())) fonts = list(filter((lambda x: (not x.startswith('@'))), fonts)) return fonts
def system_fonts(): '\n A list of all font on the current system\n\n :return: list of font names\n ' fonts = sorted(list(font.families())) fonts = list(filter((lambda x: (not x.startswith('@'))), fonts)) return fonts<|docstring|>A list of all font on the current system :return: list of font na...
8c69b9daf830806c0fac5ba40d23d671abfee8f1d39c6a3ea556c568724d5c67
def suppress_change(func): '\n Wraps a method to prevent it from emitting an on change event. Works with\n the hoverset architecture where objects contain a _on_change attribute\n for the callback fired on change\n ' @functools.wraps(func) def inner(self, *args, **kwargs): temp = self._...
Wraps a method to prevent it from emitting an on change event. Works with the hoverset architecture where objects contain a _on_change attribute for the callback fired on change
hoverset/ui/widgets.py
suppress_change
ObaraEmmanuel/Formation
71
python
def suppress_change(func): '\n Wraps a method to prevent it from emitting an on change event. Works with\n the hoverset architecture where objects contain a _on_change attribute\n for the callback fired on change\n ' @functools.wraps(func) def inner(self, *args, **kwargs): temp = self._...
def suppress_change(func): '\n Wraps a method to prevent it from emitting an on change event. Works with\n the hoverset architecture where objects contain a _on_change attribute\n for the callback fired on change\n ' @functools.wraps(func) def inner(self, *args, **kwargs): temp = self._...
c3d6a22967dffced0b8eab238c8af12186c33a7a2c10d25d3819bcbcb1ec9e38
@staticmethod def families(root=None, displayof=None): '\n Get font families as tuple\n ' return font.families(root, displayof)
Get font families as tuple
hoverset/ui/widgets.py
families
ObaraEmmanuel/Formation
71
python
@staticmethod def families(root=None, displayof=None): '\n \n ' return font.families(root, displayof)
@staticmethod def families(root=None, displayof=None): '\n \n ' return font.families(root, displayof)<|docstring|>Get font families as tuple<|endoftext|>
d1138d5100728a6668f115e558503dd4ace919ea9b95ba5f1c4956d0707eca08
@staticmethod def nametofont(name): '\n Given the name of a tk named font, returns a Font representation.\n ' try: return font.nametofont(name) except tk.TclError: return None
Given the name of a tk named font, returns a Font representation.
hoverset/ui/widgets.py
nametofont
ObaraEmmanuel/Formation
71
python
@staticmethod def nametofont(name): '\n \n ' try: return font.nametofont(name) except tk.TclError: return None
@staticmethod def nametofont(name): '\n \n ' try: return font.nametofont(name) except tk.TclError: return None<|docstring|>Given the name of a tk named font, returns a Font representation.<|endoftext|>
a32c20683db382be1ed7afc53595bbd97e7e29b6ebbe18683bc04281203bd1f9
@staticmethod def names(root=None): '\n Get names of defined fonts (as a tuple)\n ' return font.names(root)
Get names of defined fonts (as a tuple)
hoverset/ui/widgets.py
names
ObaraEmmanuel/Formation
71
python
@staticmethod def names(root=None): '\n \n ' return font.names(root)
@staticmethod def names(root=None): '\n \n ' return font.names(root)<|docstring|>Get names of defined fonts (as a tuple)<|endoftext|>
2d2ca9008a3b84211b3af23f07676a11bbe4e9f2bc6438fd490df921639ed930
def set_validator(self, validator, *args, **kwargs) -> None: '\n Allows addition of realtime validation of data entered by the\n user to input widgets. This validation is carried out at the\n lowest level before the user interface even displays the value in\n the widget allowing invalid ...
Allows addition of realtime validation of data entered by the user to input widgets. This validation is carried out at the lowest level before the user interface even displays the value in the widget allowing invalid data to be blocked before it is ever displayed. :param validator: The validation method that accepts o...
hoverset/ui/widgets.py
set_validator
ObaraEmmanuel/Formation
71
python
def set_validator(self, validator, *args, **kwargs) -> None: '\n Allows addition of realtime validation of data entered by the\n user to input widgets. This validation is carried out at the\n lowest level before the user interface even displays the value in\n the widget allowing invalid ...
def set_validator(self, validator, *args, **kwargs) -> None: '\n Allows addition of realtime validation of data entered by the\n user to input widgets. This validation is carried out at the\n lowest level before the user interface even displays the value in\n the widget allowing invalid ...
f1e9cfd6116bd0c38a9b391fcf3045643e5b0289fd3231d85da51065950457b7
def on_change(self, callback, *args, **kwargs): '\n Set the callback when data in the input widget is changed either\n explicitly or implicitly.\n\n :param callback:\n :return:\n ' self._var.trace('w', (lambda *_: callback(*args, **kwargs)))
Set the callback when data in the input widget is changed either explicitly or implicitly. :param callback: :return:
hoverset/ui/widgets.py
on_change
ObaraEmmanuel/Formation
71
python
def on_change(self, callback, *args, **kwargs): '\n Set the callback when data in the input widget is changed either\n explicitly or implicitly.\n\n :param callback:\n :return:\n ' self._var.trace('w', (lambda *_: callback(*args, **kwargs)))
def on_change(self, callback, *args, **kwargs): '\n Set the callback when data in the input widget is changed either\n explicitly or implicitly.\n\n :param callback:\n :return:\n ' self._var.trace('w', (lambda *_: callback(*args, **kwargs)))<|docstring|>Set the callback when d...
95463bfbbe1a181a6009652d0d4e5b3eb6c36debd4dbfe9562ce67a6e4efc681
def on_entry(self, callback, *args, **kwargs): '\n Set the callback when data in the input widget is changed explicitly\n i.e when the user actually types values into the input widget.\n\n :param callback:\n :return:\n ' self.bind('<KeyRelease>', (lambda *_: callback(*args, **...
Set the callback when data in the input widget is changed explicitly i.e when the user actually types values into the input widget. :param callback: :return:
hoverset/ui/widgets.py
on_entry
ObaraEmmanuel/Formation
71
python
def on_entry(self, callback, *args, **kwargs): '\n Set the callback when data in the input widget is changed explicitly\n i.e when the user actually types values into the input widget.\n\n :param callback:\n :return:\n ' self.bind('<KeyRelease>', (lambda *_: callback(*args, **...
def on_entry(self, callback, *args, **kwargs): '\n Set the callback when data in the input widget is changed explicitly\n i.e when the user actually types values into the input widget.\n\n :param callback:\n :return:\n ' self.bind('<KeyRelease>', (lambda *_: callback(*args, **...
dfc0109c56761e2229529aafe964ea6db2144773921c0abcb760cf8a70813bc4
def disabled(self, flag): '\n Change the state of an editable widget, whether disable or enabled\n\n :param flag: set to ``True`` to disable and ``False`` to enable\n ' if flag: self.config(state='disabled') else: self.config(state='normal')
Change the state of an editable widget, whether disable or enabled :param flag: set to ``True`` to disable and ``False`` to enable
hoverset/ui/widgets.py
disabled
ObaraEmmanuel/Formation
71
python
def disabled(self, flag): '\n Change the state of an editable widget, whether disable or enabled\n\n :param flag: set to ``True`` to disable and ``False`` to enable\n ' if flag: self.config(state='disabled') else: self.config(state='normal')
def disabled(self, flag): '\n Change the state of an editable widget, whether disable or enabled\n\n :param flag: set to ``True`` to disable and ``False`` to enable\n ' if flag: self.config(state='disabled') else: self.config(state='normal')<|docstring|>Change the state ...
79f109a9a2795b6b1320ca4e14fdcf0f33872fcdcfd08fb3a33513609390202e
def get(self): '\n Overrides default get method which often gives an outdated value\n and instead returns latest value straight from the control variable\n\n :return: current value of editable widget, type depends on the\n control variable type\n ' return self._var.get()
Overrides default get method which often gives an outdated value and instead returns latest value straight from the control variable :return: current value of editable widget, type depends on the control variable type
hoverset/ui/widgets.py
get
ObaraEmmanuel/Formation
71
python
def get(self): '\n Overrides default get method which often gives an outdated value\n and instead returns latest value straight from the control variable\n\n :return: current value of editable widget, type depends on the\n control variable type\n ' return self._var.get()
def get(self): '\n Overrides default get method which often gives an outdated value\n and instead returns latest value straight from the control variable\n\n :return: current value of editable widget, type depends on the\n control variable type\n ' return self._var.get()<|do...
2e5e4d378f6046aedb3244eb9085818ab96ab8258eb09933179a601ce5a3d561
def set_up_context(self, templates, **cnf): '\n Set up a context menu using the template which is a tuple\n containing items in the format\n ``(type, label, icon, command, additional_configuration={})``\n\n :param templates: menu template\n :param cnf: config for menu\n ' ...
Set up a context menu using the template which is a tuple containing items in the format ``(type, label, icon, command, additional_configuration={})`` :param templates: menu template :param cnf: config for menu
hoverset/ui/widgets.py
set_up_context
ObaraEmmanuel/Formation
71
python
def set_up_context(self, templates, **cnf): '\n Set up a context menu using the template which is a tuple\n containing items in the format\n ``(type, label, icon, command, additional_configuration={})``\n\n :param templates: menu template\n :param cnf: config for menu\n ' ...
def set_up_context(self, templates, **cnf): '\n Set up a context menu using the template which is a tuple\n containing items in the format\n ``(type, label, icon, command, additional_configuration={})``\n\n :param templates: menu template\n :param cnf: config for menu\n ' ...
7a7635607fd462739bd79287c78c7236181369988838afdfdeba5aa3a091bd54
@staticmethod def popup(event, menu): '\n Show context menu at event location\n\n :param event: event whose location is to be used\n :param menu: menu to be displayed\n ' MenuUtils.popup(event, menu)
Show context menu at event location :param event: event whose location is to be used :param menu: menu to be displayed
hoverset/ui/widgets.py
popup
ObaraEmmanuel/Formation
71
python
@staticmethod def popup(event, menu): '\n Show context menu at event location\n\n :param event: event whose location is to be used\n :param menu: menu to be displayed\n ' MenuUtils.popup(event, menu)
@staticmethod def popup(event, menu): '\n Show context menu at event location\n\n :param event: event whose location is to be used\n :param menu: menu to be displayed\n ' MenuUtils.popup(event, menu)<|docstring|>Show context menu at event location :param event: event whose location ...
6574ddd4931b7e7e05edbdbbd34c4d699df5c500d339aa121e1d7fdb69b216e3
@staticmethod def add_context_menu(menu, widget): '\n Setup context menu for other widgets not extending this mixin\n\n :param menu: menu to be set up as context\n :param widget: widget to context menu on\n ' MenuUtils.bind_context(widget, (lambda event: ContextMenuMixin.popup(event,...
Setup context menu for other widgets not extending this mixin :param menu: menu to be set up as context :param widget: widget to context menu on
hoverset/ui/widgets.py
add_context_menu
ObaraEmmanuel/Formation
71
python
@staticmethod def add_context_menu(menu, widget): '\n Setup context menu for other widgets not extending this mixin\n\n :param menu: menu to be set up as context\n :param widget: widget to context menu on\n ' MenuUtils.bind_context(widget, (lambda event: ContextMenuMixin.popup(event,...
@staticmethod def add_context_menu(menu, widget): '\n Setup context menu for other widgets not extending this mixin\n\n :param menu: menu to be set up as context\n :param widget: widget to context menu on\n ' MenuUtils.bind_context(widget, (lambda event: ContextMenuMixin.popup(event,...
cd64c6bcd7da5b836399cd95c375c032b8343056906966f22872fd47e03efbe2
def get_geometry(self): '\n Get window geometry parsed into a tuple\n\n :return: tuple containing (width, height, x, y) in that order\n ' search = self.GEOMETRY_RGX.search(self.geometry()) if (search is None): return None return tuple(map(int, search.groups()))
Get window geometry parsed into a tuple :return: tuple containing (width, height, x, y) in that order
hoverset/ui/widgets.py
get_geometry
ObaraEmmanuel/Formation
71
python
def get_geometry(self): '\n Get window geometry parsed into a tuple\n\n :return: tuple containing (width, height, x, y) in that order\n ' search = self.GEOMETRY_RGX.search(self.geometry()) if (search is None): return None return tuple(map(int, search.groups()))
def get_geometry(self): '\n Get window geometry parsed into a tuple\n\n :return: tuple containing (width, height, x, y) in that order\n ' search = self.GEOMETRY_RGX.search(self.geometry()) if (search is None): return None return tuple(map(int, search.groups()))<|docstring|>G...
db5f5314cb5a98477a815b2ac111213e1a0f9af2167c0593c887c84660ebe19c
def get_pos(self, widget, **kwargs): '\n Get the position of a popup window anchored around a widget\n\n :param widget: A tk widget to be used as an anchor point\n :param kwargs:\n -side: a string value "nw", "ne", "sw", "se", "auto" representing where the\n dialog is to...
Get the position of a popup window anchored around a widget :param widget: A tk widget to be used as an anchor point :param kwargs: -side: a string value "nw", "ne", "sw", "se", "auto" representing where the dialog is to be position relative the anchor widget -padding: an integer indicating how much spac...
hoverset/ui/widgets.py
get_pos
ObaraEmmanuel/Formation
71
python
def get_pos(self, widget, **kwargs): '\n Get the position of a popup window anchored around a widget\n\n :param widget: A tk widget to be used as an anchor point\n :param kwargs:\n -side: a string value "nw", "ne", "sw", "se", "auto" representing where the\n dialog is to...
def get_pos(self, widget, **kwargs): '\n Get the position of a popup window anchored around a widget\n\n :param widget: A tk widget to be used as an anchor point\n :param kwargs:\n -side: a string value "nw", "ne", "sw", "se", "auto" representing where the\n dialog is to...
00f483579a72f1307d32e115d9f7a7f9a7887c65b7f3c8e5ec584cd13e206565
def post(self, widget, **kwargs): '\n Display a popup window anchored around a widget\n\n :param widget: A tk widget to be used as an anchor point\n :param kwargs:\n -side: a string value "nw", "ne", "sw", "se", "auto" representing where the\n dialog is to be position re...
Display a popup window anchored around a widget :param widget: A tk widget to be used as an anchor point :param kwargs: -side: a string value "nw", "ne", "sw", "se", "auto" representing where the dialog is to be position relative the anchor widget -padding: an integer indicating how much space to allow b...
hoverset/ui/widgets.py
post
ObaraEmmanuel/Formation
71
python
def post(self, widget, **kwargs): '\n Display a popup window anchored around a widget\n\n :param widget: A tk widget to be used as an anchor point\n :param kwargs:\n -side: a string value "nw", "ne", "sw", "se", "auto" representing where the\n dialog is to be position re...
def post(self, widget, **kwargs): '\n Display a popup window anchored around a widget\n\n :param widget: A tk widget to be used as an anchor point\n :param kwargs:\n -side: a string value "nw", "ne", "sw", "se", "auto" representing where the\n dialog is to be position re...
e61593f805e5fe218683943b1c91a8d9bfa4891bcb42babf0e2bdde970a25a33
def __init__(self, style: StyleDelegator, xy: tuple, render, master=None): '\n Create a tooltip window\n\n :param style: A style delegator object to allow use of hoverset widgets inside the window\n :param xy: a tuple representing the current cursor position\n :param render: A function t...
Create a tooltip window :param style: A style delegator object to allow use of hoverset widgets inside the window :param xy: a tuple representing the current cursor position :param render: A function taking accepting one argument (the tooltip window) which draws content into the tooltip window :param master: The paren...
hoverset/ui/widgets.py
__init__
ObaraEmmanuel/Formation
71
python
def __init__(self, style: StyleDelegator, xy: tuple, render, master=None): '\n Create a tooltip window\n\n :param style: A style delegator object to allow use of hoverset widgets inside the window\n :param xy: a tuple representing the current cursor position\n :param render: A function t...
def __init__(self, style: StyleDelegator, xy: tuple, render, master=None): '\n Create a tooltip window\n\n :param style: A style delegator object to allow use of hoverset widgets inside the window\n :param xy: a tuple representing the current cursor position\n :param render: A function t...
08ecc464b7800f95003ec77e0f5f63e281101aabe2cefb717ccb24e9f51f8a1f
def setup(self, _=None): '\n It performs the necessary dependency injection and event bindings and\n set up.\n ' self._allow_drag = False self._drag_setup = False self._tooltip_text = None self._tooltip_ev = None self._tooltip_win = None self._tooltip_bound = False s...
It performs the necessary dependency injection and event bindings and set up.
hoverset/ui/widgets.py
setup
ObaraEmmanuel/Formation
71
python
def setup(self, _=None): '\n It performs the necessary dependency injection and event bindings and\n set up.\n ' self._allow_drag = False self._drag_setup = False self._tooltip_text = None self._tooltip_ev = None self._tooltip_win = None self._tooltip_bound = False s...
def setup(self, _=None): '\n It performs the necessary dependency injection and event bindings and\n set up.\n ' self._allow_drag = False self._drag_setup = False self._tooltip_text = None self._tooltip_ev = None self._tooltip_win = None self._tooltip_bound = False s...
f16490034f5ab829ea3b805e9296bfc2ec7e258bef374b11f0fe45ea7c2417b5
@property def allow_drag(self): '\n Determines whether widgets can be dragged in-case of a drag drop event\n ' return self._allow_drag
Determines whether widgets can be dragged in-case of a drag drop event
hoverset/ui/widgets.py
allow_drag
ObaraEmmanuel/Formation
71
python
@property def allow_drag(self): '\n \n ' return self._allow_drag
@property def allow_drag(self): '\n \n ' return self._allow_drag<|docstring|>Determines whether widgets can be dragged in-case of a drag drop event<|endoftext|>
caf48cd1fb1969b28c54da80e017e4e480c4bbd3391112ffdb553aaffaa94842
@allow_drag.setter def allow_drag(self, flag: bool): '\n Call this method to make the widget allow or disallow drag and drop\n\n :param flag: set to True to allow drag drop and False to disallow\n ' self._allow_drag = flag if (self._allow_drag and (not self._drag_setup)): self.b...
Call this method to make the widget allow or disallow drag and drop :param flag: set to True to allow drag drop and False to disallow
hoverset/ui/widgets.py
allow_drag
ObaraEmmanuel/Formation
71
python
@allow_drag.setter def allow_drag(self, flag: bool): '\n Call this method to make the widget allow or disallow drag and drop\n\n :param flag: set to True to allow drag drop and False to disallow\n ' self._allow_drag = flag if (self._allow_drag and (not self._drag_setup)): self.b...
@allow_drag.setter def allow_drag(self, flag: bool): '\n Call this method to make the widget allow or disallow drag and drop\n\n :param flag: set to True to allow drag drop and False to disallow\n ' self._allow_drag = flag if (self._allow_drag and (not self._drag_setup)): self.b...
2cc12a3a19b323ea9c3ab5216fbc838215b2dc80fc2598653825e270b89d6652
def _drag_handler(self, event): '\n Handle drag drop events\n :param event: tk event\n ' if (not self.allow_drag): return if (event.type.value == '6'): if ((event.state & EventMask.MOUSE_BUTTON_1) and (self.window.drag_window is None)): self.window.drag_conte...
Handle drag drop events :param event: tk event
hoverset/ui/widgets.py
_drag_handler
ObaraEmmanuel/Formation
71
python
def _drag_handler(self, event): '\n Handle drag drop events\n :param event: tk event\n ' if (not self.allow_drag): return if (event.type.value == '6'): if ((event.state & EventMask.MOUSE_BUTTON_1) and (self.window.drag_window is None)): self.window.drag_conte...
def _drag_handler(self, event): '\n Handle drag drop events\n :param event: tk event\n ' if (not self.allow_drag): return if (event.type.value == '6'): if ((event.state & EventMask.MOUSE_BUTTON_1) and (self.window.drag_window is None)): self.window.drag_conte...
6935662be42917f3fc6f7e2cbf15adc34373a5fee0302d6b20f7102a1e02a919
def accept_context(self, context): '\n This method is called when a drag drop operation is completed to allow the dropped object to be handled\n\n :param context: Object being dropped at the widget\n ' logging.info(f'Accepted context {context}')
This method is called when a drag drop operation is completed to allow the dropped object to be handled :param context: Object being dropped at the widget
hoverset/ui/widgets.py
accept_context
ObaraEmmanuel/Formation
71
python
def accept_context(self, context): '\n This method is called when a drag drop operation is completed to allow the dropped object to be handled\n\n :param context: Object being dropped at the widget\n ' logging.info(f'Accepted context {context}')
def accept_context(self, context): '\n This method is called when a drag drop operation is completed to allow the dropped object to be handled\n\n :param context: Object being dropped at the widget\n ' logging.info(f'Accepted context {context}')<|docstring|>This method is called when a drag...
1d5d16c7dfe37a27dab77a912aac01eb20d49619d1442982898a90e49da34c1e
def render_drag(self, window): '\n Override this method to create and position widgets on the drag shadow window (The object displayed\n as the widget is dragged around). Create your custom widget hierarchy and position\n it in window.\n\n :param window: The drag window provided by the d...
Override this method to create and position widgets on the drag shadow window (The object displayed as the widget is dragged around). Create your custom widget hierarchy and position it in window. :param window: The drag window provided by the drag manager that should be used as the widget master :return: None
hoverset/ui/widgets.py
render_drag
ObaraEmmanuel/Formation
71
python
def render_drag(self, window): '\n Override this method to create and position widgets on the drag shadow window (The object displayed\n as the widget is dragged around). Create your custom widget hierarchy and position\n it in window.\n\n :param window: The drag window provided by the d...
def render_drag(self, window): '\n Override this method to create and position widgets on the drag shadow window (The object displayed\n as the widget is dragged around). Create your custom widget hierarchy and position\n it in window.\n\n :param window: The drag window provided by the d...
f1ab6914be3bd9ac84e4555489d7ca7bb8eb6e2c3c7a3165ebe641f96fedd0e2
def config_all(self, cnf=None, **kwargs): '\n A way to config all the children of a widget. Especially useful for compound widgets where styles need to be\n applied uniformly or following a custom approach to all contained child widgets. Override this method to\n customize its behaviour to suit...
A way to config all the children of a widget. Especially useful for compound widgets where styles need to be applied uniformly or following a custom approach to all contained child widgets. Override this method to customize its behaviour to suit your widget. It defaults to the normal config :param cnf: :class:`dict` c...
hoverset/ui/widgets.py
config_all
ObaraEmmanuel/Formation
71
python
def config_all(self, cnf=None, **kwargs): '\n A way to config all the children of a widget. Especially useful for compound widgets where styles need to be\n applied uniformly or following a custom approach to all contained child widgets. Override this method to\n customize its behaviour to suit...
def config_all(self, cnf=None, **kwargs): '\n A way to config all the children of a widget. Especially useful for compound widgets where styles need to be\n applied uniformly or following a custom approach to all contained child widgets. Override this method to\n customize its behaviour to suit...
5e882513b01d6b1032a3b2c65c28a11d0bff8f00ac88891d0ad73934d8853e01
def bind_all(self, sequence=None, func=None, add=None): '\n Total override of the tkinter bind_all method allowing events to be bounds to all the children of a widget\n and not the entire application. This is useful for compound widgets which need to behave as a single entity\n\n :param sequenc...
Total override of the tkinter bind_all method allowing events to be bounds to all the children of a widget and not the entire application. This is useful for compound widgets which need to behave as a single entity :param sequence: Event sequence to be bound :param func: Callback function :param add: specifies whether...
hoverset/ui/widgets.py
bind_all
ObaraEmmanuel/Formation
71
python
def bind_all(self, sequence=None, func=None, add=None): '\n Total override of the tkinter bind_all method allowing events to be bounds to all the children of a widget\n and not the entire application. This is useful for compound widgets which need to behave as a single entity\n\n :param sequenc...
def bind_all(self, sequence=None, func=None, add=None): '\n Total override of the tkinter bind_all method allowing events to be bounds to all the children of a widget\n and not the entire application. This is useful for compound widgets which need to behave as a single entity\n\n :param sequenc...
ab07064c27161357a72f33f04b30121ce0c3eb2c7d58b7346cbc6e12fc0488f4
@property def width(self) -> int: '\n Wrapper property of the tk Misc class w.winfo_width() method for quick access to widget width property in pixels\n\n :return: width of widget\n ' return self.winfo_width()
Wrapper property of the tk Misc class w.winfo_width() method for quick access to widget width property in pixels :return: width of widget
hoverset/ui/widgets.py
width
ObaraEmmanuel/Formation
71
python
@property def width(self) -> int: '\n Wrapper property of the tk Misc class w.winfo_width() method for quick access to widget width property in pixels\n\n :return: width of widget\n ' return self.winfo_width()
@property def width(self) -> int: '\n Wrapper property of the tk Misc class w.winfo_width() method for quick access to widget width property in pixels\n\n :return: width of widget\n ' return self.winfo_width()<|docstring|>Wrapper property of the tk Misc class w.winfo_width() method for quic...
09fcf6fb68f8a4cede4283f778072d3c69df74824698a1b73eb5f7be04a6f073
@property def height(self) -> int: '\n Wrapper property of the tk Misc class w.winfo_height() method for quick access to widget height property in\n pixels\n :return: int\n ' return self.winfo_height()
Wrapper property of the tk Misc class w.winfo_height() method for quick access to widget height property in pixels :return: int
hoverset/ui/widgets.py
height
ObaraEmmanuel/Formation
71
python
@property def height(self) -> int: '\n Wrapper property of the tk Misc class w.winfo_height() method for quick access to widget height property in\n pixels\n :return: int\n ' return self.winfo_height()
@property def height(self) -> int: '\n Wrapper property of the tk Misc class w.winfo_height() method for quick access to widget height property in\n pixels\n :return: int\n ' return self.winfo_height()<|docstring|>Wrapper property of the tk Misc class w.winfo_height() method for quic...
3ca4ac5729a2b96590e73049f4b0d5e0cd7b74eb333f413525e6d97647b4eeaf
def disabled(self, flag: bool) -> None: '\n Set the state of a widget to disabled .Override this method for compound widgets to obtain the\n expected behaviour as the state is by default only applied to the containing/parent widget.\n\n :param flag: True or False\n :return:\n ' ...
Set the state of a widget to disabled .Override this method for compound widgets to obtain the expected behaviour as the state is by default only applied to the containing/parent widget. :param flag: True or False :return:
hoverset/ui/widgets.py
disabled
ObaraEmmanuel/Formation
71
python
def disabled(self, flag: bool) -> None: '\n Set the state of a widget to disabled .Override this method for compound widgets to obtain the\n expected behaviour as the state is by default only applied to the containing/parent widget.\n\n :param flag: True or False\n :return:\n ' ...
def disabled(self, flag: bool) -> None: '\n Set the state of a widget to disabled .Override this method for compound widgets to obtain the\n expected behaviour as the state is by default only applied to the containing/parent widget.\n\n :param flag: True or False\n :return:\n ' ...
c67a56653bcc861765008c38b238ac4686dd25ae35a381774d8b6cc3764e8906
@staticmethod def containing(x, y, widget): '\n A safer alternative for tk winfo_containing that does extra checks\n just in case the widget at the target position is not recognized\n or managed by our tk instance\n\n :param x: x coordinate\n :param y: y coordinate\n :param...
A safer alternative for tk winfo_containing that does extra checks just in case the widget at the target position is not recognized or managed by our tk instance :param x: x coordinate :param y: y coordinate :param widget: widget to be checked. :return: name of widget at position
hoverset/ui/widgets.py
containing
ObaraEmmanuel/Formation
71
python
@staticmethod def containing(x, y, widget): '\n A safer alternative for tk winfo_containing that does extra checks\n just in case the widget at the target position is not recognized\n or managed by our tk instance\n\n :param x: x coordinate\n :param y: y coordinate\n :param...
@staticmethod def containing(x, y, widget): '\n A safer alternative for tk winfo_containing that does extra checks\n just in case the widget at the target position is not recognized\n or managed by our tk instance\n\n :param x: x coordinate\n :param y: y coordinate\n :param...
aef6683043ff269259649bfa77cbdb7235cefe0bccc7cffc1d76974a79b2a69c
@staticmethod def event_in(event, widget): '\n Check whether event has occurred within a widget\n\n :param event: event object containing position data\n :param widget: the widget to be checked\n :return: True if event occurred in within widget else False\n ' (x, y) = (event.x...
Check whether event has occurred within a widget :param event: event object containing position data :param widget: the widget to be checked :return: True if event occurred in within widget else False
hoverset/ui/widgets.py
event_in
ObaraEmmanuel/Formation
71
python
@staticmethod def event_in(event, widget): '\n Check whether event has occurred within a widget\n\n :param event: event object containing position data\n :param widget: the widget to be checked\n :return: True if event occurred in within widget else False\n ' (x, y) = (event.x...
@staticmethod def event_in(event, widget): '\n Check whether event has occurred within a widget\n\n :param event: event object containing position data\n :param widget: the widget to be checked\n :return: True if event occurred in within widget else False\n ' (x, y) = (event.x...
61085fe4a92ccc6e633af1848bc176ba68b0d120b3e10cdbee1769022957b8ea
@classmethod def event_first(cls, event, widget, class_: type, ignore=None): "\n Gets the first widget belonging to `class\\_` at the event position. This widget\n may be the top widget or it's parents and grandparents deep down the hierarchy.\n Useful when you want to ignore widgets and cascad...
Gets the first widget belonging to `class\_` at the event position. This widget may be the top widget or it's parents and grandparents deep down the hierarchy. Useful when you want to ignore widgets and cascade the event to a specific lower level widget. :param event: a tk event object containing the position data :pa...
hoverset/ui/widgets.py
event_first
ObaraEmmanuel/Formation
71
python
@classmethod def event_first(cls, event, widget, class_: type, ignore=None): "\n Gets the first widget belonging to `class\\_` at the event position. This widget\n may be the top widget or it's parents and grandparents deep down the hierarchy.\n Useful when you want to ignore widgets and cascad...
@classmethod def event_first(cls, event, widget, class_: type, ignore=None): "\n Gets the first widget belonging to `class\\_` at the event position. This widget\n may be the top widget or it's parents and grandparents deep down the hierarchy.\n Useful when you want to ignore widgets and cascad...
9565db008df4d2d31bc7827adfebce38e694e7de3e3f028876cc5cf9b144acbc
@classmethod def ancestor_first(cls, start_from, class_: type, ignore=None): "\n Gets the first widget belonging to `class\\_` starting from `start_from`. This widget\n may be the top widget or it's parents and grandparents deep down the hierarchy.\n Useful when you want to access a widget's fi...
Gets the first widget belonging to `class\_` starting from `start_from`. This widget may be the top widget or it's parents and grandparents deep down the hierarchy. Useful when you want to access a widget's first ancestor of a given type down the stacking order :param start_from: widget whose ancestor is to be determi...
hoverset/ui/widgets.py
ancestor_first
ObaraEmmanuel/Formation
71
python
@classmethod def ancestor_first(cls, start_from, class_: type, ignore=None): "\n Gets the first widget belonging to `class\\_` starting from `start_from`. This widget\n may be the top widget or it's parents and grandparents deep down the hierarchy.\n Useful when you want to access a widget's fi...
@classmethod def ancestor_first(cls, start_from, class_: type, ignore=None): "\n Gets the first widget belonging to `class\\_` starting from `start_from`. This widget\n may be the top widget or it's parents and grandparents deep down the hierarchy.\n Useful when you want to access a widget's fi...
2b8debd3706789b9703e41cc3b0ae81fb52b83b990ecae924fad5ba714904a12
def absolute_bounds(self): '\n Get the position of the widget on the screen\n\n :return: a tuple containing the bounding box of the widget (x1, y2, x2, y2)\n ' self.update_idletasks() return (self.winfo_rootx(), self.winfo_rooty(), (self.winfo_rootx() + self.width), (self.winfo_rooty() ...
Get the position of the widget on the screen :return: a tuple containing the bounding box of the widget (x1, y2, x2, y2)
hoverset/ui/widgets.py
absolute_bounds
ObaraEmmanuel/Formation
71
python
def absolute_bounds(self): '\n Get the position of the widget on the screen\n\n :return: a tuple containing the bounding box of the widget (x1, y2, x2, y2)\n ' self.update_idletasks() return (self.winfo_rootx(), self.winfo_rooty(), (self.winfo_rootx() + self.width), (self.winfo_rooty() ...
def absolute_bounds(self): '\n Get the position of the widget on the screen\n\n :return: a tuple containing the bounding box of the widget (x1, y2, x2, y2)\n ' self.update_idletasks() return (self.winfo_rootx(), self.winfo_rooty(), (self.winfo_rootx() + self.width), (self.winfo_rooty() ...
c738f2788b17d42f0520ec39fa12200260bb6b8dbbba71a5216f7f0106df9296
@staticmethod def clone_to(parent, widget): '\n Clone a tkinter widget to a different parent. Tkinter widget parents cannot be changed directly. This method\n performs recursive cloning of widget hierarchies. For cloning of custom tkinter widgets it is advisable to\n use clone method instead to...
Clone a tkinter widget to a different parent. Tkinter widget parents cannot be changed directly. This method performs recursive cloning of widget hierarchies. For cloning of custom tkinter widgets it is advisable to use clone method instead to specify your clone procedure :param parent: The new parent for cloned widge...
hoverset/ui/widgets.py
clone_to
ObaraEmmanuel/Formation
71
python
@staticmethod def clone_to(parent, widget): '\n Clone a tkinter widget to a different parent. Tkinter widget parents cannot be changed directly. This method\n performs recursive cloning of widget hierarchies. For cloning of custom tkinter widgets it is advisable to\n use clone method instead to...
@staticmethod def clone_to(parent, widget): '\n Clone a tkinter widget to a different parent. Tkinter widget parents cannot be changed directly. This method\n performs recursive cloning of widget hierarchies. For cloning of custom tkinter widgets it is advisable to\n use clone method instead to...
055f779073596502280e5f7db429e79d6773ea18961a0e27ec70b70c4cd1b4cf
def clone(self, parent): '\n Generates a clone of the current widget for the given parent. Override this method in a custom widget to\n provide a custom implementation for cloning\n\n :param parent: A tk widget which will be clones parent\n :return: A clone of the current widget\n ...
Generates a clone of the current widget for the given parent. Override this method in a custom widget to provide a custom implementation for cloning :param parent: A tk widget which will be clones parent :return: A clone of the current widget
hoverset/ui/widgets.py
clone
ObaraEmmanuel/Formation
71
python
def clone(self, parent): '\n Generates a clone of the current widget for the given parent. Override this method in a custom widget to\n provide a custom implementation for cloning\n\n :param parent: A tk widget which will be clones parent\n :return: A clone of the current widget\n ...
def clone(self, parent): '\n Generates a clone of the current widget for the given parent. Override this method in a custom widget to\n provide a custom implementation for cloning\n\n :param parent: A tk widget which will be clones parent\n :return: A clone of the current widget\n ...
a92833a9340544cdeb773eb796a99492dbf722f100ccc6b606f2adb74f9dbce9
@staticmethod def copy_config(from_, to): '\n Copy styles and configuration from one widget to another\n\n :param from_: Widget whose configuration is to be copied\n :param to: Widget receiving the copied configurations\n :return: None\n ' if (not from_.configure()): r...
Copy styles and configuration from one widget to another :param from_: Widget whose configuration is to be copied :param to: Widget receiving the copied configurations :return: None
hoverset/ui/widgets.py
copy_config
ObaraEmmanuel/Formation
71
python
@staticmethod def copy_config(from_, to): '\n Copy styles and configuration from one widget to another\n\n :param from_: Widget whose configuration is to be copied\n :param to: Widget receiving the copied configurations\n :return: None\n ' if (not from_.configure()): r...
@staticmethod def copy_config(from_, to): '\n Copy styles and configuration from one widget to another\n\n :param from_: Widget whose configuration is to be copied\n :param to: Widget receiving the copied configurations\n :return: None\n ' if (not from_.configure()): r...
780f8ad77aea2f3f71b87e99be56756c065bf69d35a4082c93df6808386b4b25
def tooltip(self, text, delay=1500): '\n Set the tooltip text for a widget\n\n :param text: Tooltip text to be displayed\n :param delay: Amount of time in milliseconds it takes for the tooltip to appear\n :return: None\n ' if (not self._tooltip_bound): self._setup_tool...
Set the tooltip text for a widget :param text: Tooltip text to be displayed :param delay: Amount of time in milliseconds it takes for the tooltip to appear :return: None
hoverset/ui/widgets.py
tooltip
ObaraEmmanuel/Formation
71
python
def tooltip(self, text, delay=1500): '\n Set the tooltip text for a widget\n\n :param text: Tooltip text to be displayed\n :param delay: Amount of time in milliseconds it takes for the tooltip to appear\n :return: None\n ' if (not self._tooltip_bound): self._setup_tool...
def tooltip(self, text, delay=1500): '\n Set the tooltip text for a widget\n\n :param text: Tooltip text to be displayed\n :param delay: Amount of time in milliseconds it takes for the tooltip to appear\n :return: None\n ' if (not self._tooltip_bound): self._setup_tool...
6b937b229d857f5aecbe4b90f9d4938ff148c8b9b370cb20986f36f8ca26f404
def render_tooltip(self, window): '\n Create a custom tooltip body by overriding this method. The default rendering displays\n a simple Label with the tooltip text\n\n :param window: The tooltip window instance to be used as parent for the custom elements\n :return: None\n ' t...
Create a custom tooltip body by overriding this method. The default rendering displays a simple Label with the tooltip text :param window: The tooltip window instance to be used as parent for the custom elements :return: None
hoverset/ui/widgets.py
render_tooltip
ObaraEmmanuel/Formation
71
python
def render_tooltip(self, window): '\n Create a custom tooltip body by overriding this method. The default rendering displays\n a simple Label with the tooltip text\n\n :param window: The tooltip window instance to be used as parent for the custom elements\n :return: None\n ' t...
def render_tooltip(self, window): '\n Create a custom tooltip body by overriding this method. The default rendering displays\n a simple Label with the tooltip text\n\n :param window: The tooltip window instance to be used as parent for the custom elements\n :return: None\n ' t...
b5f45045540fbce09f2a084c26040c0b4cd3f73623bcba753f82f68030a29526
def set_scrollbars(self, flag): '\n :param flag: set to tkinter.X to enable horizontal scrollbar, tkinter.Y to enable vertical scrollbar,\n tkinter.BOTH to enable both scrollbars and None to disable all scrollbars. The default is tkinter.Y for\n the vertical scrollbar.\n :return: Non...
:param flag: set to tkinter.X to enable horizontal scrollbar, tkinter.Y to enable vertical scrollbar, tkinter.BOTH to enable both scrollbars and None to disable all scrollbars. The default is tkinter.Y for the vertical scrollbar. :return: None
hoverset/ui/widgets.py
set_scrollbars
ObaraEmmanuel/Formation
71
python
def set_scrollbars(self, flag): '\n :param flag: set to tkinter.X to enable horizontal scrollbar, tkinter.Y to enable vertical scrollbar,\n tkinter.BOTH to enable both scrollbars and None to disable all scrollbars. The default is tkinter.Y for\n the vertical scrollbar.\n :return: Non...
def set_scrollbars(self, flag): '\n :param flag: set to tkinter.X to enable horizontal scrollbar, tkinter.Y to enable vertical scrollbar,\n tkinter.BOTH to enable both scrollbars and None to disable all scrollbars. The default is tkinter.Y for\n the vertical scrollbar.\n :return: Non...
8e496ddfa1dd08ca6aec3cb183f5e0f188eb0dfb69b1ce1268f2fa8abfae30fb
def load_styles(self, theme): '\n Accepts a path to a cascading style sheet containing the styles used by the widgets. The style dependency is\n loaded here\n\n :param theme: name of the theme to be loaded with or without the .css extension\n :return: A :class:`hoverset.ui.styles.StyleDe...
Accepts a path to a cascading style sheet containing the styles used by the widgets. The style dependency is loaded here :param theme: name of the theme to be loaded with or without the .css extension :return: A :class:`hoverset.ui.styles.StyleDelegator` object
hoverset/ui/widgets.py
load_styles
ObaraEmmanuel/Formation
71
python
def load_styles(self, theme): '\n Accepts a path to a cascading style sheet containing the styles used by the widgets. The style dependency is\n loaded here\n\n :param theme: name of the theme to be loaded with or without the .css extension\n :return: A :class:`hoverset.ui.styles.StyleDe...
def load_styles(self, theme): '\n Accepts a path to a cascading style sheet containing the styles used by the widgets. The style dependency is\n loaded here\n\n :param theme: name of the theme to be loaded with or without the .css extension\n :return: A :class:`hoverset.ui.styles.StyleDe...
43fe19ee8c4590e702522add40b873cc74945850478150cd2f1744a44e3b8474
@property def style(self): '\n Get the currently loaded css\n :return: a :class:`hoverset.ui.styles.StyleDelegator`\n ' return self._style
Get the currently loaded css :return: a :class:`hoverset.ui.styles.StyleDelegator`
hoverset/ui/widgets.py
style
ObaraEmmanuel/Formation
71
python
@property def style(self): '\n Get the currently loaded css\n :return: a :class:`hoverset.ui.styles.StyleDelegator`\n ' return self._style
@property def style(self): '\n Get the currently loaded css\n :return: a :class:`hoverset.ui.styles.StyleDelegator`\n ' return self._style<|docstring|>Get the currently loaded css :return: a :class:`hoverset.ui.styles.StyleDelegator`<|endoftext|>
1ef392362707381a6b9bd607a337e82e70a8517989676bca4ffea4cb5fef2a00
def unbind_all(self, sequence, func_id=None): '\n Unbind sequence from immediate children\n\n :param sequence: sequence to be unbound\n :param func_id: function id if any to unbind a specific callback\n :return:\n ' for child in self.winfo_children(): try: ...
Unbind sequence from immediate children :param sequence: sequence to be unbound :param func_id: function id if any to unbind a specific callback :return:
hoverset/ui/widgets.py
unbind_all
ObaraEmmanuel/Formation
71
python
def unbind_all(self, sequence, func_id=None): '\n Unbind sequence from immediate children\n\n :param sequence: sequence to be unbound\n :param func_id: function id if any to unbind a specific callback\n :return:\n ' for child in self.winfo_children(): try: ...
def unbind_all(self, sequence, func_id=None): '\n Unbind sequence from immediate children\n\n :param sequence: sequence to be unbound\n :param func_id: function id if any to unbind a specific callback\n :return:\n ' for child in self.winfo_children(): try: ...
54d7e61b94c7a4cc8753bdc601cb4db000b68b2b87ab6193844775c0b9f9e12d
def show(self): '\n The window is initialized as invisible to allow you to set it up first. Call this method to make it visible\n ' self.wm_attributes('-alpha', 1.0)
The window is initialized as invisible to allow you to set it up first. Call this method to make it visible
hoverset/ui/widgets.py
show
ObaraEmmanuel/Formation
71
python
def show(self): '\n \n ' self.wm_attributes('-alpha', 1.0)
def show(self): '\n \n ' self.wm_attributes('-alpha', 1.0)<|docstring|>The window is initialized as invisible to allow you to set it up first. Call this method to make it visible<|endoftext|>
f529628819b5a0c1de849ed8acde840585c1ca948e93ccb5b9f4a1e838e97298
def on_click(self, callback, *args, **kwargs): '\n A more elaborate event binding that binds mouse clicks, return button and\n space button useful for mouse free operation. The callback should accept\n an event argument.\n\n :param callback: callback function to be bound\n :param ...
A more elaborate event binding that binds mouse clicks, return button and space button useful for mouse free operation. The callback should accept an event argument. :param callback: callback function to be bound :param args: arguments to be passed to callback :param kwargs: keyword arguments to be passed to callback
hoverset/ui/widgets.py
on_click
ObaraEmmanuel/Formation
71
python
def on_click(self, callback, *args, **kwargs): '\n A more elaborate event binding that binds mouse clicks, return button and\n space button useful for mouse free operation. The callback should accept\n an event argument.\n\n :param callback: callback function to be bound\n :param ...
def on_click(self, callback, *args, **kwargs): '\n A more elaborate event binding that binds mouse clicks, return button and\n space button useful for mouse free operation. The callback should accept\n an event argument.\n\n :param callback: callback function to be bound\n :param ...
211970f2b8d17f41e27b4c3b50f7fc5412951462e023addba602071b36b2e1f8
def set(self, value): '\n Set the boolean value directly\n\n :param value: boolean value to be set\n ' self._var.set(value)
Set the boolean value directly :param value: boolean value to be set
hoverset/ui/widgets.py
set
ObaraEmmanuel/Formation
71
python
def set(self, value): '\n Set the boolean value directly\n\n :param value: boolean value to be set\n ' self._var.set(value)
def set(self, value): '\n Set the boolean value directly\n\n :param value: boolean value to be set\n ' self._var.set(value)<|docstring|>Set the boolean value directly :param value: boolean value to be set<|endoftext|>
a16fbef8ade65128e2e1561469cad52d4a52e46d359360b54ced61de474dbe4e
def get(self): '\n Get the selection state\n\n :return: ``True`` if selected else ``False``\n ' return self._var.get()
Get the selection state :return: ``True`` if selected else ``False``
hoverset/ui/widgets.py
get
ObaraEmmanuel/Formation
71
python
def get(self): '\n Get the selection state\n\n :return: ``True`` if selected else ``False``\n ' return self._var.get()
def get(self): '\n Get the selection state\n\n :return: ``True`` if selected else ``False``\n ' return self._var.get()<|docstring|>Get the selection state :return: ``True`` if selected else ``False``<|endoftext|>
2d115315b2f5e928c2ae512c60b13d7074773bb2c0009c3dc891e26b846ef9cf
def config_all(self, **cnf): '\n Use this method to correctly configure all radio buttons in the\n group\n\n :param cnf: config options\n :return: None\n ' self.config(clean_styles(self, cnf)) self._label.config(clean_styles(self._label, cnf)) if len(self._radio_button...
Use this method to correctly configure all radio buttons in the group :param cnf: config options :return: None
hoverset/ui/widgets.py
config_all
ObaraEmmanuel/Formation
71
python
def config_all(self, **cnf): '\n Use this method to correctly configure all radio buttons in the\n group\n\n :param cnf: config options\n :return: None\n ' self.config(clean_styles(self, cnf)) self._label.config(clean_styles(self._label, cnf)) if len(self._radio_button...
def config_all(self, **cnf): '\n Use this method to correctly configure all radio buttons in the\n group\n\n :param cnf: config options\n :return: None\n ' self.config(clean_styles(self, cnf)) self._label.config(clean_styles(self._label, cnf)) if len(self._radio_button...
d15a1692e093b5c5317aa92f93848524c0d00d3d2d78bf2d51061467c6b38152
def set_label(self, label): '\n Set the group label\n\n :param label: string to be set as label\n ' self._label.config(text=label)
Set the group label :param label: string to be set as label
hoverset/ui/widgets.py
set_label
ObaraEmmanuel/Formation
71
python
def set_label(self, label): '\n Set the group label\n\n :param label: string to be set as label\n ' self._label.config(text=label)
def set_label(self, label): '\n Set the group label\n\n :param label: string to be set as label\n ' self._label.config(text=label)<|docstring|>Set the group label :param label: string to be set as label<|endoftext|>
0608c3903201129830503e58ed6e70e364824c797b16abfe1c261257ea49792d
def add_choice(self, choice): '\n Add a choices to be appended at the end of the radio group as\n a ``(value, label)`` pair\n\n :param choice: a ``(value label)`` pair\n ' (value, desc) = choice if len(self._pool): button = self._pool.pop(0) else: button = Rad...
Add a choices to be appended at the end of the radio group as a ``(value, label)`` pair :param choice: a ``(value label)`` pair
hoverset/ui/widgets.py
add_choice
ObaraEmmanuel/Formation
71
python
def add_choice(self, choice): '\n Add a choices to be appended at the end of the radio group as\n a ``(value, label)`` pair\n\n :param choice: a ``(value label)`` pair\n ' (value, desc) = choice if len(self._pool): button = self._pool.pop(0) else: button = Rad...
def add_choice(self, choice): '\n Add a choices to be appended at the end of the radio group as\n a ``(value, label)`` pair\n\n :param choice: a ``(value label)`` pair\n ' (value, desc) = choice if len(self._pool): button = self._pool.pop(0) else: button = Rad...
004ab0264b591d2a5f8df540886bee2e941981ea3659010f935404d9a5c67732
def set_choices(self, choices): '\n Add the choices to be displayed in the radio group as\n ``(value, label)`` pairs\n\n :param choices: a tuple of ``(value label)`` pairs\n ' self.set('', True) for btn in self._radio_buttons: btn.pack_forget() self._pool.extend(self....
Add the choices to be displayed in the radio group as ``(value, label)`` pairs :param choices: a tuple of ``(value label)`` pairs
hoverset/ui/widgets.py
set_choices
ObaraEmmanuel/Formation
71
python
def set_choices(self, choices): '\n Add the choices to be displayed in the radio group as\n ``(value, label)`` pairs\n\n :param choices: a tuple of ``(value label)`` pairs\n ' self.set(, True) for btn in self._radio_buttons: btn.pack_forget() self._pool.extend(self._r...
def set_choices(self, choices): '\n Add the choices to be displayed in the radio group as\n ``(value, label)`` pairs\n\n :param choices: a tuple of ``(value label)`` pairs\n ' self.set(, True) for btn in self._radio_buttons: btn.pack_forget() self._pool.extend(self._r...
27c4693ff4c98bc90fe8e0a9e45be24d02ca87495c8d1c1410ba71fc145ed76a
def get(self): '\n Get the value of the currently selected option\n\n :return: value of the current option\n ' return self._var.get()
Get the value of the currently selected option :return: value of the current option
hoverset/ui/widgets.py
get
ObaraEmmanuel/Formation
71
python
def get(self): '\n Get the value of the currently selected option\n\n :return: value of the current option\n ' return self._var.get()
def get(self): '\n Get the value of the currently selected option\n\n :return: value of the current option\n ' return self._var.get()<|docstring|>Get the value of the currently selected option :return: value of the current option<|endoftext|>
b926eac43017838f26d9b6866cefdb635647ba9085acee301a7a10fc578182da
def set(self, value, silent=False): '\n Set the selected option\n\n :param value: value to be set\n :param silent: set to ``True`` to trigger change event\n ' self._blocked = silent self._var.set(value) self._blocked = False
Set the selected option :param value: value to be set :param silent: set to ``True`` to trigger change event
hoverset/ui/widgets.py
set
ObaraEmmanuel/Formation
71
python
def set(self, value, silent=False): '\n Set the selected option\n\n :param value: value to be set\n :param silent: set to ``True`` to trigger change event\n ' self._blocked = silent self._var.set(value) self._blocked = False
def set(self, value, silent=False): '\n Set the selected option\n\n :param value: value to be set\n :param silent: set to ``True`` to trigger change event\n ' self._blocked = silent self._var.set(value) self._blocked = False<|docstring|>Set the selected option :param value: ...
adaef31ea22a0edb47bc00da1118051bbfcca8f16a101ebf9b31d551fe8fbcf3
def config_all(self, **kwargs): '\n Configure all options including ttk themed options automatically\n\n :param kwargs: config options\n :return: None\n ' config_ttk(self, **kwargs)
Configure all options including ttk themed options automatically :param kwargs: config options :return: None
hoverset/ui/widgets.py
config_all
ObaraEmmanuel/Formation
71
python
def config_all(self, **kwargs): '\n Configure all options including ttk themed options automatically\n\n :param kwargs: config options\n :return: None\n ' config_ttk(self, **kwargs)
def config_all(self, **kwargs): '\n Configure all options including ttk themed options automatically\n\n :param kwargs: config options\n :return: None\n ' config_ttk(self, **kwargs)<|docstring|>Configure all options including ttk themed options automatically :param kwargs: config op...
306df4847acd9a1dce127d7e880992e259227db4e75d9e855f4c647fbc0e0cff
def set(self, value): '\n Set scale value. Overrides default behaviour and sets the value\n directly to the underlying variable\n\n :param value: Value to be set\n ' self._var.set(value)
Set scale value. Overrides default behaviour and sets the value directly to the underlying variable :param value: Value to be set
hoverset/ui/widgets.py
set
ObaraEmmanuel/Formation
71
python
def set(self, value): '\n Set scale value. Overrides default behaviour and sets the value\n directly to the underlying variable\n\n :param value: Value to be set\n ' self._var.set(value)
def set(self, value): '\n Set scale value. Overrides default behaviour and sets the value\n directly to the underlying variable\n\n :param value: Value to be set\n ' self._var.set(value)<|docstring|>Set scale value. Overrides default behaviour and sets the value directly to the under...
79c0945828520bb7b0fffd85fcf108d30fb49e1904d10febcd74af59817ef8a4
def get(self, x=None, y=None): '\n Gets the current value directly from the underlying variable\n if either x or y is not provided.\n\n :param y: return value at x if provided\n :param x: return value at y if provided\n :return: current scale value\n ' if ((x is None) o...
Gets the current value directly from the underlying variable if either x or y is not provided. :param y: return value at x if provided :param x: return value at y if provided :return: current scale value
hoverset/ui/widgets.py
get
ObaraEmmanuel/Formation
71
python
def get(self, x=None, y=None): '\n Gets the current value directly from the underlying variable\n if either x or y is not provided.\n\n :param y: return value at x if provided\n :param x: return value at y if provided\n :return: current scale value\n ' if ((x is None) o...
def get(self, x=None, y=None): '\n Gets the current value directly from the underlying variable\n if either x or y is not provided.\n\n :param y: return value at x if provided\n :param x: return value at y if provided\n :return: current scale value\n ' if ((x is None) o...
b10a2620b1d4542dad1a71acb051512a513d2cfa05dd9a98ae40f58efcf4278b
def set_mode(self, mode): '\n Set the mode of selection\n\n :param mode: mode value which can be one of the following\n\n * :py:attr:`CompoundList.SINGLE_MODE`: allows selection of one\n item at a time\n * :py:attr:`CompoundList.MULTI_MODE`: allows selection of multi...
Set the mode of selection :param mode: mode value which can be one of the following * :py:attr:`CompoundList.SINGLE_MODE`: allows selection of one item at a time * :py:attr:`CompoundList.MULTI_MODE`: allows selection of multiple items by holding down the control key * :py:attr:`CompoundList.BR...
hoverset/ui/widgets.py
set_mode
ObaraEmmanuel/Formation
71
python
def set_mode(self, mode): '\n Set the mode of selection\n\n :param mode: mode value which can be one of the following\n\n * :py:attr:`CompoundList.SINGLE_MODE`: allows selection of one\n item at a time\n * :py:attr:`CompoundList.MULTI_MODE`: allows selection of multi...
def set_mode(self, mode): '\n Set the mode of selection\n\n :param mode: mode value which can be one of the following\n\n * :py:attr:`CompoundList.SINGLE_MODE`: allows selection of one\n item at a time\n * :py:attr:`CompoundList.MULTI_MODE`: allows selection of multi...
fbbd84417e38d1b3a13ee5678c36424f8029a073663eb52c7ea7d880c8248178
def get_mode(self): '\n Get currently set mode\n ' return self._mode
Get currently set mode
hoverset/ui/widgets.py
get_mode
ObaraEmmanuel/Formation
71
python
def get_mode(self): '\n \n ' return self._mode
def get_mode(self): '\n \n ' return self._mode<|docstring|>Get currently set mode<|endoftext|>
50d1df6365ddc4047ef1f6e55367b02f41aeeba88cd7943e55baaf40a11a8bac
def set_item_class(self, cls): '\n Set the class used to render the list items in the case of custom\n items.\n\n :param cls: A a subclass of :py:class:`CompoundList.BaseItem`\n ' self._cls = cls
Set the class used to render the list items in the case of custom items. :param cls: A a subclass of :py:class:`CompoundList.BaseItem`
hoverset/ui/widgets.py
set_item_class
ObaraEmmanuel/Formation
71
python
def set_item_class(self, cls): '\n Set the class used to render the list items in the case of custom\n items.\n\n :param cls: A a subclass of :py:class:`CompoundList.BaseItem`\n ' self._cls = cls
def set_item_class(self, cls): '\n Set the class used to render the list items in the case of custom\n items.\n\n :param cls: A a subclass of :py:class:`CompoundList.BaseItem`\n ' self._cls = cls<|docstring|>Set the class used to render the list items in the case of custom items. :p...
08e858819dee2da2e1cc6e99a920456f6df053971cceca3f6ec618c762f6cba9
def get_class(self): '\n Get the item class currently in use\n\n :return: current item class\n ' return self._cls
Get the item class currently in use :return: current item class
hoverset/ui/widgets.py
get_class
ObaraEmmanuel/Formation
71
python
def get_class(self): '\n Get the item class currently in use\n\n :return: current item class\n ' return self._cls
def get_class(self): '\n Get the item class currently in use\n\n :return: current item class\n ' return self._cls<|docstring|>Get the item class currently in use :return: current item class<|endoftext|>
e3c4f360f879ed16f16f0fd560d8ea888f07aacdc1752d6bdfc51f25720bd576
def set_values(self, values): '\n Set the values to be displayed by the list box\n\n :param values: an iterable containing the item values to be displayed\n ' self._values = values self._render(values)
Set the values to be displayed by the list box :param values: an iterable containing the item values to be displayed
hoverset/ui/widgets.py
set_values
ObaraEmmanuel/Formation
71
python
def set_values(self, values): '\n Set the values to be displayed by the list box\n\n :param values: an iterable containing the item values to be displayed\n ' self._values = values self._render(values)
def set_values(self, values): '\n Set the values to be displayed by the list box\n\n :param values: an iterable containing the item values to be displayed\n ' self._values = values self._render(values)<|docstring|>Set the values to be displayed by the list box :param values: an iterabl...
6e4b1b6f6c8a9f45fe1eca158881ae3f646e82fd7a4969f2b9530b6f373fd21b
def add_values(self, values): '\n Append new values to the list\n\n :param values: an iterable containing items to be added\n :return:\n ' self._values += values self._render(values)
Append new values to the list :param values: an iterable containing items to be added :return:
hoverset/ui/widgets.py
add_values
ObaraEmmanuel/Formation
71
python
def add_values(self, values): '\n Append new values to the list\n\n :param values: an iterable containing items to be added\n :return:\n ' self._values += values self._render(values)
def add_values(self, values): '\n Append new values to the list\n\n :param values: an iterable containing items to be added\n :return:\n ' self._values += values self._render(values)<|docstring|>Append new values to the list :param values: an iterable containing items to be adde...
ae46da07f7bec623ec33148a96a030f0705f42d3a056c2a2e3a5aff2b5c9ec50
def select(self, index, event=None): '\n Select item at given index\n\n :param index: index to be selected\n :param event: event generating the selection if any\n ' if (event and (event.state & EventMask.CONTROL) and (self._mode == CompoundList.MULTI_MODE)): self._multi_selec...
Select item at given index :param index: index to be selected :param event: event generating the selection if any
hoverset/ui/widgets.py
select
ObaraEmmanuel/Formation
71
python
def select(self, index, event=None): '\n Select item at given index\n\n :param index: index to be selected\n :param event: event generating the selection if any\n ' if (event and (event.state & EventMask.CONTROL) and (self._mode == CompoundList.MULTI_MODE)): self._multi_selec...
def select(self, index, event=None): '\n Select item at given index\n\n :param index: index to be selected\n :param event: event generating the selection if any\n ' if (event and (event.state & EventMask.CONTROL) and (self._mode == CompoundList.MULTI_MODE)): self._multi_selec...
53e348df7a114d73627bb87a0b7e38508b376e59c6ec769bb34a497ca56106af
def get(self): '\n Get currently selected item(s)\n\n .. note::\n\n This does not return the underlying value but the rendered item\n currently selected which is a :class:`CompoundList.BaseItem`\n object. To obtain the value use its ``value`` property or ``get``\n ...
Get currently selected item(s) .. note:: This does not return the underlying value but the rendered item currently selected which is a :class:`CompoundList.BaseItem` object. To obtain the value use its ``value`` property or ``get`` method :return: selected item if mode is not set to MULTI_MODE otherw...
hoverset/ui/widgets.py
get
ObaraEmmanuel/Formation
71
python
def get(self): '\n Get currently selected item(s)\n\n .. note::\n\n This does not return the underlying value but the rendered item\n currently selected which is a :class:`CompoundList.BaseItem`\n object. To obtain the value use its ``value`` property or ``get``\n ...
def get(self): '\n Get currently selected item(s)\n\n .. note::\n\n This does not return the underlying value but the rendered item\n currently selected which is a :class:`CompoundList.BaseItem`\n object. To obtain the value use its ``value`` property or ``get``\n ...
6e3fb713c09c1ecc6086805463ef8147f21463fe6cccceb416b2b839c8bd52b0
def on_change(self, func, *args, **kwargs): '\n Set a callback function to be called on selection change\n\n :param func: callback function\n :param args: extra positional arguments to be passed to callback\n in addition to the selected item\n :param kwargs: keyword arguments to...
Set a callback function to be called on selection change :param func: callback function :param args: extra positional arguments to be passed to callback in addition to the selected item :param kwargs: keyword arguments to be passed to callback function
hoverset/ui/widgets.py
on_change
ObaraEmmanuel/Formation
71
python
def on_change(self, func, *args, **kwargs): '\n Set a callback function to be called on selection change\n\n :param func: callback function\n :param args: extra positional arguments to be passed to callback\n in addition to the selected item\n :param kwargs: keyword arguments to...
def on_change(self, func, *args, **kwargs): '\n Set a callback function to be called on selection change\n\n :param func: callback function\n :param args: extra positional arguments to be passed to callback\n in addition to the selected item\n :param kwargs: keyword arguments to...
00d5e71597fc10b9614c18ddd55fe1b0b94c286e597407de31c4dc5bb8b37820
def initialize_tree(self): '\n Initialize tree properties. Make sure its called before any\n operations are performed on the tree.\n ' if getattr(self, '_has_init', False): return self._selected = [] self.nodes = [] self._multi_select = False self._on_select = None ...
Initialize tree properties. Make sure its called before any operations are performed on the tree.
hoverset/ui/widgets.py
initialize_tree
ObaraEmmanuel/Formation
71
python
def initialize_tree(self): '\n Initialize tree properties. Make sure its called before any\n operations are performed on the tree.\n ' if getattr(self, '_has_init', False): return self._selected = [] self.nodes = [] self._multi_select = False self._on_select = None ...
def initialize_tree(self): '\n Initialize tree properties. Make sure its called before any\n operations are performed on the tree.\n ' if getattr(self, '_has_init', False): return self._selected = [] self.nodes = [] self._multi_select = False self._on_select = None ...
dafaf796e991ed627fac0aa3794c89cd7168d083da0433e9b18c1fe6b8c9ff09
@abc.abstractmethod def get_body(self): '\n Return the tkinter container like a Frame where the nodes are\n packed. This method must be implemented and must return a valid\n container.\n ' pass
Return the tkinter container like a Frame where the nodes are packed. This method must be implemented and must return a valid container.
hoverset/ui/widgets.py
get_body
ObaraEmmanuel/Formation
71
python
@abc.abstractmethod def get_body(self): '\n Return the tkinter container like a Frame where the nodes are\n packed. This method must be implemented and must return a valid\n container.\n ' pass
@abc.abstractmethod def get_body(self): '\n Return the tkinter container like a Frame where the nodes are\n packed. This method must be implemented and must return a valid\n container.\n ' pass<|docstring|>Return the tkinter container like a Frame where the nodes are packed. This met...