PEP conformity...
This commit is contained in:
parent
39aac76859
commit
d3b3d628b2
|
@ -9,7 +9,7 @@ class Environment:
|
||||||
self.screen_height = 768
|
self.screen_height = 768
|
||||||
try:
|
try:
|
||||||
import wx
|
import wx
|
||||||
app = wx.App(False)
|
_ = wx.App(False) # noqa
|
||||||
self.screenwidth, self.screenheight = wx.GetDisplaySize()
|
self.screenwidth, self.screenheight = wx.GetDisplaySize()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
|
@ -18,7 +18,7 @@ class Environment:
|
||||||
self.screen_width = tk.winfo_screenwidth()
|
self.screen_width = tk.winfo_screenwidth()
|
||||||
self.screen_height = tk.winfo_screenheight()
|
self.screen_height = tk.winfo_screenheight()
|
||||||
tk.destroy()
|
tk.destroy()
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue