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