From 57779696f79a7a67492fd25a584bbdfe57293d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Thu, 29 Dec 2016 22:54:21 +0100 Subject: [PATCH] Adjust some colors and import version --- About.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/About.py b/About.py index 7fe92be..64bad22 100644 --- a/About.py +++ b/About.py @@ -4,7 +4,7 @@ import wx import wx.html import wx.lib.wxpTag - +from Main import __version__ # --------------------------------------------------------------------------- @@ -12,27 +12,25 @@ import wx.lib.wxpTag class MyAboutBox(wx.Dialog): text = ''' - +
- - - - + Python + NodeMCU + Espressif, producers of ESP8266 et.al. + wxPython, cross-platform GUI framework

NodeMCU PyFlasher

Version %s

-

Fork the project on GitHub and help improve it - for all!

+

Fork the project on + GitHub and help improve it for all!

© 2016-2017 Marcel Stör. Licensed under MIT.

@@ -47,12 +45,12 @@ class MyAboutBox(wx.Dialog): ''' - def __init__(self, parent, version): + def __init__(self, parent): wx.Dialog.__init__(self, parent, -1, "About NodeMCU PyFlasher") html = wx.html.HtmlWindow(self, -1, size=(420, -1)) if "gtk2" in wx.PlatformInfo or "gtk3" in wx.PlatformInfo: html.SetStandardFonts() - txt = self.text % version + txt = self.text % __version__ html.SetPage(txt) ir = html.GetInternalRepresentation() html.SetSize((ir.GetWidth() + 25, ir.GetHeight() + 25))