def popupChoices(self, event=None):
"""Popup right-click menu of special parameter operations"""
#self.browserEnabled = DISABLED
#self.clearEnabled = DISABLED
#self.unlearnEnabled = DISABLED
self.frame = Frame(self.window, relief=RIDGE)
self.entry = Entry(self.frame, width = '21')
self.menu = Menu(self.entry, tearoff = 0)
self.menu.add_command(label = "File Browser",
#state = self.browserEnabled,
command = self.BrowseCmd)
self.menu.add_separator()
self.menu.add_command(label = "Browser",
#state = self.browserEnabled,
command = self.BrowseCmd)
self.menu.add_command(label = "TreeBrowser",
#state = self.browserEnabled,
command = self.BrowseCmd)
# Get the current y-coordinate of the Entry
ycoord = self.entry.winfo_pointery()
# Get the current x-coordinate of the cursor
xcoord = self.entry.winfo_pointerx()
# Display the Menu as a popup as it is not associated with a Button
self.menu.tk_popup(xcoord, ycoord)