Skip to content

Commit

Permalink
Updated scrollframe widget. Does not need grid weights
Browse files Browse the repository at this point in the history
  • Loading branch information
Aesonus committed May 16, 2021
1 parent 27e8ccb commit e3a75a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions 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-alpha10'
__version__ = '1.0.0-alpha11'
2 changes: 1 addition & 1 deletion tklife/skel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def layout(frame: _Container, layout_rows: _LRow) -> None:
for y, row in enumerate(layout_rows):
for x, kw in enumerate(row):
try:
w = frame.widget_grid[(x, y)]
w = frame.widget_grid[x, y]
except KeyError:
raise LayoutException("Layout coordinate invalid: ({}, {})".format(x, y))
kwargs = {
Expand Down
2 changes: 0 additions & 2 deletions tklife/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def __layout(self):
self.v_scroll.grid(column=1, row=0, sticky=N+S+E)
self.h_scroll.grid(column=0, row=1, sticky=E+W+S)
self.scrolled_frame = self.canvas.create_window((0,0), window=self, anchor=NW)
self.columnconfigure((0, 1), weight=1)
self.rowconfigure((0, 1), weight=1)

def __commands(self):
self.v_scroll.configure(command=self.canvas.yview)
Expand Down

0 comments on commit e3a75a4

Please sign in to comment.