Skip to content

Commit

Permalink
0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTheWatchGuy committed Dec 10, 2018
1 parent bb7ffa2 commit ffc3998
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
8 changes: 4 additions & 4 deletions PySimpleGUIQt/PySimpleGUIQt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2537,8 +2537,8 @@ def Update(self, values=None, num_rows=None, visible=None):
# 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)

Expand Down Expand Up @@ -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:
Expand Down
31 changes: 27 additions & 4 deletions PySimpleGUIQt/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand All @@ -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)


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ffc3998

Please sign in to comment.