@@ -37,11 +37,11 @@ def __init__(self, parent, icon1=None,
3737 self .urls = urls
3838 self .licence = licence
3939 self .developers = developers
40-
40+
4141 self .Build ()
42-
42+
4343 def Build (self ):
44-
44+
4545 # Build the header
4646 Header = wx .BoxSizer (wx .HORIZONTAL )
4747 if self .icon1 :
@@ -66,9 +66,9 @@ def Build(self):
6666
6767 # Now the rest;
6868 MainSizer = wx .BoxSizer (wx .VERTICAL )
69-
69+
7070 MainSizer .Add (Header , 0 , wx .EXPAND | wx .ALIGN_CENTER | wx .ALL , 5 )
71-
71+
7272 if self .long_name :
7373 Label = wx .StaticText (self , label = self .long_name )
7474 of = Label .GetFont ()
@@ -89,11 +89,11 @@ def Build(self):
8989 #of = Label.GetFont()
9090 #Font = wx.Font(int(of.GetPointSize() * 1.5), of.GetFamily(), wx.NORMAL, wx.NORMAL)
9191 #Label.SetFont(Font)
92-
92+
9393 Label .Wrap (max (250 , 0.9 * width ))
9494 MainSizer .Add (Label , 0 , wx .ALL | wx .ALIGN_CENTER , 5 )
9595
96-
96+
9797 if self .licence :
9898 Label = wx .StaticText (self , label = "License:" )
9999 of = Label .GetFont ()
@@ -110,12 +110,12 @@ def Build(self):
110110 Font = wx .Font (of .GetPointSize (), of .GetFamily (), wx .NORMAL , wx .BOLD )
111111 Label .SetFont (Font )
112112 MainSizer .Add (Label , 0 , wx .ALL | wx .ALIGN_LEFT , 5 )
113-
113+
114114 for developer in self .developers :
115115 Label = wx .StaticText (self , label = " " + developer )
116116 MainSizer .Add (Label , 0 , wx .ALL | wx .ALIGN_LEFT , 0 )
117-
118- if self .urls :
117+
118+ if self .urls :
119119 Label = wx .StaticText (self , label = "For more information:" )
120120 of = Label .GetFont ()
121121 Font = wx .Font (of .GetPointSize (), of .GetFamily (), wx .NORMAL , wx .BOLD )
@@ -126,13 +126,13 @@ def Build(self):
126126 label = url ,
127127 URL = url )
128128 MainSizer .Add (Link , 0 , wx .ALL | wx .ALIGN_CENTER , 2 )
129-
129+
130130 MainSizer .Add ((1 ,5 ),1 )
131131 MainSizer .Add (wx .Button (self , id = wx .ID_OK , label = "Dismiss" ), 0 , wx .ALL | wx .ALIGN_RIGHT ,5 )
132132 SpaceSizer = wx .BoxSizer (wx .VERTICAL )
133133 SpaceSizer .Add (MainSizer , 0 , wx .ALL , 10 )
134134 self .SetSizerAndFit (SpaceSizer )
135-
135+
136136if __name__ == "__main__" :
137137
138138 a = wx .App (False )
@@ -147,5 +147,5 @@ def Build(self):
147147148148 licence = "This is a short description of the license used for the program." ,
149149 developers = ["A Developer" , "Another Developer" ])
150-
150+
151151 d .ShowModal ()
0 commit comments