Changeset 2023 for trunk/source/gui/logViewer.py
- Timestamp:
- 05/07/08 09:04:04 (7 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
. (modified) (3 props)
-
source/gui/logViewer.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property bzr:revision-id:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
-
old new 87 87 1813 jamie@jantrid.net-20080502122842-u2xfo1in3euux4ci 88 88 1825 jamie@jantrid.net-20080506061049-3qk3r33c6a8dc4jo 89 1828 jamie@jantrid.net-20080507090220-y1fjk3t08rbcx18z
-
- Property bzr:revision-info
-
old new 1 timestamp: 2008-05-0 6 16:10:49.217000008+10001 timestamp: 2008-05-07 19:02:20.607000113 +1000 2 2 committer: James Teh <jamie@jantrid.net> 3 3 properties:
-
- Property bzr:ancestry:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
-
old new 3 3 jamie@jantrid.net-20080212104116-78n366kl7diwve24 4 4 jamie@jantrid.net-20080229050825-20q1xhb2t4c0zcza 5 jamie@jantrid.net-20080507074841-cxoldzwvz389fete
-
- Property bzr:revision-id:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
-
trunk/source/gui/logViewer.py
r1962 r2023 7 7 import gui 8 8 9 #: The singleton instance of the log viewer UI. 10 logViewer = None 11 9 12 class LogViewer(wx.Frame): 10 13 """The NVDA log viewer GUI. 11 14 """ 12 15 13 def __init__(self): 14 super(LogViewer, self).__init__(None, wx.ID_ANY, _("NVDA Log Viewer")) 15 gui.topLevelWindows.append(self) 16 def __init__(self, parent): 17 super(LogViewer, self).__init__(parent, wx.ID_ANY, _("NVDA Log Viewer")) 16 18 self.Bind(wx.EVT_ACTIVATE, self.onActivate) 17 19 self.Bind(wx.EVT_CLOSE, self.onClose) … … 47 49 48 50 def onActivate(self, evt): 49 self.refresh() 51 if evt.GetActive(): 52 self.refresh() 50 53 evt.Skip() 51 54 … … 64 67 wx.MessageBox(_("Error saving log: %s") % e.strerror, _("Error"), style=wx.OK | wx.ICON_ERROR) 65 68 66 def Destroy(self): 67 gui.topLevelWindows.remove(self) 68 super(LogViewer, self).Destroy() 69 def activate(): 70 """Activate the log viewer. 71 If the log viewer has not already been created and opened, this will create and open it. 72 Otherwise, it will be brought to the foreground if possible. 73 """ 74 global logViewer 75 if not logViewer: 76 logViewer = LogViewer(gui.mainFrame) 77 logViewer.Raise() 78 logViewer.Show()

NVDA is supported by