Merge pull request #1005 from MikeTheWatchGuy/Dev-latest

Columns - continued code on specifying size
This commit is contained in:
MikeTheWatchGuy 2018-12-29 20:01:13 -05:00 committed by GitHub
commit 914b0ce4ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -4707,13 +4707,15 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
highlightthickness=0)
element.TKColFrame.config(background=element.BackgroundColor, borderwidth=0, highlightthickness=0)
else:
# element.TKColFrame = tk.Frame(tk_row_frame)
if element.Size != (None, None):
element.TKColFrame = TkFixedFrame(tk_row_frame)
PackFormIntoFrame(element, element.TKColFrame.TKFrame, toplevel_form)
element.TKColFrame.TKFrame.update()
if element.Size != (None, None):
element.TKColFrame.canvas.config(width=element.Size[0], height=element.Size[1])
else:
element.TKColFrame = tk.Frame(tk_row_frame)
PackFormIntoFrame(element, element.TKColFrame, toplevel_form)
element.TKColFrame.pack(side=tk.LEFT, padx=elementpad[0], pady=elementpad[1], expand=True, fill='both')
if element.Visible is False: