Skip to content

Commit

Permalink
Removed canvas configure so scrollbars work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Aesonus committed May 16, 2021
1 parent e3a75a4 commit 8e8f585
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
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 .widgets import *

name = 'tklife'
__version__ = '1.0.0-alpha11'
__version__ = '1.0.0-alpha12'
3 changes: 0 additions & 3 deletions tklife/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def __commands(self):
self.canvas.configure(xscrollcommand=self.h_scroll.set)
self.container.bind('<Configure>', self._container_configure_handler)
self.bind('<Configure>', self._self_configure_handler)
self.canvas.bind('<Configure>', self._canvas_configure_handler)

def _container_configure_handler(self, event: Event):
self.canvas.configure(
Expand All @@ -58,8 +57,6 @@ def _container_configure_handler(self, event: Event):
def _self_configure_handler(self, *__):
self.canvas.configure(scrollregion=self.canvas.bbox(ALL))

def _canvas_configure_handler(self, *__):
self.canvas.itemconfigure(self.scrolled_frame, width=self.canvas.winfo_width())

class ScrolledListbox(Listbox):
"""
Expand Down

0 comments on commit 8e8f585

Please sign in to comment.