From ffc3998dc74a3da01d4eb79b1856b9200cc3cfb3 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 9 Dec 2018 19:37:44 -0500 Subject: [PATCH] 0.22.0 --- PySimpleGUIQt/PySimpleGUIQt.py | 8 ++++---- PySimpleGUIQt/readme.md | 31 +++++++++++++++++++++++++++---- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 3d802e12..c160b35a 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -2537,8 +2537,8 @@ class Table(Element): # self.QT_TableWidget.insertRow(rownum) for colnum, columns in enumerate(rows): self.QT_TableWidget.setItem(rownum, colnum, QTableWidgetItem(self.Values[rownum][colnum])) - # if num_rows is not None: - # self.QT_TableWidget.setFixedHeight(num_rows * 35 + 25) # convert num rows into pixels...crude but effective + if num_rows is not None: + self.QT_TableWidget.setFixedHeight(num_rows * 35 + 25) # convert num rows into pixels...crude but effective super().Update(self.QT_TableWidget, visible=visible) @@ -5194,8 +5194,8 @@ def PackFormIntoFrame(window, containing_frame, toplevel_win): # ------------------------- TABLE element ------------------------- # elif element_type == ELEM_TYPE_TABLE: element.QT_TableWidget = Table.QTTableWidget(toplevel_win) - height = element.NumRows - element.QT_TableWidget.setFixedHeight(height*35) + if element.NumRows is not None: + element.QT_TableWidget.setFixedHeight(element.NumRows*35+25) # element.QT_TableWidget = QTableWidget() style = create_style_from_font(font) if element.TextColor is not None: diff --git a/PySimpleGUIQt/readme.md b/PySimpleGUIQt/readme.md index ad3527c8..00339841 100644 --- a/PySimpleGUIQt/readme.md +++ b/PySimpleGUIQt/readme.md @@ -16,7 +16,7 @@ ![Python Version](https://img.shields.io/badge/Python-3.x-yellow.svg) -![Python Version](https://img.shields.io/badge/PySimpleGUIQt_For_Python_3.x_Version-00.19.0-orange.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUIQt_For_Python_3.x_Version-00.21.0-orange.svg?longCache=true&style=for-the-badge) @@ -26,7 +26,7 @@ "Qt without the ugly" - ## The Alpha Release Version 0.20.0 + ## The Alpha Release Version 0.21.0 [Announcements of Latest Developments](https://github.com/MikeTheWatchGuy/PySimpleGUI/issues/142) @@ -574,15 +574,38 @@ Dial - disable * enable_events added to all of the shortcut buttons and browse buttons * Ability to set a button image from a file * Combo - ability to set a default value -* Combo - Readonly setting. Allows for user editing of value +* Combo - Read only setting. Allows for user editing of value * Menus - Ability to disable / enable any part of a menu by adding a ! before the entry name -* Tabs - ability to set tab text color, background color, background color of seletected tab +* Tabs - ability to set tab text color, background color, background color of selected tab * Tabs - ability to set widget area's background color * Sliders - paging works properly (using page-up page-down or slider slider area to advance slider) * Tree - Setting number of visible rows implemented * Added 5 pixels to every window. Have been having issues with text being cutoff on the right side * SetOptions - ability to change default error button color for popups +### 0.21.0 - 9-Dec-2018 + +* Removed use of global variabels - using static class variabels instead +* Listbox.Get() will return current listbox value +* Progressbar now has color support +* Progressbar can be vertical now +* Can change bar or back and background color +* (barcolor, background color - None if use default) +* Table num_rows parameter implemented +* Table.Update - can change number of visible rows +* Window resizable parm - implemented, default changed from False to True +* Window.Move - implemented +* Window.Minimize - implemented +* Window.Disable - implemented +* Window.Enable - implemented +* Window.CurrentLocation - implemented +* Fixed too small scrollbar in Combobox +* Fixed too small scrollbar in Listbox +* Changed "text" window to a complex one for quick regression testing (try running PySimpleGUIQt.py by itself) + +### 0.22.0 - 9-Dec-2018 + +* Spin.Get method - get the current spinner value # Design