--- a/Beremiz.py Tue Feb 20 11:24:40 2018 +0100
+++ b/Beremiz.py Tue Feb 20 14:16:51 2018 +0100
@@ -28,13 +28,13 @@
import os
import sys
import getopt
-import time
import wx
from wx.lib.agw.advancedsplash import AdvancedSplash, AS_NOTIMEOUT, AS_CENTER_ON_SCREEN
import util.paths as paths
+
class BeremizIDELauncher(object):
def __init__(self):
self.app = None
@@ -102,8 +102,9 @@
def CreateApplication(self):
BeremizAppType = wx.App if wx.VERSION >= (3, 0, 0) else wx.PySimpleApp
+
class BeremizApp(BeremizAppType):
- def OnInit(_self):
+ def OnInit(_self): # pylint: disable=no-self-argument
self.ShowSplashScreen()
return True
@@ -114,15 +115,14 @@
def ShowSplashScreen(self):
class Splash(AdvancedSplash):
- def OnPaint(_self, event):
+ def OnPaint(_self, event): # pylint: disable=no-self-argument
AdvancedSplash.OnPaint(_self, event)
wx.CallAfter(self.AppStart)
bmp = wx.Image(self.splashPath).ConvertToBitmap()
- self.splash = Splash(None,
- bitmap=bmp,
+ self.splash = Splash(None,
+ bitmap=bmp,
agwStyle=AS_NOTIMEOUT | AS_CENTER_ON_SCREEN)
-
def BackgroundInitialization(self):
self.InitI18n()
self.CheckUpdates()
@@ -191,7 +191,7 @@
def PreStart(self):
self.ProcessCommandLineArgs()
self.CreateApplication()
-
+
def AppStart(self):
try:
self.BackgroundInitialization()
@@ -201,7 +201,7 @@
# except (KeyboardInterrupt, SystemExit):
# raise
except Exception:
- self.handle_exception(*sys.exc_info(), exit = True)
+ self.handle_exception(*sys.exc_info(), exit=True)
def MainLoop(self):
self.app.MainLoop()