Skip to content

Commit

Permalink
Merge pull request #99 from gnikit/refactor/default-arg-expectations
Browse files Browse the repository at this point in the history
feat: allows for existing default values to be preserved unless manually overridden
  • Loading branch information
gnikit authored May 11, 2024
2 parents bf1d68a + 5ccf612 commit c0b3ab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tktooltip/tooltip.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def __init__(
self.status = ToolTipStatus.OUTSIDE
self.last_moved = 0
# use Message widget to host ToolTip
self.message_kwargs: dict = message_kwargs or self.DEFAULT_MESSAGE_KWARGS
self.message_kwargs: dict = self.DEFAULT_MESSAGE_KWARGS.copy()
self.message_kwargs.update(message_kwargs)
self.message_widget = tk.Message(
self,
textvariable=self.msg_var,
Expand Down

0 comments on commit c0b3ab2

Please sign in to comment.