Commit 3dfc4107409168cc17b026b5bb29ea4be9cdaaa6
1 parent
66288545
Exists in
master
and in
6 other branches
ADD: Import panel (first version - very simple and without functionality)
Showing
1 changed file
with
31 additions
and
21 deletions
Show diff stats
invesalius/gui/default_viewers.py
@@ -62,27 +62,37 @@ class Panel(wx.Panel): | @@ -62,27 +62,37 @@ class Panel(wx.Panel): | ||
62 | # problema: sash control soh aparece no sentido ertical | 62 | # problema: sash control soh aparece no sentido ertical |
63 | # tentativa de solucionar problema seria utilizar Fixed, mas qdo se aciona maximizar nao maximiza inteiro | 63 | # tentativa de solucionar problema seria utilizar Fixed, mas qdo se aciona maximizar nao maximiza inteiro |
64 | 64 | ||
65 | - self.aui_manager.AddPane(slice_viewer.Viewer(self, "AXIAL"), | ||
66 | - wx.aui.AuiPaneInfo().Centre().Row(0). | ||
67 | - Name("Axial Slice").Caption("Axial slice"). | ||
68 | - MaximizeButton(True).CloseButton(False)) | ||
69 | - | ||
70 | - self.aui_manager.AddPane(slice_viewer.Viewer(self, "CORONAL"), | ||
71 | - wx.aui.AuiPaneInfo().Centre().Row(0).#Fixed(). | ||
72 | - Name("Coronal Slice").Caption("Coronal slice"). | ||
73 | - MaximizeButton(True).CloseButton(False)) | ||
74 | - | ||
75 | - self.aui_manager.AddPane(slice_viewer.Viewer(self, "SAGITAL"), | ||
76 | - wx.aui.AuiPaneInfo().Centre().Row(1).#Fixed(). | ||
77 | - Name("Sagital Slice").Caption("Sagital slice"). | ||
78 | - MaximizeButton(True).CloseButton(False)) | ||
79 | - | ||
80 | - self.aui_manager.AddPane(VolumeViewerCover(self), | ||
81 | - #self.aui_manager.AddPane(volume_viewer.Viewer(self) | ||
82 | - wx.aui.AuiPaneInfo().Row(1).Name("Volume"). | ||
83 | - Bottom().Centre().Caption("Volume"). | ||
84 | - MaximizeButton(True).CloseButton(False)) | ||
85 | - | 65 | + p1 = slice_viewer.Viewer(self, "AXIAL") |
66 | + s1 = wx.aui.AuiPaneInfo().Centre().Row(0). | ||
67 | + Name("Axial Slice").Caption("Axial slice"). | ||
68 | + MaximizeButton(True).CloseButton(False) | ||
69 | + | ||
70 | + p2 = slice_viewer.Viewer(self, "CORONAL") | ||
71 | + s2 = wx.aui.AuiPaneInfo().Centre().Row(0).#Fixed(). | ||
72 | + Name("Coronal Slice").Caption("Coronal slice"). | ||
73 | + MaximizeButton(True).CloseButton(False) | ||
74 | + | ||
75 | + p3 = slice_viewer.Viewer(self, "SAGITAL") | ||
76 | + s3 = wx.aui.AuiPaneInfo().Centre().Row(1).#Fixed(). | ||
77 | + Name("Sagital Slice").Caption("Sagital slice"). | ||
78 | + MaximizeButton(True).CloseButton(False) | ||
79 | + | ||
80 | + p4 = VolumeViewerCover(self) | ||
81 | + s4 = wx.aui.AuiPaneInfo().Row(1).Name("Volume"). | ||
82 | + Bottom().Centre().Caption("Volume"). | ||
83 | + MaximizeButton(True).CloseButton(False) | ||
84 | + | ||
85 | + if sys.platform == 'win32': | ||
86 | + self.aui_manager.AddPane(p1, s1) | ||
87 | + self.aui_manager.AddPane(p2, s2) | ||
88 | + self.aui_manager.AddPane(p3, s3) | ||
89 | + self.aui_manager.AddPane(p4, s4) | ||
90 | + else: | ||
91 | + self.aui_manager.AddPane(p4, s4) | ||
92 | + self.aui_manager.AddPane(p3, s3) | ||
93 | + self.aui_manager.AddPane(p2, s2) | ||
94 | + self.aui_manager.AddPane(p1, s1) | ||
95 | + | ||
86 | self.aui_manager.Update() | 96 | self.aui_manager.Update() |
87 | 97 | ||
88 | 98 |