Save the ParentRowFrame like in the tkinter port

This commit is contained in:
PySimpleGUI 2020-04-29 11:35:10 -04:00
parent 91697164e2
commit 106d8b83d9
1 changed files with 2 additions and 0 deletions

View File

@ -3427,6 +3427,7 @@ class Window:
# print("quitting window")
self.QTApplication.exit() # kick the users out of the mainloop
def Read(self, timeout=None, timeout_key=TIMEOUT_KEY, close=False):
"""
THE biggest deal method in the Window class! This is how you get all of your data from your Window.
@ -4798,6 +4799,7 @@ def PackFormIntoFrame(window, containing_frame, toplevel_win):
qt_row_layout = QHBoxLayout()
for col_num, element in enumerate(flex_row):
element.ParentForm = toplevel_win # save the button's parent form object
element.ParentRowFrame = qt_row_layout
if toplevel_win.Font and (element.Font == DEFAULT_FONT or not element.Font):
font = toplevel_win.Font
element.Font = font