Commit 6825657196397f9591c74c32fa8d768cbeff9781
1 parent
3dfc4107
Exists in
master
and in
6 other branches
ENC: Data panels (slice and volume viewers) are being shown equal under win, linux, macos
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
invesalius/gui/default_viewers.py
@@ -16,6 +16,8 @@ | @@ -16,6 +16,8 @@ | ||
16 | # PARTICULAR. Consulte a Licenca Publica Geral GNU para obter mais | 16 | # PARTICULAR. Consulte a Licenca Publica Geral GNU para obter mais |
17 | # detalhes. | 17 | # detalhes. |
18 | #-------------------------------------------------------------------------- | 18 | #-------------------------------------------------------------------------- |
19 | +import sys | ||
20 | + | ||
19 | import wx | 21 | import wx |
20 | import wx.lib.agw.fourwaysplitter as fws | 22 | import wx.lib.agw.fourwaysplitter as fws |
21 | import data.viewer_slice as slice_viewer | 23 | import data.viewer_slice as slice_viewer |
@@ -63,23 +65,23 @@ class Panel(wx.Panel): | @@ -63,23 +65,23 @@ class Panel(wx.Panel): | ||
63 | # tentativa de solucionar problema seria utilizar Fixed, mas qdo se aciona maximizar nao maximiza inteiro | 65 | # tentativa de solucionar problema seria utilizar Fixed, mas qdo se aciona maximizar nao maximiza inteiro |
64 | 66 | ||
65 | p1 = slice_viewer.Viewer(self, "AXIAL") | 67 | p1 = slice_viewer.Viewer(self, "AXIAL") |
66 | - s1 = wx.aui.AuiPaneInfo().Centre().Row(0). | ||
67 | - Name("Axial Slice").Caption("Axial slice"). | 68 | + s1 = wx.aui.AuiPaneInfo().Centre().Row(0).\ |
69 | + Name("Axial Slice").Caption("Axial slice").\ | ||
68 | MaximizeButton(True).CloseButton(False) | 70 | MaximizeButton(True).CloseButton(False) |
69 | 71 | ||
70 | p2 = slice_viewer.Viewer(self, "CORONAL") | 72 | p2 = slice_viewer.Viewer(self, "CORONAL") |
71 | - s2 = wx.aui.AuiPaneInfo().Centre().Row(0).#Fixed(). | ||
72 | - Name("Coronal Slice").Caption("Coronal slice"). | 73 | + s2 = wx.aui.AuiPaneInfo().Centre().Row(0).\ |
74 | + Name("Coronal Slice").Caption("Coronal slice").\ | ||
73 | MaximizeButton(True).CloseButton(False) | 75 | MaximizeButton(True).CloseButton(False) |
74 | 76 | ||
75 | p3 = slice_viewer.Viewer(self, "SAGITAL") | 77 | p3 = slice_viewer.Viewer(self, "SAGITAL") |
76 | - s3 = wx.aui.AuiPaneInfo().Centre().Row(1).#Fixed(). | ||
77 | - Name("Sagital Slice").Caption("Sagital slice"). | 78 | + s3 = wx.aui.AuiPaneInfo().Centre().Row(1).\ |
79 | + Name("Sagital Slice").Caption("Sagital slice").\ | ||
78 | MaximizeButton(True).CloseButton(False) | 80 | MaximizeButton(True).CloseButton(False) |
79 | 81 | ||
80 | p4 = VolumeViewerCover(self) | 82 | p4 = VolumeViewerCover(self) |
81 | - s4 = wx.aui.AuiPaneInfo().Row(1).Name("Volume"). | ||
82 | - Bottom().Centre().Caption("Volume"). | 83 | + s4 = wx.aui.AuiPaneInfo().Row(1).Name("Volume").\ |
84 | + Bottom().Centre().Caption("Volume").\ | ||
83 | MaximizeButton(True).CloseButton(False) | 85 | MaximizeButton(True).CloseButton(False) |
84 | 86 | ||
85 | if sys.platform == 'win32': | 87 | if sys.platform == 'win32': |