chiark / gitweb /
Fix crash on wxpython 2.8 by setting checkbox to be siblings of staticbox
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Thu, 10 Sep 2015 16:01:57 +0000 (12:01 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Thu, 10 Sep 2015 16:03:57 +0000 (12:03 -0400)
This basically reverts 3ce43ee7fc455131c0d772708340443ea4f7c036

Cura/gui/simpleMode.py

index dcdf1233dc785c9355f02c666a5beb33d4e85be8..9c52727147d9dda598213b60a077eecdcc5a8327 100644 (file)
@@ -298,7 +298,7 @@ class simpleModePanel(wx.Panel):
                for option in material.options:
                        if option.disabled:
                                continue
-                       button = wx.CheckBox(self.printOptionsBox, -1, option.name.replace('&', '&&'))
+                       button = wx.CheckBox(self, -1, option.name.replace('&', '&&'))
                        button.profile = option
                        self._print_other_options.append(button)
                        # Restore selection on similarly named options