~ubuntu-branches/ubuntu/wily/phatch/wily

« back to all changes in this revision

Viewing changes to .pc/wxpy3.0-compat.patch/phatch/pyWx/wxGlade/dialogs.py

  • Committer: Package Import Robot
  • Author(s): Olly Betts
  • Date: 2014-08-31 18:10:50 UTC
  • mfrom: (4.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20140831181050-bsuwtc59i0whjxcw
Tags: 0.2.7.1-3.1
* Non-maintainer upload.
* Update for wxpython3.0 (Closes: #758942):
  + New patch: wxpy3.0-compat.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# generated by wxGlade 0.5.1cvs on Thu Jun 14 14:07:44 2007 from /home/stani/sync/python/convert/trunk/gui/wxGlade/dialogs.wxg
 
4
 
 
5
import wx
 
6
from lib.pyWx import folderFileBrowser as ffb
 
7
from lib.desktop import USER_FOLDER
 
8
 
 
9
class StatusDialog(wx.Dialog):
 
10
    def __init__(self, *args, **kwds):
 
11
        # begin wxGlade: StatusDialog.__init__
 
12
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
 
13
        wx.Dialog.__init__(self, *args, **kwds)
 
14
        self.panel_1 = wx.Panel(self, -1)
 
15
        self.message = wx.StaticText(self.panel_1, -1, _("Done"))
 
16
        self.log = wx.Button(self.panel_1, -1, _("Show &Log"))
 
17
        self.report = wx.Button(self.panel_1, -1, _("Show &Images"))
 
18
        self.ok = wx.Button(self.panel_1, wx.ID_OK, "")
 
19
 
 
20
        self.__set_properties()
 
21
        self.__do_layout()
 
22
 
 
23
        self.Bind(wx.EVT_BUTTON, self.on_button_log, self.log)
 
24
        self.Bind(wx.EVT_BUTTON, self.on_button_report, self.report)
 
25
        # end wxGlade
 
26
 
 
27
    def __set_properties(self):
 
28
        # begin wxGlade: StatusDialog.__set_properties
 
29
        self.SetTitle(_("Ready!"))
 
30
        # end wxGlade
 
31
 
 
32
    def __do_layout(self):
 
33
        # begin wxGlade: StatusDialog.__do_layout
 
34
        sizer_18 = wx.BoxSizer(wx.HORIZONTAL)
 
35
        sizer_19 = wx.BoxSizer(wx.VERTICAL)
 
36
        sizer_20 = wx.BoxSizer(wx.HORIZONTAL)
 
37
        sizer_19.Add(self.message, 1, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 6)
 
38
        sizer_20.Add(self.log, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
39
        sizer_20.Add(self.report, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
40
        sizer_20.Add(self.ok, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
41
        sizer_19.Add(sizer_20, 0, wx.ALIGN_RIGHT, 0)
 
42
        self.panel_1.SetSizer(sizer_19)
 
43
        sizer_18.Add(self.panel_1, 1, wx.EXPAND, 0)
 
44
        self.SetSizer(sizer_18)
 
45
        sizer_18.Fit(self)
 
46
        self.Layout()
 
47
        # end wxGlade
 
48
 
 
49
    def on_button_report(self, event): # wxGlade: StatusDialog.<event_handler>
 
50
        print "Event handler `on_button_report' not implemented!"
 
51
        event.Skip()
 
52
 
 
53
    def on_button_log(self, event): # wxGlade: StatusDialog.<event_handler>
 
54
        print "Event handler `on_button_log' not implemented!"
 
55
        event.Skip()
 
56
 
 
57
# end of class StatusDialog
 
58
 
 
59
 
 
60
class FolderFileBrowser(ffb.PreviewMixin, ffb.Panel):
 
61
    def GetTreeLabel(self, label, parent_label):
 
62
        return label[:-1].replace(parent_label,'')\
 
63
            .replace(USER_FOLDER,'~')
 
64
 
 
65
class ImageTreeDialog(wx.Dialog):
 
66
    def __init__(self, data, Data, headers, *args, **kwds):
 
67
        # begin wxGlade: ImageTreeDialog.__init__
 
68
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.THICK_FRAME
 
69
        wx.Dialog.__init__(self, *args, **kwds)
 
70
        self.panel = wx.Panel(self, -1)
 
71
        self.browser = FolderFileBrowser(self.panel, -1, data, Data, headers)
 
72
        self.hint = wx.StaticText(self.panel, -1, _("Double click to open or right click for more options."))
 
73
        self.cancel = wx.Button(self.panel, wx.ID_CANCEL, "")
 
74
        self.ok = wx.Button(self.panel, wx.ID_OK, "")
 
75
 
 
76
        self.__set_properties()
 
77
        self.__do_layout()
 
78
        # end wxGlade
 
79
 
 
80
    def __set_properties(self):
 
81
        # begin wxGlade: ImageTreeDialog.__set_properties
 
82
        self.SetTitle(_("Explorer"))
 
83
        self.browser.SetFocus()
 
84
        self.hint.Enable(False)
 
85
        self.ok.SetDefault()
 
86
        # end wxGlade
 
87
 
 
88
    def __do_layout(self):
 
89
        # begin wxGlade: ImageTreeDialog.__do_layout
 
90
        sizer_14 = wx.BoxSizer(wx.VERTICAL)
 
91
        sizer_15 = wx.BoxSizer(wx.VERTICAL)
 
92
        sizer_16 = wx.BoxSizer(wx.HORIZONTAL)
 
93
        sizer_15.Add(self.browser, 1, wx.EXPAND, 0)
 
94
        sizer_16.Add(self.hint, 1, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
95
        sizer_16.Add(self.cancel, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
96
        sizer_16.Add(self.ok, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
97
        sizer_15.Add(sizer_16, 0, wx.EXPAND|wx.ALIGN_RIGHT, 0)
 
98
        self.panel.SetSizer(sizer_15)
 
99
        sizer_14.Add(self.panel, 1, wx.EXPAND, 0)
 
100
        self.SetSizer(sizer_14)
 
101
        sizer_14.Fit(self)
 
102
        self.Layout()
 
103
        # end wxGlade
 
104
 
 
105
# end of class ImageTreeDialog
 
106
 
 
107
 
 
108
class WritePluginDialog(wx.Dialog):
 
109
    def __init__(self, *args, **kwds):
 
110
        # begin wxGlade: WritePluginDialog.__init__
 
111
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
 
112
        wx.Dialog.__init__(self, *args, **kwds)
 
113
        self.icon = wx.StaticBitmap(self, -1, wx.NullBitmap)
 
114
        self.message = wx.StaticText(self, -1, _("You only need to know PIL to write a plugin for Phatch,"))
 
115
        self.template = wx.CheckBox(self, -1, _("&Show template for action plugin"))
 
116
        self.path = wx.StaticText(self, -1, _("Path"))
 
117
        self.code = wx.TextCtrl(self, -1, _("Code"), style=wx.TE_MULTILINE|wx.TE_READONLY)
 
118
        self.help = wx.Button(self, -1, _("&Ask for Help"))
 
119
        self.ok_copy_1 = wx.Button(self, wx.ID_OK, _("&OK"))
 
120
 
 
121
        self.__set_properties()
 
122
        self.__do_layout()
 
123
 
 
124
        self.Bind(wx.EVT_CHECKBOX, self.on_template, self.template)
 
125
        self.Bind(wx.EVT_BUTTON, self.on_help, self.help)
 
126
        # end wxGlade
 
127
 
 
128
    def __set_properties(self):
 
129
        # begin wxGlade: WritePluginDialog.__set_properties
 
130
        self.SetTitle(_("Write Action Plugin"))
 
131
        self.icon.SetMinSize((32, 32))
 
132
        self.code.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_INFOBK))
 
133
        # end wxGlade
 
134
 
 
135
    def __do_layout(self):
 
136
        # begin wxGlade: WritePluginDialog.__do_layout
 
137
        sizer_7 = wx.BoxSizer(wx.VERTICAL)
 
138
        sizer_9 = wx.BoxSizer(wx.HORIZONTAL)
 
139
        sizer_11 = wx.BoxSizer(wx.VERTICAL)
 
140
        sizer_10 = wx.BoxSizer(wx.HORIZONTAL)
 
141
        sizer_9.Add(self.icon, 0, wx.ALL, 6)
 
142
        sizer_11.Add(self.message, 0, wx.ALL, 6)
 
143
        sizer_11.Add(self.template, 0, wx.ALL, 6)
 
144
        sizer_11.Add(self.path, 0, wx.ALL, 6)
 
145
        sizer_11.Add(self.code, 1, wx.ALL|wx.EXPAND, 6)
 
146
        sizer_10.Add(self.help, 0, wx.ALL|wx.EXPAND, 6)
 
147
        sizer_10.Add(self.ok_copy_1, 0, wx.ALL|wx.EXPAND, 6)
 
148
        sizer_11.Add(sizer_10, 0, wx.ALIGN_RIGHT, 0)
 
149
        sizer_9.Add(sizer_11, 1, wx.EXPAND, 0)
 
150
        sizer_7.Add(sizer_9, 0, wx.EXPAND, 0)
 
151
        self.SetSizer(sizer_7)
 
152
        sizer_7.Fit(self)
 
153
        self.Layout()
 
154
        # end wxGlade
 
155
 
 
156
    def on_help(self, event): # wxGlade: WritePluginDialog.<event_handler>
 
157
        print "Event handler `on_help' not implemented!"
 
158
        event.Skip()
 
159
 
 
160
    def on_template(self, event): # wxGlade: WritePluginDialog.<event_handler>
 
161
        print "Event handler `on_template' not implemented"
 
162
        event.Skip()
 
163
 
 
164
# end of class WritePluginDialog
 
165
 
 
166
 
 
167
class ErrorDialog(wx.Dialog):
 
168
    def __init__(self, *args, **kwds):
 
169
        # begin wxGlade: ErrorDialog.__init__
 
170
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
 
171
        wx.Dialog.__init__(self, *args, **kwds)
 
172
        self.icon = wx.StaticBitmap(self, -1, wx.NullBitmap)
 
173
        self.message = wx.StaticText(self, -1, "")
 
174
        self.future_errors = wx.CheckBox(self, -1, _("Apply for future errors        "))
 
175
        self.abort = wx.Button(self, wx.ID_ABORT, _("&Abort"))
 
176
        self.ignore = wx.Button(self, wx.ID_IGNORE, _("&Skip to Next Action"))
 
177
        self.skip = wx.Button(self, wx.ID_FORWARD, _("Skip To Next &Image"))
 
178
 
 
179
        self.__set_properties()
 
180
        self.__do_layout()
 
181
 
 
182
        self.Bind(wx.EVT_BUTTON, self.on_abort, id=wx.ID_ABORT)
 
183
        self.Bind(wx.EVT_BUTTON, self.on_ignore, id=wx.ID_IGNORE)
 
184
        self.Bind(wx.EVT_BUTTON, self.on_skip, id=wx.ID_FORWARD)
 
185
        # end wxGlade
 
186
 
 
187
    def __set_properties(self):
 
188
        # begin wxGlade: ErrorDialog.__set_properties
 
189
        self.icon.SetMinSize((32, 32))
 
190
        self.ignore.SetDefault()
 
191
        # end wxGlade
 
192
 
 
193
    def __do_layout(self):
 
194
        # begin wxGlade: ErrorDialog.__do_layout
 
195
        sizer = wx.BoxSizer(wx.VERTICAL)
 
196
        sizer_4 = wx.BoxSizer(wx.HORIZONTAL)
 
197
        sizer_5 = wx.BoxSizer(wx.HORIZONTAL)
 
198
        sizer_2 = wx.BoxSizer(wx.VERTICAL)
 
199
        sizer_5.Add(self.icon, 0, wx.ALL, 6)
 
200
        sizer_2.Add(self.message, 0, wx.ALL, 6)
 
201
        sizer_5.Add(sizer_2, 1, wx.EXPAND, 0)
 
202
        sizer.Add(sizer_5, 0, wx.EXPAND, 0)
 
203
        sizer_4.Add(self.future_errors, 1, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
204
        sizer_4.Add(self.abort, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
205
        sizer_4.Add(self.ignore, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
206
        sizer_4.Add(self.skip, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 6)
 
207
        sizer.Add(sizer_4, 0, wx.EXPAND, 0)
 
208
        self.SetSizer(sizer)
 
209
        sizer.Fit(self)
 
210
        self.Layout()
 
211
        # end wxGlade
 
212
 
 
213
    def on_abort(self, event): # wxGlade: ErrorDialog.<event_handler>
 
214
        print "Event handler `on_abort' not implemented!"
 
215
        event.Skip()
 
216
 
 
217
    def on_skip(self, event): # wxGlade: ErrorDialog.<event_handler>
 
218
        print "Event handler `on_skip' not implemented!"
 
219
        event.Skip()
 
220
 
 
221
    def on_ignore(self, event): # wxGlade: ErrorDialog.<event_handler>
 
222
        print "Event handler `on_ignore' not implemented!"
 
223
        event.Skip()
 
224
 
 
225
    def on_details(self, event): # wxGlade: ErrorDialog.<event_handler>
 
226
        print "Event handler `on_details' not implemented"
 
227
        event.Skip()
 
228
 
 
229
# end of class ErrorDialog
 
230
 
 
231
 
 
232
class FilesDialog(wx.Dialog):
 
233
    def __init__(self, *args, **kwds):
 
234
        # begin wxGlade: FilesDialog.__init__
 
235
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.THICK_FRAME
 
236
        wx.Dialog.__init__(self, *args, **kwds)
 
237
        self.icon = wx.StaticBitmap(self, -1, wx.NullBitmap)
 
238
        self.message = wx.StaticText(self, -1, _("Message"))
 
239
        self.list = wx.ListCtrl(self, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
 
240
        self.cancel = wx.Button(self, wx.ID_CANCEL, _("&Abort"))
 
241
        self.ok = wx.Button(self, wx.ID_OK, _("&Continue Anyway"))
 
242
 
 
243
        self.__set_properties()
 
244
        self.__do_layout()
 
245
        # end wxGlade
 
246
 
 
247
    def __set_properties(self):
 
248
        # begin wxGlade: FilesDialog.__set_properties
 
249
        self.icon.SetMinSize((32, 32))
 
250
        self.ok.SetDefault()
 
251
        # end wxGlade
 
252
 
 
253
    def __do_layout(self):
 
254
        # begin wxGlade: FilesDialog.__do_layout
 
255
        sizer_1 = wx.BoxSizer(wx.HORIZONTAL)
 
256
        sizer_12 = wx.BoxSizer(wx.VERTICAL)
 
257
        sizer_13 = wx.BoxSizer(wx.HORIZONTAL)
 
258
        sizer_1.Add(self.icon, 0, wx.ALL, 6)
 
259
        sizer_12.Add(self.message, 0, wx.ALL, 6)
 
260
        sizer_12.Add(self.list, 1, wx.ALL|wx.EXPAND, 6)
 
261
        sizer_13.Add(self.cancel, 0, wx.ALL|wx.EXPAND, 6)
 
262
        sizer_13.Add(self.ok, 0, wx.ALL|wx.EXPAND, 6)
 
263
        sizer_12.Add(sizer_13, 0, wx.ALIGN_RIGHT, 0)
 
264
        sizer_1.Add(sizer_12, 1, wx.EXPAND, 0)
 
265
        self.SetSizer(sizer_1)
 
266
        sizer_1.Fit(self)
 
267
        self.Layout()
 
268
        # end wxGlade
 
269
 
 
270
# end of class FilesDialog
 
271
 
 
272
class ExecuteDialog(wx.Dialog):
 
273
    def __init__(self, *args, **kwds):
 
274
        # begin wxGlade: ExecuteDialog.__init__
 
275
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
 
276
        wx.Dialog.__init__(self, *args, **kwds)
 
277
        self.sizer_11_copy_4_staticbox = wx.StaticBox(self, -1, _("Options"))
 
278
        self.sizer_8_staticbox = wx.StaticBox(self, -1, _("Types"))
 
279
        self.browse = wx.Button(self, -1, _("Browse Folder"))
 
280
        self.path = wx.TextCtrl(self, -1, "", style=wx.TE_RICH2)
 
281
        self.extensions = wx.CheckListBox(self, -1)
 
282
        self.source = wx.RadioBox(self, -1, _("Source"), choices=[_("Folder"), _("File(s)"), _("Clipboard")], majorDimension=0, style=wx.RA_SPECIFY_COLS)
 
283
        self.stop_for_errors = wx.CheckBox(self, -1, _("Stop for errors"))
 
284
        self.check_images_first = wx.CheckBox(self, -1, _("Check images first"))
 
285
        self.overwrite_existing_images = wx.CheckBox(self, -1, _("Overwrite existing images"))
 
286
        self.recursive = wx.CheckBox(self, -1, _("Include all subfolders"))
 
287
        self.always_show_status_dialog = wx.CheckBox(self, -1, _("Always show status dialog when done"))
 
288
        self.desktop = wx.CheckBox(self, -1, _("Always save on desktop"))
 
289
        self.repeat_label = wx.StaticText(self, -1, _("Repeat images"))
 
290
        self.repeat = wx.SpinCtrl(self, -1, "1", min=1, max=9999999)
 
291
        self.select = wx.Button(self, wx.ID_DEFAULT, _("&All Types"))
 
292
        self.button_1 = wx.Button(self, wx.ID_CANCEL, _("&Cancel"))
 
293
        self.ok_copy = wx.Button(self, wx.ID_OK, _("&Batch"))
 
294
 
 
295
        self.__set_properties()
 
296
        self.__do_layout()
 
297
 
 
298
        self.Bind(wx.EVT_BUTTON, self.on_browse, self.browse)
 
299
        self.Bind(wx.EVT_RADIOBOX, self.on_source, self.source)
 
300
        self.Bind(wx.EVT_BUTTON, self.on_default, id=wx.ID_DEFAULT)
 
301
        # end wxGlade
 
302
 
 
303
    def __set_properties(self):
 
304
        # begin wxGlade: ExecuteDialog.__set_properties
 
305
        self.source.SetSelection(0)
 
306
        self.stop_for_errors.SetValue(1)
 
307
        self.check_images_first.SetValue(1)
 
308
        self.always_show_status_dialog.SetValue(1)
 
309
        self.ok_copy.SetDefault()
 
310
        # end wxGlade
 
311
 
 
312
    def __do_layout(self):
 
313
        # begin wxGlade: ExecuteDialog.__do_layout
 
314
        grid_sizer = wx.FlexGridSizer(5, 2, 4, 4)
 
315
        sizer_10_copy = wx.BoxSizer(wx.VERTICAL)
 
316
        sizer_3 = wx.BoxSizer(wx.HORIZONTAL)
 
317
        sizer_6 = wx.BoxSizer(wx.VERTICAL)
 
318
        sizer_11_copy_4 = wx.StaticBoxSizer(self.sizer_11_copy_4_staticbox, wx.VERTICAL)
 
319
        grid_sizer_1 = wx.FlexGridSizer(1, 2, 6, 6)
 
320
        sizer_8 = wx.StaticBoxSizer(self.sizer_8_staticbox, wx.VERTICAL)
 
321
        grid_sizer.Add(self.browse, 0, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 6)
 
322
        grid_sizer.Add(self.path, 1, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 6)
 
323
        sizer_8.Add(self.extensions, 1, wx.ALL|wx.EXPAND, 6)
 
324
        grid_sizer.Add(sizer_8, 1, wx.ALL|wx.EXPAND, 6)
 
325
        sizer_10_copy.Add(self.source, 0, wx.ALL|wx.EXPAND, 6)
 
326
        sizer_11_copy_4.Add(self.stop_for_errors, 0, wx.ALIGN_CENTER_VERTICAL, 6)
 
327
        sizer_11_copy_4.Add(self.check_images_first, 0, 0, 6)
 
328
        sizer_11_copy_4.Add(self.overwrite_existing_images, 0, 0, 6)
 
329
        sizer_11_copy_4.Add(self.recursive, 0, wx.ALIGN_CENTER_VERTICAL, 6)
 
330
        sizer_11_copy_4.Add(self.always_show_status_dialog, 0, 0, 0)
 
331
        sizer_11_copy_4.Add(self.desktop, 0, 0, 0)
 
332
        grid_sizer_1.Add(self.repeat_label, 0, wx.ALIGN_CENTER_VERTICAL, 0)
 
333
        grid_sizer_1.Add(self.repeat, 0, wx.ALIGN_CENTER_VERTICAL, 0)
 
334
        sizer_11_copy_4.Add(grid_sizer_1, 1, 0, 0)
 
335
        sizer_10_copy.Add(sizer_11_copy_4, 0, wx.ALL|wx.EXPAND, 6)
 
336
        sizer_10_copy.Add((20, 20), 1, wx.EXPAND, 0)
 
337
        sizer_10_copy.Add(sizer_6, 0, wx.EXPAND, 0)
 
338
        sizer_3.Add(self.select, 0, wx.ALL|wx.EXPAND, 6)
 
339
        sizer_3.Add((148, 10), 1, wx.EXPAND, 0)
 
340
        sizer_3.Add(self.button_1, 0, wx.ALL|wx.ALIGN_BOTTOM, 6)
 
341
        sizer_3.Add(self.ok_copy, 0, wx.ALL|wx.ALIGN_BOTTOM, 6)
 
342
        sizer_10_copy.Add(sizer_3, 0, wx.EXPAND, 0)
 
343
        grid_sizer.Add(sizer_10_copy, 1, wx.EXPAND, 0)
 
344
        self.SetSizer(grid_sizer)
 
345
        grid_sizer.Fit(self)
 
346
        grid_sizer.AddGrowableRow(1)
 
347
        grid_sizer.AddGrowableCol(1)
 
348
        self.Layout()
 
349
        # end wxGlade
 
350
        self.options_sizer = sizer_11_copy_4
 
351
 
 
352
    def on_browse(self, event): # wxGlade: ExecuteDialog.<event_handler>
 
353
        print "Event handler `on_browse' not implemented!"
 
354
        event.Skip()
 
355
 
 
356
    def on_source(self, event): # wxGlade: ExecuteDialog.<event_handler>
 
357
        print "Event handler `on_source' not implemented!"
 
358
        event.Skip()
 
359
 
 
360
    def on_default(self, event): # wxGlade: ExecuteDialog.<event_handler>
 
361
        print "Event handler `on_default' not implemented!"
 
362
        event.Skip()
 
363
 
 
364
# end of class ExecuteDialog
 
365
 
 
366
 
 
367
if __name__ == "__main__":
 
368
    import gettext
 
369
    gettext.install("app") # replace with the appropriate catalog name
 
370
 
 
371
    app = wx.PySimpleApp(0)
 
372
    wx.InitAllImageHandlers()
 
373
    aboutDialog = StatusDialog(None, -1, "")
 
374
    app.SetTopWindow(aboutDialog)
 
375
    aboutDialog.Show()
 
376
    app.MainLoop()