Use the Carbon scrap manager interface if the old interface isn't available.
This commit is contained in:
parent
9cf00dd551
commit
65293680aa
|
@ -291,8 +291,13 @@ class BrowserWidget(W.List):
|
|||
text = string.join(selitems, '\r')
|
||||
if text:
|
||||
from Carbon import Scrap
|
||||
Scrap.ZeroScrap()
|
||||
Scrap.PutScrap('TEXT', text)
|
||||
if hasattr(Scrap, 'PutScrap'):
|
||||
Scrap.ZeroScrap()
|
||||
Scrap.PutScrap('TEXT', text)
|
||||
else:
|
||||
Scrap.ClearCurrentScrap()
|
||||
sc = Scrap.GetCurrentScrap()
|
||||
sc.PutScrapFlavor('TEXT', 0, text)
|
||||
|
||||
|
||||
class Browser:
|
||||
|
|
Loading…
Reference in New Issue