Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
xbb_help.xbbtools_help Class Reference

List of all members.

Public Member Functions

def __init__
def Styles
def Show

Public Attributes

 tid

Detailed Description

Definition at line 10 of file xbb_help.py.


Constructor & Destructor Documentation

def xbb_help.xbbtools_help.__init__ (   self,
  args 
)

Definition at line 11 of file xbb_help.py.

00011 
00012     def __init__(self, *args):
00013         Toplevel.__init__(self)
00014         self.tid = ScrolledText(self)
00015         self.tid.pack(fill = BOTH, expand = 1)
00016         self.Styles()
00017         self.Show()


Member Function Documentation

Definition at line 30 of file xbb_help.py.

00030 
00031     def Show(self):
00032         t = self.tid
00033         t.insert(END, "XBBtools Help\n", 'title')
00034         t.insert(END, """
00035 Copyright 2001 by Thomas Sicheritz-Ponten.  All rights reserved.
00036 This code is part of the Biopython distribution and governed by its
00037 license.  Please see the LICENSE file that should have been included
00038 as part of this package.\n
00039 """, 'italic')
00040         t.insert(END, 'thomas@biopython.org\n\n', 'blue')
00041         t.insert(END, '* Goto Field\n', 'bold')
00042         t.insert(END, '\tinserting one position moves cursor to position\n')
00043         t.insert(END, "\tinserting two positions, sperated by ':' ")
00044         t.insert(END, 'highlights', 'highlight')
00045         t.insert(END, ' selected range\n')
00046         t.insert(END, '\n')
00047         t.insert(END, '* Search\n', 'bold')
00048         t.insert(END, '\tambiguous dna values are\n')
00049         t.insert(END, """
00050                 A: A
00051                 C: C
00052                 G: G
00053                 T: T
00054                 M: AC
00055                 R: AG
00056                 W: AT
00057                 S: CG
00058                 Y: CT
00059                 K: GT
00060                 V: ACG
00061                 H: ACT
00062                 D: AGT
00063                 B: CGT
00064                 X: GATC
00065                 N: GATC
00066 
00067                 """, 'small')
00068 
00069         

Definition at line 18 of file xbb_help.py.

00018 
00019     def Styles(self):
00020         for c in ['red', 'blue', 'magenta', 'yellow', 'green', 'red4', 'green4', 'blue4']:
00021             self.tid.tag_configure(c, foreground = c)
00022 
00023         self.tid.tag_config('underline', underline =1)
00024         self.tid.tag_config('italic', font = ('Courier', 6, 'italic'))
00025         self.tid.tag_config('bold', font = ('Courier', 8, 'bold'))
00026         self.tid.tag_config('title', font = ('Courier', 12, 'bold'))
00027         self.tid.tag_config('small', font = ('Courier', 6, ''))
00028         self.tid.tag_config('highlight', background = 'gray')
00029         


Member Data Documentation

Definition at line 13 of file xbb_help.py.


The documentation for this class was generated from the following file: