home *** CD-ROM | disk | FTP | other *** search
/ com!online 2005 April / com_0405_1.iso / opensource / BTpp-0.5.4-bin.exe / $INSTDIR / BT++.exe / TabLog / TabLog.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2003-04-19  |  1.9 KB  |  41 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.2)
  3.  
  4. from wxPython.wx import *
  5. from MultiPartFrame import MultiPartFrame
  6. from Images import GetBitmap
  7. from LogWindow import LogWindow
  8. import Log
  9.  
  10. class TabLog(wxPanel):
  11.     
  12.     def __init__(self, parent):
  13.         wxPanel.__init__(self, parent, -1, wxPoint(2, 65), wxSize(786, 347), style = 0)
  14.         self.mpf = MultiPartFrame(self, wxPoint(2, 60), wxSize(500, 250), GetBitmap('Log_On'), GetBitmap('Log_Off'))
  15.         self.mpf.SetHelpText('This is the log window, details on torrents (and errors) will appear here.')
  16.         self.p1 = wxPanel(self.mpf, -1, style = 0)
  17.         self.p2 = wxPanel(self.mpf, -1, style = 0)
  18.         self.p3 = wxPanel(self.mpf, -1, style = 0)
  19.         self.mpf.Attach(self.p1, 'General')
  20.         self.mpf.Attach(self.p2, 'Downloads')
  21.         self.mpf.Attach(self.p3, 'Seeds')
  22.         s1 = wxBoxSizer(wxVERTICAL)
  23.         s2 = wxBoxSizer(wxVERTICAL)
  24.         s3 = wxBoxSizer(wxVERTICAL)
  25.         l1 = LogWindow(self.p1, wxPoint(0, 0))
  26.         l2 = LogWindow(self.p2, wxPoint(0, 0))
  27.         l3 = LogWindow(self.p3, wxPoint(0, 0))
  28.         s1.Add(l1, 1, wxEXPAND | wxALL, 0)
  29.         s2.Add(l2, 1, wxEXPAND | wxALL, 0)
  30.         s3.Add(l3, 1, wxEXPAND | wxALL, 0)
  31.         self.p1.SetSizer(s1)
  32.         self.p2.SetSizer(s2)
  33.         self.p3.SetSizer(s3)
  34.         sizer = wxBoxSizer(wxHORIZONTAL)
  35.         sizer.Add(self.mpf, 1, wxEXPAND | wxALL, 3)
  36.         self.SetSizer(sizer)
  37.         Log.Info.AddHandler(l1)
  38.         Log.Info('Starting up...')
  39.  
  40.  
  41.