File: menuDialog.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 (136 lines) | stat: -rw-r--r-- 2,397 bytes parent folder | download | duplicates (11)
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
{'type':'CustomDialog',
    'name':'menuDialog',
    'title':'Menu Editor',
    'size':(480, 300),
    'components': [

{'type':'List', 
    'name':'listMenus', 
    'position':(0, 0), 
    'size':(185, 185), 
    'items':[], 
    },

{'type':'Button', 
    'name':'btnUp', 
    'position':(5, 190), 
    'size':(50, -1), 
    'label':'Up', 
    },

{'type':'Button', 
    'name':'btnDown', 
    'position':(60, 190), 
    'size':(60, -1), 
    'label':'Down', 
    },

{'type':'Button', 
    'name':'btnDelete', 
    'position':(125, 190), 
    'size':(60, -1), 
    'label':'Delete', 
    },

{'type':'StaticText', 
    'name':'stcName', 
    'position':(200, 10), 
    'text':'Name:', 
    },

{'type':'StaticText', 
    'name':'stcLabel', 
    'position':(200, 35), 
    'text':'Label:', 
    },

{'type':'StaticText', 
    'name':'stcShortcut', 
    'position':(200, 60), 
    'text':'Shortcut:', 
    },

{'type':'StaticText', 
    'name':'stcCommand', 
    'position':(200, 85), 
    'text':'Command:', 
    },

{'type':'TextField', 
    'name':'fldListIndex', 
    'position':(460, 5), 
    'visible':False, 
    },

{'type':'TextField', 
    'name':'fldName', 
    'position':(275, 5), 
    'size':(188, -1), 
    },

{'type':'TextField', 
    'name':'fldLabel', 
    'position':(275, 30), 
    'size':(188, -1), 
    },

{'type':'TextField', 
    'name':'fldShortcut', 
    'position':(275, 55), 
    'size':(188, -1), 
    },

{'type':'TextField', 
    'name':'fldCommand', 
    'position':(275, 80), 
    'size':(188, -1), 
    },

{'type':'CheckBox', 
    'name':'chkEnabled', 
    'position':(275, 110), 
    'checked':True, 
    'label':'Enabled', 
    },

{'type':'CheckBox', 
    'name':'chkCheckable', 
    'position':(275, 135), 
    'label':'Checkable', 
    },

{'type':'CheckBox', 
    'name':'chkChecked', 
    'position':(275, 160), 
    'label':'Checked', 
    },

{'type':'Button', 
    'name':'btnNewMenu', 
    'position':(220, 190), 
    'label':'New Menu', 
    },

{'type':'Button', 
    'name':'btnNewMenuItem', 
    'position':(320, 190), 
    'label':'New MenuItem', 
    },

{'type':'Button', 
    'id':5100, 
    'name':'btnOK', 
    'position':(10, 240), 
    'default':1, 
    'label':'OK', 
    },

{'type':'Button', 
    'id':5101, 
    'name':'btnCancel', 
    'position':(115, 240), 
    'label':'Cancel', 
    },

] # end components
} # end CustomDialog