From d9462a682d20ca6b1e7b098586731e3703306e03 Mon Sep 17 00:00:00 2001 From: tatiana Date: Wed, 6 Jan 2010 17:35:23 +0000 Subject: [PATCH] FIX: splash window initialized at the same time lang dialog under darwin (#52) --- invesalius/gui/language_dialog.py | 4 +--- invesalius/invesalius.py | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/invesalius/gui/language_dialog.py b/invesalius/gui/language_dialog.py index b4ee29a..a3f201d 100644 --- a/invesalius/gui/language_dialog.py +++ b/invesalius/gui/language_dialog.py @@ -24,15 +24,13 @@ import wx.combo import i18n import constants as const -def create(parent): - return LanguageDialog(parent) class LanguageDialog(wx.Dialog): """Class define the language to be used in the InVesalius, exist chcLanguage that list language EN and PT. The language selected is writing in the config.ini""" - def __init__(self, parent, startApp = None): + def __init__(self, parent = None, startApp = None): self.__TranslateMessage__() diff --git a/invesalius/invesalius.py b/invesalius/invesalius.py index b5018e9..bc12b8d 100755 --- a/invesalius/invesalius.py +++ b/invesalius/invesalius.py @@ -54,8 +54,7 @@ class SplashScreen(wx.SplashScreen): if not(lang): - ldlg = lang_dlg.create(parent=None) - ldlg.Show() + ldlg = lang_dlg.LanguageDialog() if (ldlg.ShowModal() == wx.ID_OK): lang = ldlg.GetSelectedLanguage() @@ -100,9 +99,7 @@ class SplashScreen(wx.SplashScreen): if not(lang): - ldlg = lang_dlg.create(parent=None) - ldlg.Show() - + ldlg = lang_dlg.LanguageDialog() if (ldlg.ShowModal() == wx.ID_OK): lang = ldlg.GetSelectedLanguage() session.SetLanguage(lang) -- libgit2 0.21.2