Merge pull request #1011 from MikeTheWatchGuy/Dev-latest

Column element - allow width or heigt to be None so only 1 is set
This commit is contained in:
MikeTheWatchGuy 2018-12-30 12:48:54 -05:00 committed by GitHub
commit b02518a454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -4713,8 +4713,10 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
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])
if element.Size[1] is not None:
element.TKColFrame.canvas.config(height=element.Size[1])
elif element.Size[0] is not None:
element.TKColFrame.canvas.config(width=element.Size[0])
else:
element.TKColFrame = tk.Frame(tk_row_frame)
PackFormIntoFrame(element, element.TKColFrame, toplevel_form)