init python: import pygame.scrap def scrubs(what): pygame.scrap.put(pygame.SCRAP_TEXT, what.encode("utf-8")) renpy.notify("The text is now on the clipboard.") screen say(who, what): window: style "say_window" background None xalign 0.0 yalign 1.0 xsize 1200 ysize 300 hbox: spacing 20 if who: text who: id "who" xpos 35 ypos 828 textalign 0.0 style "say_label" if what: textbutton _('{i}Copy into the clipboard'): xpos 35 ypos 828 yoffset -10 text_font 'DejavuSans.ttf' text_size 20 text_outlines [(2, '#000', absolute (0), absolute (0))] action Function(scrubs, what) text what: id "what" xpos 35 # Moves right ypos 865 # Moves further down inside the box textalign 0.0 style "say_dialogue" ## Keep side images aligned properly if not renpy.variant("small"): add SideImage() xalign 0.0 yalign 1.0