def __init__(self, parent=None, file=None): frm = Frame(parent) frm.pack(fill=X) Button(frm, text='Save', command=self.onSave).pack(side=LEFT) Button(frm, text='Cut', command=self.onCut).pack(side=LEFT) Button(frm, text='Paste', command=self.onPaste).pack(side=LEFT) Button(frm, text='Find', command=self.onFind).pack(side=LEFT) Quitter(frm).pack(side=LEFT) ScrolledText.__init__(self, parent, file=file) self.text.config(font=('courier', 12, 'normal'))
def __init__(self,parent=None, file=None): frm = Frame(parent) frm.pack(fill=X) Button(frm,text='Save',command=self.onSave).pack(side=LEFT) Button(frm,text='Cut', command=self.onCut).pack(side=LEFT) Button(frm,text='Paste', command=self.onPaste).pack(side=LEFT) Button(frm,text='Find', command=self.onFind).pack(side=LEFT) Quitter(frm).pack(side=LEFT) ScrolledText.__init__(self,parent,file=file) self.text.config(font=('courier',9,'normal'))
def __init__(self, parent=None, file=None): frm = Frame(parent) frm.pack(fill=X) Button(frm, text="Выбрать каталог с логами", command=self.onStat).pack(side=LEFT) Button(frm, text='Сохранить', command=self.onSave).pack(side=LEFT) Quitter(frm).pack(side=LEFT) ScrolledText.__init__(self, parent, file=file) self.text.config(font=('courier', 9, 'normal')) self.pattern_SQL = r'SQLCODE=-[0-9][0-9][0-9]' self.pattern_E = r'\s[A-Z][A-Z][A-Z][A-Z][0-9][0-9][0-9][0-9]E' self.pattern_JMS = r'JMS\w{1,6}\d{4}' self.types_of_stat = ['Сообщения об ошибках', 'Сообщения JMS', 'Сообщения DB2']