@@ -37,11 +37,11 @@ def __init__(self, parent, icon1=None,
37
37
self .urls = urls
38
38
self .licence = licence
39
39
self .developers = developers
40
-
40
+
41
41
self .Build ()
42
-
42
+
43
43
def Build (self ):
44
-
44
+
45
45
# Build the header
46
46
Header = wx .BoxSizer (wx .HORIZONTAL )
47
47
if self .icon1 :
@@ -66,9 +66,9 @@ def Build(self):
66
66
67
67
# Now the rest;
68
68
MainSizer = wx .BoxSizer (wx .VERTICAL )
69
-
69
+
70
70
MainSizer .Add (Header , 0 , wx .EXPAND | wx .ALIGN_CENTER | wx .ALL , 5 )
71
-
71
+
72
72
if self .long_name :
73
73
Label = wx .StaticText (self , label = self .long_name )
74
74
of = Label .GetFont ()
@@ -89,11 +89,11 @@ def Build(self):
89
89
#of = Label.GetFont()
90
90
#Font = wx.Font(int(of.GetPointSize() * 1.5), of.GetFamily(), wx.NORMAL, wx.NORMAL)
91
91
#Label.SetFont(Font)
92
-
92
+
93
93
Label .Wrap (max (250 , 0.9 * width ))
94
94
MainSizer .Add (Label , 0 , wx .ALL | wx .ALIGN_CENTER , 5 )
95
95
96
-
96
+
97
97
if self .licence :
98
98
Label = wx .StaticText (self , label = "License:" )
99
99
of = Label .GetFont ()
@@ -110,12 +110,12 @@ def Build(self):
110
110
Font = wx .Font (of .GetPointSize (), of .GetFamily (), wx .NORMAL , wx .BOLD )
111
111
Label .SetFont (Font )
112
112
MainSizer .Add (Label , 0 , wx .ALL | wx .ALIGN_LEFT , 5 )
113
-
113
+
114
114
for developer in self .developers :
115
115
Label = wx .StaticText (self , label = " " + developer )
116
116
MainSizer .Add (Label , 0 , wx .ALL | wx .ALIGN_LEFT , 0 )
117
-
118
- if self .urls :
117
+
118
+ if self .urls :
119
119
Label = wx .StaticText (self , label = "For more information:" )
120
120
of = Label .GetFont ()
121
121
Font = wx .Font (of .GetPointSize (), of .GetFamily (), wx .NORMAL , wx .BOLD )
@@ -126,13 +126,13 @@ def Build(self):
126
126
label = url ,
127
127
URL = url )
128
128
MainSizer .Add (Link , 0 , wx .ALL | wx .ALIGN_CENTER , 2 )
129
-
129
+
130
130
MainSizer .Add ((1 ,5 ),1 )
131
131
MainSizer .Add (wx .Button (self , id = wx .ID_OK , label = "Dismiss" ), 0 , wx .ALL | wx .ALIGN_RIGHT ,5 )
132
132
SpaceSizer = wx .BoxSizer (wx .VERTICAL )
133
133
SpaceSizer .Add (MainSizer , 0 , wx .ALL , 10 )
134
134
self .SetSizerAndFit (SpaceSizer )
135
-
135
+
136
136
if __name__ == "__main__" :
137
137
138
138
a = wx .App (False )
@@ -147,5 +147,5 @@ def Build(self):
147
147
148
148
licence = "This is a short description of the license used for the program." ,
149
149
developers = ["A Developer" , "Another Developer" ])
150
-
150
+
151
151
d .ShowModal ()
0 commit comments