blob: 9195093b81e04cea44730a88121571a6c957d9e2 (
plain)
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
|
from data import *
#
#the color light-blue
#
LightBlue = lightblue
# the 'object' dictionary contains the strings of the menu items
# that denote the objects
objects = {}
# object dictionary initialization
objects['sphere'] = [ZERO, o1]
objects['cylinder'] = [ZERO, o2]
objects['cube'] = [ONE, o3]
objects['icecream'] = [ZERO, o4]
objects['disk'] = [ZERO, o5]
objects['diamond'] = [ZERO, o6]
#objects['glass'] = [ZERO]
objects['pyramid'] = [ZERO, o7]
objects['table'] = [ZERO, o8]
# 'putDict' sets the value of entry 'key' of dictionary 'dict'
def putDict(dict, key, val) :
dict[key][0] = val
#
# 'getDict' get the contents of entry i of key 'key'
# of dictionary 'dict'
#
def getDict(dict, key, i) :
return dict[key][i]
# the 'options' dictionary contains the strings of the menu items
# that denote the options
options = {}
# option dictionary initialization
options['wire'] = [ZERO]
options['filled'] = [ONE]
|