Commit 05476e9bbfec0eaa8bcadba8faf323fc4550da24
1 parent
5b7cf41a
Exists in
master
and in
68 other branches
ENH: Centered language dialog under darwin (#52)
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
invesalius/constants.py
@@ -225,7 +225,7 @@ WINDOW_LEVEL = {"Abdomen":(350,50), | @@ -225,7 +225,7 @@ WINDOW_LEVEL = {"Abdomen":(350,50), | ||
225 | "Vasculature - Hard":(240,80), | 225 | "Vasculature - Hard":(240,80), |
226 | "Vasculature - Soft":(650,160)} | 226 | "Vasculature - Soft":(650,160)} |
227 | 227 | ||
228 | -REDUCE_IMAGEDATA_QUALITY = 1 | 228 | +REDUCE_IMAGEDATA_QUALITY = 0 |
229 | 229 | ||
230 | 230 | ||
231 | ICON_DIR = os.path.abspath(os.path.join('..', 'icons')) | 231 | ICON_DIR = os.path.abspath(os.path.join('..', 'icons')) |
invesalius/gui/language_dialog.py
@@ -31,7 +31,7 @@ class LanguageDialog(wx.Dialog): | @@ -31,7 +31,7 @@ class LanguageDialog(wx.Dialog): | ||
31 | selected is writing in the config.ini""" | 31 | selected is writing in the config.ini""" |
32 | 32 | ||
33 | def __init__(self, parent = None, startApp = None): | 33 | def __init__(self, parent = None, startApp = None): |
34 | - | 34 | + |
35 | self.__TranslateMessage__() | 35 | self.__TranslateMessage__() |
36 | 36 | ||
37 | self.pre = pre = wx.PreDialog() | 37 | self.pre = pre = wx.PreDialog() |
@@ -40,6 +40,7 @@ class LanguageDialog(wx.Dialog): | @@ -40,6 +40,7 @@ class LanguageDialog(wx.Dialog): | ||
40 | pre.Create(parent, -1, 'Language selection', size = wx.Size(250, 150), | 40 | pre.Create(parent, -1, 'Language selection', size = wx.Size(250, 150), |
41 | pos = wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE) | 41 | pos = wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE) |
42 | self.PostCreate(pre) | 42 | self.PostCreate(pre) |
43 | + self.Centre() | ||
43 | 44 | ||
44 | icon_path = os.path.join(const.ICON_DIR, "invesalius.ico") | 45 | icon_path = os.path.join(const.ICON_DIR, "invesalius.ico") |
45 | pre.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO)) | 46 | pre.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO)) |