Commit 3a3b134c2506801a560a5465264fdb23f6a835b1
1 parent
1912ed64
Exists in
master
and in
68 other branches
FIX: (Test) Text centralization under GNU Linux on thumbnails at import panel
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
invesalius/gui/dicom_preview_panel.py
... | ... | @@ -6,6 +6,7 @@ import wx |
6 | 6 | import vtk |
7 | 7 | import vtkgdcm |
8 | 8 | |
9 | +import wx.lib.agw.buttonpanel as bp | |
9 | 10 | from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor |
10 | 11 | from reader import dicom_reader |
11 | 12 | |
... | ... | @@ -39,7 +40,7 @@ class SerieEvent(PreviewEvent): |
39 | 40 | def __init__(self , evtType, id): |
40 | 41 | super(SerieEvent, self).__init__(evtType, id) |
41 | 42 | |
42 | -class Preview(wx.Panel): | |
43 | +#class Preview(wx.Panel): | |
43 | 44 | """ |
44 | 45 | Where the images will be showed. |
45 | 46 | """ |
... | ... | @@ -63,8 +64,10 @@ class Preview(wx.Panel): |
63 | 64 | |
64 | 65 | self.sizer = wx.BoxSizer(wx.VERTICAL) |
65 | 66 | self.sizer.AddSpacer(2) |
66 | - self.sizer.Add(self.title, 1, wx.GROW|wx.EXPAND) | |
67 | - self.sizer.Add(self.subtitle, 1, wx.GROW|wx.EXPAND) | |
67 | + self.sizer.Add(self.title, 1, | |
68 | + wx.GROW|wx.EXPAND|wx. ALIGN_CENTER_HORIZONTAL) | |
69 | + self.sizer.Add(self.subtitle, 1, | |
70 | + wx.GROW|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL) | |
68 | 71 | self.sizer.Add(self.panel, 5, wx.GROW|wx.EXPAND|wx.ALL, 4) |
69 | 72 | self.sizer.Fit(self) |
70 | 73 | ... | ... |