Hopefully fixed bug with earlier versions of PyGUI

This commit is contained in:
Skyler Lehmkuhl 2012-01-22 11:36:27 -05:00
parent 64f69b1097
commit 81622cc3bf
1 changed files with 2 additions and 2 deletions

View File

@ -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):