Creates custom message dialog

This commit is contained in:
Julien Lengrand-Lambert
2012-08-18 11:28:11 +02:00
parent 271fce60c7
commit 4099533c8f
2 changed files with 35 additions and 2 deletions

View File

@@ -12,10 +12,11 @@ import wx
import os
import logging
from AboutDialog import AboutDialog
class IvolutionWindow(wx.Frame):
"""
Main Window of the application
Main Window of the Ivolution application
"""
def __init__(self, parent, title):
"""
@@ -69,13 +70,23 @@ class IvolutionWindow(wx.Frame):
# Events Handling
def on_about(self, event):
"""
Displays the about box for Ivolution
TODO : Create the About Window
"""
about = AboutDialog(self, "Ivolution")
about.ShowModal() # Show it
about.Destroy() # finally destroy it when finished.
# A message dialog box with an OK button. wx.OK is a standard ID in wxWidgets.
# dlg = wx.MessageDialog(self, "Ivolution", "About Ivolution", wx.OK)
# dlg.ShowModal() # Show it
# dlg.Destroy() # finally destroy it when finished.
print "About !"
def on_exit(self, event):
"""
Called when the IvolutionWindow is closed, or File/Exit is called.
"""
print "Exit !"
self.Close(True) # Close the frame.
def setup_logger(self):
"""