Re: cut & paste text between tkinter widgets

2005-08-04 Thread Christopher Subich
Repton wrote: >>This poses a small problem. I'm not sure whether this is a >>Win32-related issue, or it's because the PRIMARY selection isn't fully >>configured. > > > You need to select something first :-) > That doesn't work for inter-process communication, though, at least not with win32 n

Re: cut & paste text between tkinter widgets

2005-08-04 Thread Repton
Christopher Subich wrote: > In experimenting with this, I found a slight... fun issue involved in > this. Selection_get is the correct method to call, but it doesn't quite > work out of the box. > >>> g.selection_get() > Traceback (most recent call last): >File "", line 1, in ? >File "C:\

Re: cut & paste text between tkinter widgets

2005-08-04 Thread William Gill
handy. Thanks, Bill [EMAIL PROTECTED] wrote: > Here's some code that gives a cut-copy-paste pop-up window on all Entry > widgets > in an application. > > This code is released into the public domain. > > Jeff Epler > # >

Re: cut & paste text between tkinter widgets

2005-08-03 Thread Christopher Subich
Apologies in advance to anyone who has this post mangled, I use a couple Unicode characters at the end and Thunderbird wants to use UTF8 for the message encoding. Unless it does something weird, this post should still be legible... but I'm not going to rely on that. :) William Gill wrote: >> 2

Re: cut & paste text between tkinter widgets

2005-08-03 Thread jepler
Here's some code that gives a cut-copy-paste pop-up window on all Entry widgets in an application. This code is released into the public domain. Jeff Epler # import Tkinter def make_menu(w): global the_menu the_menu

Re: cut & paste text between tkinter widgets

2005-08-03 Thread William Gill
>> Is there a simple way to cut and paste from a tkinter text widget to >> an entry widget? I know I could create a mouse button event that >> triggers a popup (message widget) prompting for cut/paste in each of >> the widgets using a temp variable to hold the text, but I don't wnat >> to re

Re: cut & paste text between tkinter widgets

2005-08-03 Thread Christopher Subich
William Gill wrote: > Is there a simple way to cut and paste from a tkinter text widget to an > entry widget? I know I could create a mouse button event that triggers > a popup (message widget) prompting for cut/paste in each of the widgets > using a temp variable to hold the text, but I don't

cut & paste text between tkinter widgets

2005-08-03 Thread William Gill
Is there a simple way to cut and paste from a tkinter text widget to an entry widget? I know I could create a mouse button event that triggers a popup (message widget) prompting for cut/paste in each of the widgets using a temp variable to hold the text, but I don't wnat to reinvent the wheel