home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / gui / tracebackdialog.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  1.6 KB  |  32 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import wx
  5. import wx.lib.sized_controls as sc
  6. ID_BUG_REPORT = wx.NewId()
  7.  
  8. class ErrorDialog(sc.SizedFrame):
  9.     
  10.     def __init__(self):
  11.         sc.SizedFrame.__init__(self, None, -1, _('Traceback Viewer'), style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER)
  12.         pane = self.GetContentsPane()
  13.         self.exc_ctrl = wx.TextCtrl(pane, -1, '', size = (300, 300), style = wx.TE_MULTILINE)
  14.         self.exc_ctrl.SetSizerProps(expand = True, proportion = 1)
  15.         self.bug_report = wx.Button(pane, ID_BUG_REPORT, _('Send Bug Report'))
  16.         self.bug_report.SetSizerProps(expand = False, proportion = 0)
  17.         self.Bind(wx.EVT_BUTTON, self.on_bug_report, id = ID_BUG_REPORT)
  18.         self.Fit()
  19.         self.MinSize = self.Size
  20.  
  21.     
  22.     def on_bug_report(self, e):
  23.         do_diagnostic = do_diagnostic
  24.         import util.diagnostic
  25.         do_diagnostic()
  26.  
  27.     
  28.     def AppendText(self, txt):
  29.         return self.exc_ctrl.AppendText(txt)
  30.  
  31.  
  32.