Public Member Functions | |
| def | __init__ |
| def | OnButtonUpdateIPDBButton |
| "Install IP Database" Button Handler | |
| def | OnButtonVisitWebsiteButton |
| "EyeSpy Home Page" Button handler | |
| def | OnViewLicenseButton |
| "View License" Button Handler | |
Public Attributes | |
| aboutText | |
| buttonUpdateIPDB | |
| buttonVisitWebsite | |
| ViewLicense | |
| optConfig | |
| geoUtils | |
This class should be edited using the Boa Constructor IDE. Minimal inline documentation will be provided for this class as it may interfere with the automatic code generation.
The aboutDialog class represents the applications's 'About' window.
Definition at line 43 of file aboutDialog.py.
| def objects.gui.aboutDialog.aboutDialog.__init__ | ( | self, | ||
| parent, | ||||
| optionsConfig | ||||
| ) |
Definition at line 85 of file aboutDialog.py.
00085 : 00086 self._init_ctrls(parent) 00087 self.optConfig = optionsConfig 00088 00089 self.geoUtils = geoIPUtils("") 00090 lastUpdateTime = self.geoUtils.getLastUpdateTime() 00091 00092 00093 # enter static about header 00094 aboutString = globalStrings.ABOUT_STRING 00095 00096 aboutString += "\n" 00097 00098 if (self.geoUtils.isGEOIPDatabaseInstalled() == False): 00099 aboutString += "The GEO IP Database is not included by default with EyeSpy. " 00100 aboutString += "Please visit EyeSpy's home page to view instructions on how to obtain a copy.\n" 00101 else: 00102 aboutString += "The Last GEO IP Update was on: " + lastUpdateTime 00103 00104 00105 self.aboutText.WriteText(aboutString) 00106 00107 ## "Install IP Database" Button Handler
| def objects.gui.aboutDialog.aboutDialog.OnButtonUpdateIPDBButton | ( | self, | ||
| event | ||||
| ) |
"Install IP Database" Button Handler
| event | Standard wx.Button event |
Definition at line 110 of file aboutDialog.py.
00110 : 00111 dlg = wx.FileDialog(self, "Install GEO IP Database ...", os.getcwd(), "*.dat", "GeoIP Data files (*.dat)|*.dat", style=wx.OPEN) 00112 00113 if dlg.ShowModal() == wx.ID_OK: 00114 geoIPArchivePath = dlg.GetPath() 00115 print geoIPArchivePath 00116 00117 self.geoUtils = geoIPUtils(geoIPArchivePath) 00118 00119 00120 # check to see if this archive is actually older than what is currently 00121 # installed 00122 00123 try: 00124 self.geoUtils.updateGEOIPDatabase(geoIPArchivePath) 00125 00126 dlg = wx.MessageDialog(None, "Database was successfully installed.\nYou must restart the application for changes to take effect", 'Info', wx.ICON_INFORMATION) 00127 result = dlg.ShowModal() 00128 dlg.Destroy() 00129 00130 00131 except Exception, ex: 00132 logger.log(__name__ + ": GEO IP Database not updated because of an exception") 00133 00134 errMsg = "Could update Geo IP Database: %s" % str(ex) 00135 dlg = wx.MessageDialog(None, errMsg, 'Error', wx.ICON_ERROR) 00136 result = dlg.ShowModal() 00137 dlg.Destroy() 00138 00139 ## "EyeSpy Home Page" Button handler
| def objects.gui.aboutDialog.aboutDialog.OnButtonVisitWebsiteButton | ( | self, | ||
| event | ||||
| ) |
"EyeSpy Home Page" Button handler
| event | Standard wx.Button event |
Definition at line 142 of file aboutDialog.py.
00142 : 00143 webbrowser.open_new_tab(self.optConfig.navigation_getAppHomePage()) 00144 ## "View License" Button Handler
| def objects.gui.aboutDialog.aboutDialog.OnViewLicenseButton | ( | self, | ||
| event | ||||
| ) |
"View License" Button Handler
| event | Standard wx.Button event |
Definition at line 147 of file aboutDialog.py.
Definition at line 54 of file aboutDialog.py.
Definition at line 63 of file aboutDialog.py.
Definition at line 69 of file aboutDialog.py.
Definition at line 89 of file aboutDialog.py.
Definition at line 87 of file aboutDialog.py.
Definition at line 79 of file aboutDialog.py.
1.5.8