Logo Search packages:      
Sourcecode: pymol version File versions

def pmg_tk::startup::apbs_tools::PmwFileDialog::askfilename (   self,
  directory = None,
  filter = None 
)

The actual client function. Activates the dialog, and
   returns only after a valid filename has been entered 
     (return value is that filename) or when canceled (return 
     value is None)

Definition at line 1673 of file apbs_tools.py.

01673                                                     :
      """The actual client function. Activates the dialog, and
         returns only after a valid filename has been entered 
           (return value is that filename) or when canceled (return 
           value is None)"""
      if directory!=None:
          self.configure(directory=directory)
      if filter!=None:
          self.configure(filter=filter)
      self.fillit()
        self.canceled=1 # Needed for when user kills dialog window
      self.activate()
      if self.canceled:
          return None
      else:
          return self.component('filename').get()

    lastdir=""
    lastfilter=None


Generated by  Doxygen 1.6.0   Back to index