Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pk'
Browse files Browse the repository at this point in the history
  • Loading branch information
SavithaNagaraju committed Sep 11, 2023
2 parents 985783c + db91026 commit 04f4962
Show file tree
Hide file tree
Showing 17 changed files with 541 additions and 546 deletions.
1 change: 1 addition & 0 deletions toolcraft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
__email__ = "[email protected]"
__version__ = "0.1.4a23"


from . import settings
from . import logger
from . import error
Expand Down
4 changes: 2 additions & 2 deletions toolcraft/error/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(
)


class FileMustNotBeOnDiskOrNetwork(_CustomException):
class FileMustnotBeOnDiskOrNetwork(_CustomException):
def __init__(
self, *,
path: pathlib.Path,
Expand All @@ -84,7 +84,7 @@ def __init__(
)


class FolderMustNotBeOnDiskOrNetwork(_CustomException):
class FolderMustnotBeOnDiskOrNetwork(_CustomException):
def __init__(
self, *,
path: pathlib.Path,
Expand Down
14 changes: 9 additions & 5 deletions toolcraft/gui/__base__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1407,11 +1407,15 @@ def __init__(
run_async: can call method in async task ...
display_in_form:
tag_for_caching_in_receiver:
When set to None the widget generated will not be cached.
When 'auto' (i.e. default) automatic unique tag for given hashable and method name will be
generated and that tag will be used to cache
When some str is provided then that will be used to tag and any previous widget will be deleted to
make way for new widget generated by callback
When set to None the widget generated will not be cached. Use
this option if you want refreshing button. We add extra (*)
to indicate that it can be refreshed.
When 'auto' (i.e. default) automatic unique tag for given
hashable and method name will be generated and that tag
will be used to cache
When some str is provided then that will be used to tag and
any previous widget will be deleted to make way for new
widget generated by callback
hide_previously_opened:
Hides cached widgets in receiver before rendering current one (default)
If set to True it will result in widget stacking
Expand Down
5 changes: 3 additions & 2 deletions toolcraft/gui/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,10 @@ def layout(self) -> widget.MovableContainerWidget:
_button_bar = self._button_bar
_receiver = self._receiver
_hashable = self.hashable
_callable_names = self.callable_names
_callable_names = self.callable_names.copy()
if self.info_button:
_callable_names.append("info_widget")
if "info_widget" not in _callable_names:
_callable_names.append("info_widget")

# make buttons for callable names
for _callable_name in _callable_names:
Expand Down
Loading

0 comments on commit 04f4962

Please sign in to comment.