Development Team/Almanac/GTK's Clipboard Module: Difference between revisions
| Line 60: | Line 60: | ||
#Create a clipboard specifically for data on the second page of this activity's notebook | #Create a clipboard specifically for data on the second page of this activity's notebook | ||
self.pg2_clipboard = gtk.clipboard_get('ANNOTATE_CLIPBOARD_2') | self.pg2_clipboard = gtk.clipboard_get('ANNOTATE_CLIPBOARD_2') | ||
</pre> | |||
=== How do I work with multiple clipboards in my activity? === | |||
First, you need to create named clipboards for each context that you will be saving data. | |||
= Working with More Complex Data Structures on the Clipboard = | = Working with More Complex Data Structures on the Clipboard = | ||