File: lsystemInteractive.rsrc.py

package info (click to toggle)
pythoncard 0.8.2-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,452 kB
  • sloc: python: 56,787; makefile: 56; sh: 22
file content (161 lines) | stat: -rw-r--r-- 3,883 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{'application':{'type':'Application',
          'name':'Doodle',
    'backgrounds': [
    {'type':'Background',
          'name':'bgLSystem',
          'title':'L-System PythonCard Application',
          'size':(579, 550),
          'statusBar':1,
          'style':['resizeable'],

        'menubar': {'type':'MenuBar',
         'menus': [
             {'type':'Menu',
             'name':'menuFile',
             'label':'&File',
             'items': [
                  {'type':'MenuItem',
                   'name':'menuFileOpen',
                   'label':'&Open...\tCtrl+O',
                  },
                  {'type':'MenuItem',
                   'name':'menuFileSaveAs',
                   'label':'Save &As...',
                  },
                  {'type':'MenuItem',
                   'name':'fileSep1',
                   'label':'-',
                  },
                  {'type':'MenuItem',
                   'name':'menuFileExit',
                   'label':'E&xit\tAlt+X',
                   'command':'exit',
                  },
              ]
             },
             {'type':'Menu',
             'name':'menuEdit',
             'label':'&Edit',
             'items': [
                  {'type':'MenuItem',
                   'name':'menuEditCopy',
                   'label':'&Copy\tCtrl+C',
                  },
                  {'type':'MenuItem',
                   'name':'menuEditPaste',
                   'label':'&Paste\tCtrl+V',
                  },
                  {'type':'MenuItem',
                   'name':'editSep1',
                   'label':'-',
                  },
                  {'type':'MenuItem',
                   'name':'menuEditClear',
                   'label':'&Clear',
                   'command':'editClear',
                  },
              ]
             },
             {'type':'Menu',
             'name':'menuRender',
             'label':'&Render',
             'items': [
                  {'type':'MenuItem',
                   'name':'menuRenderRenderNow',
                   'label':'&Render Now\tCtrl+R',
                   'command':'Render',
                  },
              ]
             },
         ]
     },
         'components': [

{'type':'TextField', 
    'name':'angleDisplay', 
    'position':(420, 25), 
    'size':(36, -1), 
    },

{'type':'StaticText', 
    'name':'StaticText2', 
    'position':(371, 29), 
    'text':'Angle:', 
    },

{'type':'Slider', 
    'name':'angle', 
    'position':(367, 54), 
    'size':(200, 20), 
    'labels':False, 
    'layout':'horizontal', 
    'max':360, 
    'min':0, 
    'tickFrequency':0, 
    'ticks':False, 
    'value':45, 
    },

{'type':'StaticText', 
    'name':'iterationDisplay', 
    'position':(435, 76), 
    },

{'type':'StaticText', 
    'name':'StaticText1', 
    'position':(368, 76), 
    'text':'Iterations:', 
    },

{'type':'Slider', 
    'name':'iterations', 
    'position':(364, 98), 
    'size':(200, 20), 
    'labels':False, 
    'layout':'horizontal', 
    'max':10, 
    'min':1, 
    'tickFrequency':0, 
    'ticks':False, 
    'value':3, 
    },

{'type':'Button', 
    'name':'btnRender', 
    'position':(1, 35), 
    'command':'Render', 
    'label':'Render', 
    },

{'type':'TextArea', 
    'name':'scriptField', 
    'position':(96, 0), 
    'size':(201, 118), 
    'text':'axiom=l\nl=+rf-lfl-fr+\nr=-lf+rfr+fl-', 
    },

{'type':'Button', 
    'name':'btnColor', 
    'position':(1, 67), 
    'label':'Color', 
    },

{'type':'BitmapCanvas', 
    'name':'onscreen', 
    'position':(0, 121), 
    'size':(568, 348), 
    #'backgroundColor':(0, 0, 0), 
    },

{'type':'BitmapCanvas', 
    'name':'bufOff', 
    'position':(0, 121), 
    'size':(568 * 4, 348 * 4), 
    #'backgroundColor':(0, 0, 0), 
    'visible':False,
    },

] # end components
} # end background
] # end backgrounds
} }