mirror of
https://github.com/marcelstoer/nodemcu-pyflasher.git
synced 2025-07-28 05:36:34 +00:00
Adjust some colors and import version
This commit is contained in:
parent
4400a20988
commit
57779696f7
26
About.py
26
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 = '''
|
||||
<html>
|
||||
<body>
|
||||
<body bgcolor="#DCDCDC">
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial
|
||||
}
|
||||
a {
|
||||
color: #004CE5
|
||||
font-family: Arial;
|
||||
background-color: #DCDCDC;
|
||||
}
|
||||
</style>
|
||||
<center>
|
||||
<img src="images/python-256.png" width="64" height="64">
|
||||
<img src="images/icon-256.png" width="64" height="64">
|
||||
<img src="images/espressif-256.png" width="64" height="64">
|
||||
<img src="images/wxpython-256.png" width="64" height="43">
|
||||
<img src="images/python-256.png" width="64" height="64" alt="Python">
|
||||
<img src="images/icon-256.png" width="64" height="64" alt="NodeMCU">
|
||||
<img src="images/espressif-256.png" width="64" height="64" alt="Espressif, producers of ESP8266 et.al.">
|
||||
<img src="images/wxpython-256.png" width="64" height="43" alt="wxPython, cross-platform GUI framework">
|
||||
|
||||
<h1>NodeMCU PyFlasher</h1>
|
||||
|
||||
<p>Version %s</p>
|
||||
|
||||
<p>Fork the <a href="https://github.com/marcelstoer/nodemcu-pyflasher">project on GitHub</a> and help improve it
|
||||
for all!</p>
|
||||
<p>Fork the <a style="color: #004CE5;" href="https://github.com/marcelstoer/nodemcu-pyflasher">project on
|
||||
GitHub</a> and help improve it for all!</p>
|
||||
|
||||
<p>© 2016-2017 Marcel Stör. Licensed under MIT.</p>
|
||||
|
||||
@ -47,12 +45,12 @@ class MyAboutBox(wx.Dialog):
|
||||
</html>
|
||||
'''
|
||||
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user