Logo Search packages:      
Sourcecode: pymol version File versions

def pmg_tk::startup::apbs_tools::PmwFileDialog::selectdir (   self  ) 

Take selected directory from the dirnamebox into the dirname

Definition at line 1657 of file apbs_tools.py.

01657                        :
      """Take selected directory from the dirnamebox into the dirname"""
      cs=self.component('dirnamebox').curselection()
      if cs!=():
          value=self.component('dirnamebox').get(cs)
          dir=self['directory']
          if not dir:
            dir=os.getcwd()
          if value:
            if value=='..':
                dir=os.path.split(dir)[0]
            else:
                dir=os.path.join(dir,value)
          self.configure(directory=dir)
          self.fillit()

    def askfilename(self,directory=None,filter=None):


Generated by  Doxygen 1.6.0   Back to index