2011-09-03, 22:43
DragonWin Wrote:I need your help
hmmm, from a quick glance i guess you are running into some unwanted side effects of this type of thing?
specifically the contextmenuobj.append() on lines 80 or 83 will alter the original object that was passed to create_contextmenu() and NOT a copy of it as you might expect.
so i think when you get to line 51 both contextmenuobj and newcontextmenuobj are actually references to the same object!
t0mm0