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
|
{ 'application':{ 'type':'Application',
'name':'MulticolumnExample',
'backgrounds':
[
{ 'type':'Background',
'name':'bgMulticolumnExample',
'title':'Multicolumn Example PythonCard Application',
'size':( 620, 500 ),
'menubar':
{
'type':'MenuBar',
'menus':
[
{ 'type':'Menu',
'name':'menuFile',
'label':'&File',
'items': [
{ 'type':'MenuItem',
'name':'menuFileExit',
'label':'E&xit\tAlt+X',
'command':'exit' } ] }
]
},
'components':
[
{'type':'Button',
'name':'demoButton',
'position':(510, 5),
'size':(85, 25),
'label':'Load Demo',
},
{'type':'Button',
'name':'clearButton',
'position':(510, 30),
'size':(85, 25),
'label':'Clear',
},
{'type':'Button',
'name':'loadButton',
'position':(510, 55),
'size':(85, 25),
'label':'Load CSV',
},
{'type':'Button',
'name':'appendButton',
'position':(510, 80),
'size':(85, 25),
'label':'Append CSV',
},
{'type':'Button',
'name':'swapButton',
'position':(510, 105),
'size':(85, 25),
'label':'Swap Lists',
},
{'type':'Button',
'name':'prevButton',
'position':(510, 130),
'size':(85, 25),
'label':'Prev',
},
{'type':'Button',
'name':'nextButton',
'position':(510, 155),
'size':(85, 25),
'label':'Next',
},
{'type':'Button',
'name':'exitButton',
'position':(510, 180),
'size':(85, 25),
'label':'Exit',
},
{'type':'MultiColumnList',
'name':'theList',
'position':(3, 3), #10, 305
'size':(500, 390),
'columnHeadings': ['Example List'],
'items':['Example 1','Example 2','Example 3'],
},
{'type':'TextArea',
'name':'displayArea',
'position':(3, 398),
'size':(500, 40),
'font':{'family': 'monospace', 'size': 12},
},
{'type':'TextArea',
'name':'countArea',
'position':(507, 398),
'size':(85, 40),
'font':{'family': 'monospace', 'size': 12},
},
]
}
]
}
}
|