Commit 6f89f9e4da84a9cd5a3bf2e76e8aecc421e3b143
1 parent
431bc08b
Exists in
master
and in
5 other branches
ENH: A workaround to invesalius runs in the last wxPython version
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
invesalius/gui/default_tasks.py
@@ -31,6 +31,8 @@ import task_surface as surface | @@ -31,6 +31,8 @@ import task_surface as surface | ||
31 | import task_tools as tools | 31 | import task_tools as tools |
32 | import task_navigator as navigator | 32 | import task_navigator as navigator |
33 | 33 | ||
34 | +FPB_DEFAULT_STYLE = 2621440 | ||
35 | + | ||
34 | def GetCollapsedIconData(): | 36 | def GetCollapsedIconData(): |
35 | return \ | 37 | return \ |
36 | '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\ | 38 | '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\ |
@@ -116,7 +118,7 @@ class LowerTaskPanel(wx.Panel): | @@ -116,7 +118,7 @@ class LowerTaskPanel(wx.Panel): | ||
116 | size=wx.Size(280, 420)) | 118 | size=wx.Size(280, 420)) |
117 | 119 | ||
118 | fold_panel = fpb.FoldPanelBar(self, -1, wx.DefaultPosition, | 120 | fold_panel = fpb.FoldPanelBar(self, -1, wx.DefaultPosition, |
119 | - self.GetSize(),fpb.FPB_DEFAULT_STYLE, | 121 | + self.GetSize(),FPB_DEFAULT_STYLE, |
120 | fpb.FPB_COLLAPSE_TO_BOTTOM) | 122 | fpb.FPB_COLLAPSE_TO_BOTTOM) |
121 | 123 | ||
122 | self.enable_items = [] | 124 | self.enable_items = [] |
@@ -184,7 +186,7 @@ class UpperTaskPanel(wx.Panel): | @@ -184,7 +186,7 @@ class UpperTaskPanel(wx.Panel): | ||
184 | size=wx.Size(280, 656)) | 186 | size=wx.Size(280, 656)) |
185 | 187 | ||
186 | fold_panel = fpb.FoldPanelBar(self, -1, wx.DefaultPosition, | 188 | fold_panel = fpb.FoldPanelBar(self, -1, wx.DefaultPosition, |
187 | - self.GetSize(),fpb.FPB_DEFAULT_STYLE, | 189 | + self.GetSize(),FPB_DEFAULT_STYLE, |
188 | fpb.FPB_SINGLE_FOLD) | 190 | fpb.FPB_SINGLE_FOLD) |
189 | 191 | ||
190 | #self.SetBackgroundColour((0,255,0)) | 192 | #self.SetBackgroundColour((0,255,0)) |