bad operand type in UIObject.py when used from ui/Calendar.py #721

Open
pyjsorg opened this Issue Apr 30, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@pyjsorg
Contributor

pyjsorg commented Apr 30, 2012

What steps will reproduce the problem?

  1. go to pyjamas/examples/datefield/output/DateField.html
  2. error will pop-up:
    bad operand type for unary -: '125'
    Traceback:
    pyjslib.py, line 480
    pyjamas.ui.Calendar.py, line 406:
    self.calendarLink = HyperlinkImage(self.img)
    pyjamas.ui.HyperlinkImage.py, line 20:
    img.unsinkEvents(Event.ONCLICK | Event.MOUSEEVENTS)
    pyjamas.ui.UIObject.py, line 260:
    DOM.sinkEvents(self.getElement(),
    ~eventBitsToRemove & DOM.getEventsSunk(self.getElement()))

125 in hex equals Event.ONCLICK | Event.MOUSEEVENTS
I don't see where unary - is.

Anyone any ideas?
What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=557 (March 01, 2011 17:56:03)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment