Merge pull request #2594 from PySimpleGUI/Dev-latest

Fix for visible being ignored when creating Text Element
This commit is contained in:
PySimpleGUI 2020-02-10 10:50:13 -05:00 committed by GitHub
commit 3dd0aa3c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3
version = __version__ = "0.31.0.6 Unreleased - fix for Listbox.update, Graph.change_coordinates, Added Image.Widget, return correct value with ComboBox has manual data entry, added print_to_element, multlineline update moves cursor to end, scrollable columns, listbox.get"
version = __version__ = "0.31.0.7 Unreleased - fix for Listbox.update, Graph.change_coordinates, Added Image.Widget, return correct value with ComboBox has manual data entry, added print_to_element, multlineline update moves cursor to end, scrollable columns, listbox.get, fix for visible ignored in Text Element"
port = 'PySimpleGUIQt'
@ -1158,10 +1158,9 @@ class Text(Element):
else:
bg = background_color
self.Widget = self.QT_Label = None # type: QLabel
self.Visible = visible
super().__init__(ELEM_TYPE_TEXT, size, auto_size_text, background_color=bg, font=font if font else DEFAULT_FONT,
text_color=self.TextColor, pad=pad, key=key, tooltip=tooltip, size_px=size_px, metadata=metadata)
text_color=self.TextColor, visible=visible, pad=pad, key=key, tooltip=tooltip, size_px=size_px, metadata=metadata)
return
def _QtCallbackTextClicked(self, event):
@ -8444,6 +8443,8 @@ def PopupGetText(message, title=None, default_text='', password_char='', size=(N
def main():
theme('SystemDefaultForReal')
# preview_all_look_and_feel_themes()
# ChangeLookAndFeel('Dark Red')
# theme('Dark Red')