Commit 6f89f9e4da84a9cd5a3bf2e76e8aecc421e3b143

Authored by tfmoraes
1 parent 431bc08b

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 31 import task_tools as tools
32 32 import task_navigator as navigator
33 33  
  34 +FPB_DEFAULT_STYLE = 2621440
  35 +
34 36 def GetCollapsedIconData():
35 37 return \
36 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 118 size=wx.Size(280, 420))
117 119  
118 120 fold_panel = fpb.FoldPanelBar(self, -1, wx.DefaultPosition,
119   - self.GetSize(),fpb.FPB_DEFAULT_STYLE,
  121 + self.GetSize(),FPB_DEFAULT_STYLE,
120 122 fpb.FPB_COLLAPSE_TO_BOTTOM)
121 123  
122 124 self.enable_items = []
... ... @@ -184,7 +186,7 @@ class UpperTaskPanel(wx.Panel):
184 186 size=wx.Size(280, 656))
185 187  
186 188 fold_panel = fpb.FoldPanelBar(self, -1, wx.DefaultPosition,
187   - self.GetSize(),fpb.FPB_DEFAULT_STYLE,
  189 + self.GetSize(),FPB_DEFAULT_STYLE,
188 190 fpb.FPB_SINGLE_FOLD)
189 191  
190 192 #self.SetBackgroundColour((0,255,0))
... ...