From 5e9dada23abbe21fac79b530513dbb695076e12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Thu, 29 Dec 2016 22:55:41 +0100 Subject: [PATCH] Replace global images variable with import --- Main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Main.py b/Main.py index 64c1d2a..a7bd98d 100644 --- a/Main.py +++ b/Main.py @@ -6,6 +6,7 @@ import wx.lib.mixins.inspection import sys import esptool import threading +import images as images from serial.tools import list_ports from esptool import ESPROM from argparse import Namespace @@ -263,7 +264,7 @@ class NodeMcuFlasher(wx.Frame): def __on_help_about(self, event): from About import MyAboutBox - about = MyAboutBox(self, __version__) + about = MyAboutBox(self) about.ShowModal() about.Destroy() @@ -303,11 +304,6 @@ class MySplashScreen(wx.SplashScreen): # ---------------------------------------------------------------------------- class App(wx.App, wx.lib.mixins.inspection.InspectionMixin): def OnInit(self): - - import images as i - global images - images = i - wx.SystemOptions.SetOptionInt("mac.window-plain-transition", 1) self.SetAppName("NodeMCU PyFlasher")