Logo Search packages:      
Sourcecode: pymol version File versions

def pmg_tk::startup::apbs_tools::PmwFileDialog::tidy (   self,
  w,
  v 
)

Insert text v into the entry and at the top of the list of 
     the combobox w, remove duplicates

Definition at line 1592 of file apbs_tools.py.

01592                       :
      """Insert text v into the entry and at the top of the list of 
           the combobox w, remove duplicates"""
      if not v:
          return
      entry=w.component('entry')
      entry.delete(0,'end')
      entry.insert(0,v)
      list=w.component('scrolledlist')
      list.insert(0,v)
      index=1
      while index<list.index('end'):
          k=list.get(index)
          if k==v or index>self['historylen']:
            list.delete(index)
          else:
            index=index+1
        w.checkentry()

    def setfilename(self,value):


Generated by  Doxygen 1.6.0   Back to index