Skip to content
Permalink
Browse files

Fix for visible being ignored when creatring Text Element

  • Loading branch information
PySimpleGUI committed Feb 10, 2020
1 parent 99c32cf commit 6a9dc696c0486fdd678be858a255e3b41ed73d35
Showing with 4 additions and 3 deletions.
  1. +4 −3 PySimpleGUIQt/PySimpleGUIQt.py
@@ -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 @@ def __init__(self, text='', size=(None, None), auto_size_text=None, click_submi
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')

0 comments on commit 6a9dc69

Please sign in to comment.
You can’t perform that action at this time.