diff options
author | Kevin Walzer <kw@codebykevin.com> | 2018-03-08 04:49:26 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2018-03-08 04:49:26 (GMT) |
commit | de1ff8a96a6e8b7062a957612362264509b16228 (patch) | |
tree | 5980b13356fa0d81faf985715e0b8a7881844476 /library | |
parent | 944d9408c03d817d09269f21055d5d40e7759ab4 (diff) | |
download | tk-de1ff8a96a6e8b7062a957612362264509b16228.zip tk-de1ff8a96a6e8b7062a957612362264509b16228.tar.gz tk-de1ff8a96a6e8b7062a957612362264509b16228.tar.bz2 |
Implementation and documentation complete, now ready to be submitted as TIP
Diffstat (limited to 'library')
-rw-r--r-- | library/text.tcl | 4 | ||||
-rw-r--r-- | library/tk.tcl | 7 | ||||
-rw-r--r-- | library/ttk/entry.tcl | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/library/text.tcl b/library/text.tcl index 6c4c0f6..9cf26de 100644 --- a/library/text.tcl +++ b/library/text.tcl @@ -398,8 +398,8 @@ bind Text <Control-v> { bind Text <<Selection>> { clipboard clear - set selected [%W get sel.first sel.last] - clipboard append $selected + catch { set selected [%W get sel.first sel.last]} + catch {clipboard append $selected} } # End of Mac only bindings } diff --git a/library/tk.tcl b/library/tk.tcl index 1913fe4..93b20b1 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -684,9 +684,12 @@ if {[tk windowingsystem] eq "aqua"} { } #stub proc for NSServices API, must be replaced with custom implementation - proc ::tk::mac::PerformService {args} { + proc ::tk::mac::PerformService {} { + + set data [clipboard get] + + tk_messageBox -icon info -title "Services Example" -message "This data was sent to Wish with the NSServices API:\n\n$data" - tk_messageBox -icon info -title "Services Example" -message "This data was sent to Wish with the NSServices API:\n\n$args" } } diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl index 01ade97..39356b9 100644 --- a/library/ttk/entry.tcl +++ b/library/ttk/entry.tcl @@ -619,7 +619,7 @@ if {[tk windowingsystem] eq "aqua"} { proc ::ttk::CheckEntrySelection {w} { if {[$w selection present]} { clipboard clear - clipboard append [::ttk::EntrySelection $w] + clipboard append [::ttk::entry::EntrySelection $w] } } } |