~toolpart/+junk/pythoncard

« back to all changes in this revision

Viewing changes to samples/testNotebook/widgets.rsrc.py

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-03-04 23:55:10 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100304235510-3v6lbhzwrgm0pcca
Tags: 0.8.2-1
* QA upload.
* New upstream release
* debian/control
  - set maintainer to QA group
  - set Homepage field, removing the URL from packages description
  - bump versioned b-d-i on python-support, to properly support Python module
  - replace b-d on python-all-dev with python-all, since building only
    arch:all packages
  - replace Source-Version substvar with source:Version
  - add ${misc:Depends} to binary packages Depends
* debian/watch
  - updated to use the SourceForge redirector; thanks to Raphael Geissert for
    the report and to Dario Minnucci for the patch; Closes: #449904
* debian/{pythoncard-doc, python-pythoncard}.install
  - use wildcards instead of site-packages to fix build with python 2.6;
    thanks to Ilya Barygin for the report and patch; Closes: #572332
* debian/pythoncard-doc.doc-base
  - set section to Programmin/Python
* debian/pythoncard-tools.menu
  - set menu main section to Applications
* debian/pythoncard-tools.postinst
  - removed, needed only to update the menu, but it's now created by debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{'application':{'type':'Application',
 
2
          'name':'StackWidgetsTest',
 
3
    'backgrounds': [
 
4
    {'type':'Background',
 
5
          'name':'bgWidgets',
 
6
          'title':'Widgets Test',
 
7
          'size':(800, 600),
 
8
 
 
9
        'menubar': {'type':'MenuBar',
 
10
         'menus': [
 
11
             {'type':'Menu',
 
12
             'name':'File',
 
13
             'label':'&File',
 
14
             'items': [
 
15
                  {'type':'MenuItem',
 
16
                   'name':'menuFileDumpWidgets',
 
17
                   'label':'Create Components Docs...',
 
18
                  },
 
19
                  {'type':'MenuItem',
 
20
                   'name':'menuFileExit',
 
21
                   'label':'E&xit\tAlt+X',
 
22
                   'command':'exit',
 
23
                  },
 
24
              ]
 
25
             },
 
26
         ]
 
27
     },
 
28
         'components': [
 
29
 
 
30
{'type':'ToggleButton', 
 
31
    'name':'chkToggleButton', 
 
32
    'position':(100, 225), 
 
33
    'size':(85, -1), 
 
34
    'label':'ToggleButton', 
 
35
    },
 
36
 
 
37
{'type':'StaticText', 
 
38
    'name':'labelToggleButton', 
 
39
    'position':(5, 230), 
 
40
    'text':'ToggleButton:', 
 
41
    },
 
42
 
 
43
{'type':'StaticText', 
 
44
    'name':'labelBitmapCanvas', 
 
45
    'position':(476, 496), 
 
46
    'text':'BitmapCanvas:', 
 
47
    },
 
48
 
 
49
{'type':'BitmapCanvas', 
 
50
    'name':'bmpBitmapCanvas', 
 
51
    'position':(566, 494), 
 
52
    'size':(112, 50), 
 
53
    'backgroundColor':(255, 255, 255), 
 
54
    },
 
55
 
 
56
{'type':'StaticText', 
 
57
    'name':'labelHtmlWindow', 
 
58
    'position':(546, 264), 
 
59
    'text':'HtmlWindow:', 
 
60
    },
 
61
 
 
62
{'type':'HtmlWindow', 
 
63
    'name':'htmHtmlWindow', 
 
64
    'position':(540, 288), 
 
65
    'size':(195, 150), 
 
66
    'backgroundColor':(255, 255, 255), 
 
67
    'text':'widgets.html', 
 
68
    },
 
69
 
 
70
{'type':'StaticBox', 
 
71
    'name':'stbStaticBox', 
 
72
    'position':(563, 449), 
 
73
    'size':(116, 32), 
 
74
    'label':'A StaticBox', 
 
75
    },
 
76
 
 
77
{'type':'StaticText', 
 
78
    'name':'labelStaticBox', 
 
79
    'position':(498, 460), 
 
80
    'text':'StaticBox:', 
 
81
    },
 
82
 
 
83
{'type':'StaticText', 
 
84
    'name':'labelSpinner', 
 
85
    'position':(228, 450), 
 
86
    'text':'Spinner:', 
 
87
    },
 
88
 
 
89
{'type':'Spinner', 
 
90
    'name':'spnSpinner', 
 
91
    'position':(310, 450), 
 
92
    'max':100, 
 
93
    'min':1, 
 
94
    'value':93, 
 
95
    },
 
96
 
 
97
{'type':'StaticText', 
 
98
    'name':'labelGauge', 
 
99
    'position':(228, 408), 
 
100
    'text':'Gauge:', 
 
101
    },
 
102
 
 
103
{'type':'Gauge', 
 
104
    'name':'gagGauge', 
 
105
    'position':(310, 404), 
 
106
    'size':(128, -1), 
 
107
    'layout':'horizontal', 
 
108
    'max':100, 
 
109
    'value':50, 
 
110
    },
 
111
 
 
112
{'type':'Calendar', 
 
113
    'name':'calCalendar', 
 
114
    'position':(299, 200), 
 
115
    },
 
116
 
 
117
{'type':'StaticText', 
 
118
    'name':'labelCalendar', 
 
119
    'position':(228, 260), 
 
120
    'text':'Calendar:', 
 
121
    },
 
122
 
 
123
{'type':'ComboBox', 
 
124
    'name':'cmbComboBox', 
 
125
    'position':(311, 364), 
 
126
    'size':(125, -1), 
 
127
    'items':['one', 'two', 'three'], 
 
128
    'stringSelection':'two', 
 
129
    'text':'two', 
 
130
    },
 
131
 
 
132
{'type':'StaticText', 
 
133
    'name':'labelComboBox', 
 
134
    'position':(228, 370), 
 
135
    'text':'ComboBox:', 
 
136
    },
 
137
 
 
138
{'type':'StaticBox', 
 
139
    'name':'StaticBox1', 
 
140
    'position':(543, 10), 
 
141
    'size':(250, 242), 
 
142
    'label':'Attributes', 
 
143
    },
 
144
 
 
145
{'type':'StaticLine', 
 
146
    'name':'staticMenuUnderline', 
 
147
    'position':(0, 0), 
 
148
    'size':(800, -1), 
 
149
    'layout':'horizontal', 
 
150
    },
 
151
 
 
152
{'type':'CheckBox', 
 
153
    'name':'chkEnabled', 
 
154
    'position':(550, 30), 
 
155
    'checked':True, 
 
156
    'label':'Enabled', 
 
157
    },
 
158
 
 
159
{'type':'CheckBox', 
 
160
    'name':'chkVisible', 
 
161
    'position':(550, 50), 
 
162
    'checked':True, 
 
163
    'label':'Visible', 
 
164
    },
 
165
 
 
166
{'type':'CheckBox', 
 
167
    'name':'chkEditable', 
 
168
    'position':(550, 70), 
 
169
    'checked':True, 
 
170
    'label':'Editable', 
 
171
    },
 
172
 
 
173
{'type':'Button', 
 
174
    'name':'btnBackgroundColor', 
 
175
    'position':(550, 95), 
 
176
    'label':'BackgroundColor', 
 
177
    },
 
178
 
 
179
{'type':'Button', 
 
180
    'name':'btnForegroundColor', 
 
181
    'position':(550, 125), 
 
182
    'label':'ForegroundColor', 
 
183
    },
 
184
 
 
185
{'type':'Button', 
 
186
    'name':'btnFont', 
 
187
    'position':(550, 155), 
 
188
    'label':'Font', 
 
189
    },
 
190
 
 
191
{'type':'Button', 
 
192
    'name':'btnToolTip', 
 
193
    'position':(550, 185), 
 
194
    'label':'ToolTip', 
 
195
    },
 
196
 
 
197
{'type':'Button', 
 
198
    'name':'btnBgBackgroundColor', 
 
199
    'position':(550, 215), 
 
200
    'label':'Background BackgroundColor', 
 
201
    },
 
202
 
 
203
{'type':'StaticText', 
 
204
    'name':'labelButton', 
 
205
    'position':(5, 5), 
 
206
    'text':'Button:', 
 
207
    },
 
208
 
 
209
{'type':'StaticText', 
 
210
    'name':'labelTextField', 
 
211
    'position':(5, 35), 
 
212
    'text':'TextField:', 
 
213
    },
 
214
 
 
215
{'type':'StaticText', 
 
216
    'name':'labelPasswordField', 
 
217
    'position':(5, 65), 
 
218
    'text':'PasswordField:', 
 
219
    },
 
220
 
 
221
{'type':'StaticText', 
 
222
    'name':'labelTextArea', 
 
223
    'position':(5, 95), 
 
224
    'text':'TextArea:', 
 
225
    },
 
226
 
 
227
{'type':'StaticText', 
 
228
    'name':'labelStaticText', 
 
229
    'position':(5, 170), 
 
230
    'text':'StaticText:', 
 
231
    },
 
232
 
 
233
{'type':'StaticText', 
 
234
    'name':'labelCheckBox', 
 
235
    'position':(5, 200), 
 
236
    'text':'CheckBox:', 
 
237
    },
 
238
 
 
239
{'type':'StaticText', 
 
240
    'name':'labelRadioGroup', 
 
241
    'position':(5, 260), 
 
242
    'text':'RadioGroup:', 
 
243
    },
 
244
 
 
245
{'type':'StaticText', 
 
246
    'name':'labelChoice', 
 
247
    'position':(5, 360), 
 
248
    'text':'Choice:', 
 
249
    },
 
250
 
 
251
{'type':'StaticText', 
 
252
    'name':'labelList', 
 
253
    'position':(5, 390), 
 
254
    'text':'List:', 
 
255
    },
 
256
 
 
257
{'type':'StaticText', 
 
258
    'name':'labelSlider', 
 
259
    'position':(5, 490), 
 
260
    'text':'Slider:', 
 
261
    },
 
262
 
 
263
{'type':'StaticText', 
 
264
    'name':'labelStaticLine', 
 
265
    'position':(5, 520), 
 
266
    'text':'StaticLine:', 
 
267
    },
 
268
 
 
269
{'type':'StaticText', 
 
270
    'name':'labelImage', 
 
271
    'position':(315, 5), 
 
272
    'text':'Image:', 
 
273
    },
 
274
 
 
275
{'type':'StaticText', 
 
276
    'name':'labelImageButton', 
 
277
    'position':(315, 110), 
 
278
    'text':'ImageButton:', 
 
279
    },
 
280
 
 
281
{'type':'TextField', 
 
282
    'name':'fldTextFieldNoBorder', 
 
283
    'position':(315, 150), 
 
284
    'size':(180, -1), 
 
285
    'border':'none', 
 
286
    'text':'TextField with no border', 
 
287
    },
 
288
 
 
289
{'type':'Button', 
 
290
    'name':'btnButton', 
 
291
    'position':(100, 4), 
 
292
    'label':'Button', 
 
293
    },
 
294
 
 
295
{'type':'TextField', 
 
296
    'name':'fldTextField', 
 
297
    'position':(100, 32), 
 
298
    'size':(180, -1), 
 
299
    },
 
300
 
 
301
{'type':'PasswordField', 
 
302
    'name':'fldPasswordField', 
 
303
    'position':(100, 62), 
 
304
    'size':(180, -1), 
 
305
    },
 
306
 
 
307
{'type':'TextArea', 
 
308
    'name':'fldTextArea', 
 
309
    'position':(100, 92), 
 
310
    'size':(180, 60), 
 
311
    'text':'Use the checkboxes and buttons on the right to set the attributes of the widgets on the left.\n\nThe editable attribute only applies to TextField, PasswordFiled, and TextArea.', 
 
312
    },
 
313
 
 
314
{'type':'StaticText', 
 
315
    'name':'txtStaticText', 
 
316
    'position':(100, 170), 
 
317
    'text':'StaticText', 
 
318
    },
 
319
 
 
320
{'type':'CheckBox', 
 
321
    'name':'chkCheckBox', 
 
322
    'position':(100, 200), 
 
323
    'label':'CheckBox', 
 
324
    },
 
325
 
 
326
{'type':'RadioGroup', 
 
327
    'name':'radRadioGroup', 
 
328
    'position':(100, 260), 
 
329
    'items':['one', 'two', 'three'], 
 
330
    'label':'A RadioBox', 
 
331
    'layout':'vertical', 
 
332
    'max':1, 
 
333
    'stringSelection':'one', 
 
334
    },
 
335
 
 
336
{'type':'Choice', 
 
337
    'name':'popChoice', 
 
338
    'position':(100, 360), 
 
339
    'items':['one', 'two', 'three'], 
 
340
    'stringSelection':'two', 
 
341
    },
 
342
 
 
343
{'type':'List', 
 
344
    'name':'lstList', 
 
345
    'position':(100, 390), 
 
346
    'size':(-1, 70),
 
347
    'items':['one', 'two', 'three'], 
 
348
    'stringSelection':'three', 
 
349
    },
 
350
 
 
351
{'type':'Slider', 
 
352
    'name':'sldSlider', 
 
353
    'position':(100, 490), 
 
354
    'size':(200, 20), 
 
355
    'layout':'horizontal', 
 
356
    'max':100, 
 
357
    'min':1, 
 
358
    'value':1, 
 
359
    },
 
360
 
 
361
{'type':'StaticLine', 
 
362
    'name':'linStaticLine', 
 
363
    'position':(100, 520), 
 
364
    'size':(200, -1), 
 
365
    'layout':'horizontal', 
 
366
    },
 
367
 
 
368
{'type':'ImageButton', 
 
369
    'name':'imgImageButton', 
 
370
    'position':(405, 110), 
 
371
    'border':'transparent', 
 
372
    'file':'edit.gif', 
 
373
    },
 
374
 
 
375
{'type':'Image', 
 
376
    'name':'imgImage', 
 
377
    'position':(385, 5), 
 
378
    'file':'tile.bmp', 
 
379
    },
 
380
 
 
381
] # end components
 
382
} # end background
 
383
] # end backgrounds
 
384
} }