示例#1
0
    def afterSplashCallback(self):
        #-- Load Profile and Preferences
        profile.loadPreferences(os.path.join(self.basePath, 'preferences.ini'))
        profile.loadProfile(os.path.join(self.basePath, 'current-profile.ini'))
        profile.loadMachineSettings(
            os.path.join(self.basePath, profile.getMachineSettingFileName()))

        #-- Load Language
        resources.setupLocalization(profile.getPreference('language'))

        #-- Create Main Window
        self.mainWindow = MainWindow()

        #-- Check for updates
        if profile.getPreferenceBool(
                'check_for_updates') and version.checkForUpdates():
            v = VersionWindow(self.mainWindow)
            if v.download:
                return

        #-- Show Main Window
        self.SetTopWindow(self.mainWindow)
        self.mainWindow.Show()

        if profile.getPreferenceBool('show_welcome'):
            #-- Create Welcome Window
            WelcomeWindow(self.mainWindow)

        setFullScreenCapable(self.mainWindow)

        if sys.isDarwin():
            wx.CallAfter(self.StupidMacOSWorkaround)
示例#2
0
文件: app.py 项目: Claude59/horus
	def afterSplashCallback(self):
		#-- Load Profile and Preferences
		profile.loadPreferences(os.path.join(self.basePath, 'preferences.ini'))
		profile.loadProfile(os.path.join(self.basePath, 'current-profile.ini'))

		#-- Load Language
		resources.setupLocalization(profile.getPreference('language'))

		#-- Create Main Window
		self.mainWindow = MainWindow()

		#-- Check for updates
		if profile.getPreferenceBool('check_for_updates') and version.checkForUpdates():
			v = VersionWindow(self.mainWindow)
			if v.download:
				return

		#-- Show Main Window
		self.SetTopWindow(self.mainWindow)
		self.mainWindow.Show()
		
		if profile.getPreferenceBool('show_welcome'):
			#-- Create Welcome Window
			WelcomeWindow(self.mainWindow)

		setFullScreenCapable(self.mainWindow)

		if sys.isDarwin():
			wx.CallAfter(self.StupidMacOSWorkaround)
示例#3
0
 def onLanguageComboChanged(self, event):
     if profile.getPreference(
             'language') is not self.languageCombo.GetValue():
         profile.putPreference('language', self.languageCombo.GetValue())
         resources.setupLocalization(profile.getPreference('language'))
         wx.MessageBox(
             _("You have to restart the application to make the changes effective."
               ), 'Info', wx.OK | wx.ICON_INFORMATION)
示例#4
0
文件: app.py 项目: DeeibyCoper/horus
	def afterSplashCallback(self):
		#-- Load Profile and Preferences
		profile.loadPreferences(os.path.join(self.basePath, 'preferences.ini'))
		profile.loadProfile(os.path.join(self.basePath, 'current-profile.ini'))

		#-- Load Language
		resources.setupLocalization(profile.getPreference('language'))

		#-- Create Main Window
		mainWindow = MainWindow()

		if profile.getPreferenceBool('show_welcome'):
			#-- Create Welcome Window
			welcome = WelcomeWindow(mainWindow)
示例#5
0
    def afterSplashCallback(self):
        #-- Load Profile and Preferences
        profile.loadPreferences(os.path.join(self.basePath, 'preferences.ini'))
        profile.loadProfile(os.path.join(self.basePath, 'current-profile.ini'))

        #-- Load Language
        resources.setupLocalization(profile.getPreference('language'))

        #-- Create Main Window
        mainWindow = MainWindow()

        if profile.getPreferenceBool('show_welcome'):
            #-- Create Welcome Window
            welcome = WelcomeWindow(mainWindow)