Skip to content

Commit

Permalink
fix: widget SegmentedButton is displayed incorrectly (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaokang2022 committed Oct 27, 2024
1 parent 1640e94 commit 4623707
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tkintertools/standard/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ def __init__(
size, text, image = pack
position = (total_side_length, 5) if layout == "horizontal" else (
5, total_side_length)
position = tuple(i - j for i, j in zip(position, self.offset))
ToggleButton(self, position, size, text=text, family=family,
fontsize=fontsize, weight=weight, slant=slant,
underline=underline, overstrike=overstrike,
Expand Down

0 comments on commit 4623707

Please sign in to comment.