Bugs in DirectOptionMenu.py

If you put in

clickSound = None

in the init values then the program will give an error.

So solve this you need to change the following code…

        # Make popup marker have the same click sound
        self.popupMarker.guiItem.setSound(
            B1PRESS + self.popupMarker.guiId,self['clickSound'])
 

to…

        if self['clickSound']:
          # Make popup marker have the same click sound
          self.popupMarker.guiItem.setSound(
              B1PRESS + self.popupMarker.guiId,self['clickSound'])

There is also another problem in that the buttons which are created for the selections automatically have sounds attached even if you put rolloverSound and/or clickSound = None. But Ive not had time to find a solution to that.