The following snippet of code should generate four boxes with a relief of the type, GROOVE. However, for some reason, the relief = GROOVE causes an error (NameError: global name ‘GROOVE’ is not defined). I also tried to wrap GROOVE in quotes (relief = “GROOVE”), to no avail. Can anyone tell me my issue? Does DirectFrame not have a relief option? If not, the cryptic error I got with the version in quotes would be really strange (It shows a bunch of stuff related to DirectFrame and a dictionary, then says, "KeyError: ‘GROOVE’ ").
Here is my code:
staticKeys =  for i in range(4): newFrame = DirectFrame(frameColor=(0, 0, 0, .6), frameSize=(-.05, .05, -.05, .05), relief = GROOVE, pos=(1.1-(1-i*.1)+i*.025+.4, -1, -.875)) staticKeys.append(newFrame)
The intention is to generate a list of 4 predefined hotkeys (for inventory, stats, quests, and friend list). I can’t find good documentation or tutorials on actually USING DirectGUI anywhere, so I’m kind of stumbling blindly hoping things work sometimes. The code works perfectly without the relief = GROOVE.