clipboard
Keith Murphy
kpmurphy at my-deja.com
Tue Jul 11 10:36:25 EDT 2000
hi richard,
i tried that, and i got the following error message...
Exception in Tkinter callback
Traceback (innermost last):
File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 764, in
__call__
return apply(self.func, args)
File "tkPad.py", line 146, in paste
contents = root.selection_get()
File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 280, in
selection_get
return self.tk.call(('selection', 'get') + self._options(kw))
TclError: PRIMARY selection doesn't exist or form "STRING" not defined
?? thanks,
-->keith
In article <Y8sa5.10253$_O.174557 at news2-win.server.ntlworld.com>,
"richard_chamberlain" <richard_chamberlain at ntlworld.com> wrote:
> Hi Keith,
>
> content=root.selection_get()
>
> Richard
>
> Keith Murphy <kpmurphy at my-deja.com> wrote in message
> news:8kdeae$9fv$1 at nnrp1.deja.com...
> > In article <8kddiq$8oc$1 at nnrp1.deja.com>,
> > Keith Murphy <kpmurphy at my-deja.com> wrote:
> > > how do you read from / write to the system clipboard from Tkinter?
> > i'm
> > > on a unix machine, if that matters. Thanks,
> > >
> > > -->keith
> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.
> > >
> >
> > i've found out that...
> >
> > >>> root.clipboard_clear()
> > >>> root.clipboard_append('python rules!')
> >
> >
> > ... places text on the system clipboard, but how do you paste?
> > thanks...
> >
> > -->keith
> >
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list