Hopefully fixed bug with earlier versions of PyGUI
This commit is contained in:
parent
64f69b1097
commit
81622cc3bf
|
|
@ -715,11 +715,11 @@ class Frame(Widget):
|
||||||
self.frame.height = self.height
|
self.frame.height = self.height
|
||||||
# Setting the height to 0 doesn't work on Linux, so we hack around it
|
# Setting the height to 0 doesn't work on Linux, so we hack around it
|
||||||
if PLATFORM.startswith("linux"):
|
if PLATFORM.startswith("linux"):
|
||||||
self.frame._gtk_inner_widget.set_visible(True)
|
self.frame._gtk_inner_widget.set_property('visible', True)
|
||||||
else:
|
else:
|
||||||
self.frame.height = 0
|
self.frame.height = 0
|
||||||
if PLATFORM.startswith("linux"):
|
if PLATFORM.startswith("linux"):
|
||||||
self.frame._gtk_inner_widget.set_visible(False)
|
self.frame._gtk_inner_widget.set_property('visible', False)
|
||||||
print "visible:",visible
|
print "visible:",visible
|
||||||
|
|
||||||
class Scale(Widget):
|
class Scale(Widget):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue