code: def setup(self, fname):
          
          self.filename = fname
          self.runconfigoptions = RunConfigOptions(self)
          self.runconfigoptions.set(RunConfiguration(fname).get())
          self.add_widgets(self.runconfigoptions)
          self.add_button_box(QDialogButtonBox.Cancel)
          self.setWindowTitle(_("Run settings for %s") % osp.basename(fname))
docs: Setup Run Configuration dialog with filename *fname*