Release 0.33.0

This commit is contained in:
PySimpleGUI 2020-05-06 15:59:14 -04:00
parent 6369d25620
commit 312d425feb
2 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
version = __version__ = "0.32.0.1 Unreleased - Experimental ability for user to add widgets to layout" version = __version__ = "0.33.0 Released 6-May-2020"
port = 'PySimpleGUIQt' port = 'PySimpleGUIQt'
@ -348,6 +348,8 @@ class Element():
self.TooltipObject = None self.TooltipObject = None
self.Visible = visible self.Visible = visible
self.metadata = metadata # type: Any self.metadata = metadata # type: Any
self.row_frame = None # type: QHBoxLayout
def _FindReturnKeyBoundButton(self, form): def _FindReturnKeyBoundButton(self, form):
for row in form.Rows: for row in form.Rows:
@ -4800,7 +4802,7 @@ def PackFormIntoFrame(window, containing_frame, toplevel_win):
qt_row_layout = QHBoxLayout() qt_row_layout = QHBoxLayout()
for col_num, element in enumerate(flex_row): for col_num, element in enumerate(flex_row):
element.ParentForm = toplevel_win # save the button's parent form object element.ParentForm = toplevel_win # save the button's parent form object
element.parent_row_frame = element.ParentRowFrame = qt_row_layout element.row_frame = qt_row_layout
if toplevel_win.Font and (element.Font == DEFAULT_FONT or not element.Font): if toplevel_win.Font and (element.Font == DEFAULT_FONT or not element.Font):
font = toplevel_win.Font font = toplevel_win.Font
element.Font = font element.Font = font
@ -8650,7 +8652,6 @@ def main():
if event == 'About...': if event == 'About...':
Popup('You are running PySimpleGUIQt', 'The version number is', version) Popup('You are running PySimpleGUIQt', 'The version number is', version)
if not graph_paused: if not graph_paused:
i += 1
if i < 600: if i < 600:
graph_elem.DrawLine((i, 0), (i, randint(0, 300)), width=1, graph_elem.DrawLine((i, 0), (i, randint(0, 300)), width=1,
@ -8662,6 +8663,7 @@ def main():
window.FindElement('+PROGRESS+').UpdateBar(i % 600) window.FindElement('+PROGRESS+').UpdateBar(i % 600)
window.FindElement('_PROGTEXT_').Update((i % 600) // 6) window.FindElement('_PROGTEXT_').Update((i % 600) // 6)
i += 1
# TimerStop() # TimerStop()
window.Close() window.Close()

View File

@ -803,6 +803,18 @@ Highlights - Read with close (Single line GUIs!), Print to Multiline, Scrollable
* Print (Multiline) added autoscroll parm * Print (Multiline) added autoscroll parm
## 0.33.0 PySimpleGUIQt 6-May-2020
* Added constants
* WIN_CLOSED and WINDOW_CLOSED
* EVENT_TIMEOUT and TIMEOUT_EVENT
* Added expansion capabilities
* Element.row_frame - The QHBoxLayout the element is contained within
* Column.vbox_layout - The QVBoxLayout contained in Column element
# Design # Design
## Author ## Author