close the dialog
14910
public void close() {
        if (animation != null) {
            animation.setRate(-1);
            animation.play();
            animation.setOnFinished(e -> {
                closeDialog();
            });
        } else {
            setOpacity(0);
            setVisible(false);
            closeDialog();
        }

    }
160199
public void close()
	{
		setFocusedComponent(null, true);
		setHoveredComponent(null, true);
		Keyboard.enableRepeatEvents(false);
		if (this.mc.player != null)
			this.mc.player.closeScreen();
		this.mc.displayGuiScreen((GuiScreen) null);
		this.mc.setIngameFocus();
		return;
	}
425687
def closeEvent(self, event):
        """"""
        self.ok.setText("Checking...")
        QtGui.QApplication.processEvents()
        self.model().cleanComponents()
        self.model().purgeAutoSelected()
        msg = self.model().verify()
        if not msg:
            msg = self.model().warning()
        if msg:
            warnBox = QtGui.QMessageBox( QtGui.QMessageBox.Warning, 'Warning - Invalid Settings', '{}. Do you want to change this?'.format(msg) )
            yesButton = warnBox.addButton(self.tr('Edit'), QtGui.QMessageBox.YesRole)
            noButton = warnBox.addButton(self.tr('Ignore'), QtGui.QMessageBox.NoRole)
            warnBox.exec_()
            if warnBox.clickedButton() == yesButton:
                event.ignore()
        self.ok.setText("OK")
1272642
def close(self):
        
        if hasattr(self.response, "close"):
            self.response.close()
        for func in self._on_close:
            func()
1065031
def _closeCompletion(self):
        
        if self._widget is not None:
            self._widget.close()
            self._widget = None
            self._completionOpenedManually = False
1071432
void closeDelayed() {

        Scheduler.RepeatingCommand command = new Scheduler.RepeatingCommand() {

            public boolean execute() {

                if (CmsErrorDialog.isShowingErrorDialogs()) {
                    return true;
                } else {
                    Window.Location.assign(m_closeLink);
                    return false;
                }

            }
        };
        Scheduler.get().scheduleFixedDelay(command, 300);
    }
464817
public void closeEditor() {

        if (m_saveButton != null) {
            if (m_saveButton.isEnabled()) {
                CmsConfirmDialog dialog = new CmsConfirmDialog(
                    org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_DIALOG_RESET_TITLE_0),
                    Messages.get().key(Messages.GUI_CONFIRM_LEAVING_EDITOR_0));
                dialog.setHandler(new I_CmsConfirmDialogHandler() {

                    public void onClose() {

                        cancelEdit();
                    }

                    public void onOk() {

                        saveAndExit();
                    }
                });
                dialog.center();
            } else {
                cancelEdit();
            }
        }
    }
852930
def close(self):
        ''''''
        self.time_to_quit = True
        self.close_window.release()
        if self.child.is_alive():
            self.child.join(1)

        self.child.terminate()

        self.mavlink_message_queue_handler.join()

        self.event_queue_lock.acquire()
        self.event_queue.put(MissionEditorEvent(me_event.MEE_TIME_TO_QUIT));
        self.event_queue_lock.release()
336746
def close(self):
        

        data = self.data
        self.data = None

        if hasattr(data, "close"):
            data.close()
631087
def close(self):
        """"""
        self.current = Token(self.current.lineno, TOKEN_EOF, '')
        self._next = None
        self.closed = True
914311
def close(self):
        """"""
        if not self.lock_disable and self.session_config_lock:
            self._unlock()
        self.device.close()
1115223
def close(self):
        
        target = self.prev if (self.is_current and self.prev != self) else None

        with switch_window(self._browser, self.name):
            self._browser.driver.close()

        if target is not None:
            target.is_current = True
96884
def close(self):
        
        if self._file:
            if not(self._file.closed):
                self._file.close()
        self.closed = True
317496
def close(self, proto):
        # pylint: disable=no-self-use
        """"""

        try:
            proto.sendClose()
        except Exception as ex:
            logger.exception("Failed to send close")
            proto.reraise(ex)
1122080
def close(self):
        
        if not self._closed:
            try:
                self._cursor.close()
            except Exception:
                pass
            self._closed = True
162801
def closeEvent(self, event):
        """"""
        self.plugin.dockwidget.setWidget(self.plugin)
        self.plugin.dockwidget.setVisible(True)
        self.plugin.switch_to_plugin()
        QMainWindow.closeEvent(self, event)
        self.plugin.undocked_window = None
1144447
def closing_plugin(self, cancelable=False):
        """"""
        self.dialog_manager.close_all()
        self.shell.exit_interpreter()
        return True