diff --git a/balanna/display_scenes.py b/balanna/display_scenes.py index afce855..1c6211a 100644 --- a/balanna/display_scenes.py +++ b/balanna/display_scenes.py @@ -88,6 +88,13 @@ def __init__( frame.setLayout(vl) self.setCentralWidget(frame) + # If image and scene keys are displayed, somehow the scene widgets start with zero width. + # Therefore, resize the window before startup by multiplying the current size with the + # number of scene widgets. + if len(image_keys) > 0 and len(scene_keys) > 0: + w = self.size().width() + self.size().width() * len(scene_keys) + h = self.size().height() + self.resize(w, h) self.show() # Set up video directory for storing screenshots. diff --git a/setup.py b/setup.py index 70a34e5..73a81e7 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name='balanna', - version='0.4', + version='0.5', description='Visualization Tools for Humans and Stuff', author='Simon Schaefer & Dorian Henning', author_email='dorian.henning@gmail.com',