Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
xbb_utils.NotePad Class Reference

List of all members.

Public Member Functions

def __init__
def text_id
def insert
def save

Public Attributes

 menubar
 filemenu
 yscroll
 tid

Detailed Description

Definition at line 12 of file xbb_utils.py.


Constructor & Destructor Documentation

def xbb_utils.NotePad.__init__ (   self,
  master = None 
)

Definition at line 13 of file xbb_utils.py.

00013 
00014     def __init__(self, master= None):
00015         Toplevel.__init__(self, master)
00016         self.menubar = Menu(self)
00017         self.filemenu = Menu(self.menubar)
00018         self.filemenu.add_command(label = "Save", command = self.save)
00019         self.filemenu.add_separator()
00020         self.filemenu.add_command(label = "Dismiss", command = self.destroy)
00021     
00022         self.menubar.add_cascade(label="File", menu=self.filemenu)
00023         self.configure(menu = self.menubar)
00024         self.yscroll = Scrollbar(self,orient=VERTICAL)
00025         self.tid = Text(self, yscrollcommand = self.yscroll.set)
00026         self.yscroll.configure(command = self.tid.yview)
00027         self.tid.pack(side = LEFT, fill = BOTH, expand = 1)
00028         self.yscroll.pack(side = RIGHT, fill = Y)
00029         


Member Function Documentation

def xbb_utils.NotePad.insert (   self,
  start,
  txt 
)

Definition at line 31 of file xbb_utils.py.

00031 
00032     def insert(self,start, txt):
00033         self.tid.insert(start, txt)
        
def xbb_utils.NotePad.save (   self)

Definition at line 34 of file xbb_utils.py.

00034 
00035     def save(self):
00036         fd = SaveFileDialog(self)
00037         file = fd.go(key="test")
00038         if file:
00039             fid = open(file, 'w')
00040             fid.write(self.tid.get(0.0,END))
00041             fid.close()

Here is the call graph for this function:

def xbb_utils.NotePad.text_id (   self)

Definition at line 30 of file xbb_utils.py.

00030 
    def text_id(self): return self.tid

Member Data Documentation

Definition at line 16 of file xbb_utils.py.

Definition at line 15 of file xbb_utils.py.

Definition at line 24 of file xbb_utils.py.

Definition at line 23 of file xbb_utils.py.


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