~doctormo/python-snippets/lp-merge-request-example

« back to all changes in this revision

Viewing changes to pygtk/gtkxpm.py

  • Committer: Jono Bacon
  • Date: 2009-12-31 01:32:01 UTC
  • Revision ID: jono@ubuntu.com-20091231013201-0jqe2hpla824dafl
Initial import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# example gtkxpm.py
 
2
#
 
3
# [SNIPPET_NAME: GTK XPM]
 
4
# [SNIPPET_CATEGORIES: PyGTK]
 
5
# [SNIPPET_DESCRIPTION: Using XPM files in GTK]
 
6
 
 
7
gtk_xpm = [
 
8
 "32 39 5 1",
 
9
 ".      c none",
 
10
 "+      c black",
 
11
 "@      c #3070E0",
 
12
 "#      c #F05050",
 
13
 "$      c #35E035",
 
14
 "................+...............",
 
15
 "..............+++++.............",
 
16
 "............+++++@@++...........",
 
17
 "..........+++++@@@@@@++.........",
 
18
 "........++++@@@@@@@@@@++........",
 
19
 "......++++@@++++++++@@@++.......",
 
20
 ".....+++@@@+++++++++++@@@++.....",
 
21
 "...+++@@@@+++@@@@@@++++@@@@+....",
 
22
 "..+++@@@@+++@@@@@@@@+++@@@@@++..",
 
23
 ".++@@@@@@+++@@@@@@@@@@@@@@@@@@++",
 
24
 ".+#+@@@@@@++@@@@+++@@@@@@@@@@@@+",
 
25
 ".+##++@@@@+++@@@+++++@@@@@@@@$@.",
 
26
 ".+###++@@@@+++@@@+++@@@@@++$$$@.",
 
27
 ".+####+++@@@+++++++@@@@@+@$$$$@.",
 
28
 ".+#####+++@@@@+++@@@@++@$$$$$$+.",
 
29
 ".+######++++@@@@@@@++@$$$$$$$$+.",
 
30
 ".+#######+##+@@@@+++$$$$$$@@$$+.",
 
31
 ".+###+++##+##+@@++@$$$$$$++$$$+.",
 
32
 ".+###++++##+##+@@$$$$$$$@+@$$@+.",
 
33
 ".+###++++++#+++@$$@+@$$@++$$$@+.",
 
34
 ".+####+++++++#++$$@+@$$++$$$$+..",
 
35
 ".++####++++++#++$$@+@$++@$$$$+..",
 
36
 ".+#####+++++##++$$++@+++$$$$$+..",
 
37
 ".++####+++##+#++$$+++++@$$$$$+..",
 
38
 ".++####+++####++$$++++++@$$$@+..",
 
39
 ".+#####++#####++$$+++@++++@$@+..",
 
40
 ".+#####++#####++$$++@$$@+++$@@..",
 
41
 ".++####++#####++$$++$$$$$+@$@++.",
 
42
 ".++####++#####++$$++$$$$$$$$+++.",
 
43
 ".+++####+#####++$$++$$$$$$$@+++.",
 
44
 "..+++#########+@$$+@$$$$$$+++...",
 
45
 "...+++########+@$$$$$$$$@+++....",
 
46
 ".....+++######+@$$$$$$$+++......",
 
47
 "......+++#####+@$$$$$@++........",
 
48
 ".......+++####+@$$$$+++.........",
 
49
 ".........++###+$$$@++...........",
 
50
 "..........++##+$@+++............",
 
51
 "...........+++++++..............",
 
52
 ".............++++..............."
 
53
 ]