Commit 05476e9bbfec0eaa8bcadba8faf323fc4550da24

Authored by tatiana
1 parent 5b7cf41a

ENH: Centered language dialog under darwin (#52)

invesalius/constants.py
... ... @@ -225,7 +225,7 @@ WINDOW_LEVEL = {"Abdomen":(350,50),
225 225 "Vasculature - Hard":(240,80),
226 226 "Vasculature - Soft":(650,160)}
227 227  
228   -REDUCE_IMAGEDATA_QUALITY = 1
  228 +REDUCE_IMAGEDATA_QUALITY = 0
229 229  
230 230  
231 231 ICON_DIR = os.path.abspath(os.path.join('..', 'icons'))
... ...
invesalius/gui/language_dialog.py
... ... @@ -31,7 +31,7 @@ class LanguageDialog(wx.Dialog):
31 31 selected is writing in the config.ini"""
32 32  
33 33 def __init__(self, parent = None, startApp = None):
34   -
  34 +
35 35 self.__TranslateMessage__()
36 36  
37 37 self.pre = pre = wx.PreDialog()
... ... @@ -40,6 +40,7 @@ class LanguageDialog(wx.Dialog):
40 40 pre.Create(parent, -1, 'Language selection', size = wx.Size(250, 150),
41 41 pos = wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE)
42 42 self.PostCreate(pre)
  43 + self.Centre()
43 44  
44 45 icon_path = os.path.join(const.ICON_DIR, "invesalius.ico")
45 46 pre.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO))
... ...