Skip to content

Commit

Permalink
Fix ModalDialog master always being set to None
Browse files Browse the repository at this point in the history
Fix #14
  • Loading branch information
Aesonus committed Feb 2, 2024
1 parent 170703d commit f7ee4e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tklife"
version = "2.4.0-dev3"
version = "2.4.0-dev4"
description = "Make Tk life easier"
authors = ["Cory Laughlin <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -31,7 +31,7 @@ addopts = "--cov=tklife --cov-branch --cov-report xml --cov-report html -vvv"

[tool.mypy]
ignore_missing_imports = true
python_version = 3.11
python_version = "3.11"

[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:"]
Expand Down
2 changes: 1 addition & 1 deletion tklife/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from .core import * # noqa: F401

__version__ = "2.4.0-dev3"
__version__ = "2.4.0-dev4"
2 changes: 1 addition & 1 deletion tklife/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ModalDialog(Generic[T_ReturnValue], SkeletonMixin, Toplevel):
cancelled: bool

def __init__(self, master, **kwargs):
super().__init__(None, **kwargs)
super().__init__(master, **kwargs)
self.transient(master)
self.withdraw()
self.return_value = None
Expand Down

0 comments on commit f7ee4e3

Please sign in to comment.