(self, **kw)
return self.tk.call(('clipboard', 'get') + self._options(kw))
Retrieve data from the clipboard on window's display.

        The window keyword defaults to the root window of the Tkinter
        application.

        The type keyword specifies the form in which the data is
        to be returned and should be an atom name such as STRING
        or FILE_NAME.  Type defaults to STRING, except on X11, where the default
        is to try UTF8_STRING and fall back to STRING.

        This command is equivalent to:

        selection_get(CLIPBOARD)
Retrieve data from the clipboard on window's display.
Retrieve data from the clipboard on window s display .
def clipboard_get(self, **kw):
        """Retrieve data from the clipboard on window's display.

        The window keyword defaults to the root window of the Tkinter
        application.

        The type keyword specifies the form in which the data is
        to be returned and should be an atom name such as STRING
        or FILE_NAME.  Type defaults to STRING, except on X11, where the default
        is to try UTF8_STRING and fall back to STRING.

        This command is equivalent to:

        selection_get(CLIPBOARD)
        """
        if 'type' not in kw and self._windowingsystem == 'x11':
            try:
                kw['type'] = 'UTF8_STRING'
                return self.tk.call(('clipboard', 'get') + self._options(kw))
            except TclError:
                del kw['type']
        return self.tk.call(('clipboard', 'get') + self._options(kw))
def clipboard_get ( self , * * kw ) : if 'type' not in kw and self . _windowingsystem == 'x11' : try : kw [ 'type' ] = 'UTF8_STRING' return self . tk . call ( ( 'clipboard' , 'get' ) + self . _options ( kw ) ) except TclError : del kw [ 'type' ] return self . tk . call ( ( 'clipboard' , 'get' ) + self . _options ( kw ) )