> On 2017-05-02, at 03:45, Michael Lange <klappn...@web.de> wrote: > > Hi, > > On Mon, 1 May 2017 12:39:10 -0600 > Bob Greschke <b...@passcal.nmt.edu> wrote: > > (...) >> >> Yeah, quickly searching went right to tkdnd. We're still Python2, so no >> problem there. >> >> I'm starting to think that copy and paste into a window may be the only >> option, but I'm not sure what Xming/XQuartz will do with the file. >> >> Oh, well, I Command-C'ed a text file on my Mac to a Toplevel in the >> program with Ctrl-V and the file name was typed in the Text(). That's >> cute. :) "Paste" didn't even show up in the XQuartz Edit menu after the >> Command-C. This may just not be possible. >> >> I guess I could give everyone a little utility that produces a >> uuencode'd file from their .gif, or whatever, on their Desktop, and >> then they copy and paste the contents of that into a program's >> Toplevel/Text() after opening it with their favorite text editor. Then >> select a menu item to suck in whatever it was they pasted. >> >> Are users that smart? Dang. ;) > > Maybe you could set up some minimalist file browser from which they > could pick a file, copy the (uuencoded) contents to the clipboard and then > paste this into the window on the other side. If "the other side" detects > uuencoded data it might display an icon instead of bothering the users > with a portion of cryptic looking text and handle the text data somehow > internally. Not sure if this is possible, but if it is, it might be more > intuitive to use. Maybe this could even be done with DnD :) > > Regards > > Michael > > .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. > > Extreme feminine beauty is always disturbing. > -- Spock, "The Cloud Minders", stardate 5818.4 >
Someone should be paying you. :) That would be better. I think I can do this. I've never stuck things on the clipboard from Python before, but I'll figure it out. Thanks! (Again!) Bob _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss