TypeError: update() takes exactly 2 arguments (1 given)

Bug #315903 reported by Marco Rodrigues
2
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Triaged
Low
Unassigned

Bug Description

I'm using version 0.3 and I've music files associated with entertainer content manager.

TESTCASE:
1- Select menu "Music"
2- Tried to play a music and after I pressed "Esc" and said "No".
3- Tried again to play a music and repeated the 2- step.

This error keep showing in the console.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/user_interface.py", line 458, in handle_keyboard_event
    self.handle_user_event(UserEvent(UserEvent.NAVIGATE_SELECT))
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/user_interface.py", line 564, in handle_user_event
    self.current.handle_user_event(event)
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/screens/question_screen.py", line 130, in handle_user_event
    self.go_back()
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/screens/question_screen.py", line 111, in go_back
    screen.update()
TypeError: update() takes exactly 2 arguments (1 given)

Revision history for this message
Paul Hummer (rockstar) wrote :

Can anyone reproduce this? I don't seem to be able to.

Revision history for this message
Matt Layman (mblayman) wrote :

I am also unable to repeat this problem on the current trunk. I followed the steps indicated in the bug report but I couldn't get anything.

Marco, can you check this bug against the current trunk (because I made a bunch of changes to event handling that might have eliminated your problem). If you can repeat the problem, can you please provide the exact set of steps that create it?

Thanks.

Changed in entertainer:
status: New → Incomplete
Revision history for this message
Marco Rodrigues (gothicx) wrote :

I still can reproduce it... and now with jaunty with latest updates.

TESTCASE:

Music -> Select Artists -> Select Track -> Press Enter and it appears the progress bar of the music.

After I hit ESC and select "No" and Press Enter.

Traceback (most recent call last):
  File "/home/kmos/packages/entertainer/entertainerlib/frontend/gui/user_interface.py", line 308, in handle_keyboard_event
    event_handler(UserEvent(user_event))
  File "/home/kmos/packages/entertainer/entertainerlib/frontend/gui/user_interface.py", line 313, in handle_user_event
    self.event_handlers[kind](event)
  File "/home/kmos/packages/entertainer/entertainerlib/frontend/gui/user_interface.py", line 332, in _handle_default
    self.current.handle_user_event(event)
  File "/home/kmos/packages/entertainer/entertainerlib/frontend/gui/screens/screen.py", line 141, in handle_user_event
    self.event_handlers[kind]()
  File "/home/kmos/packages/entertainer/entertainerlib/frontend/gui/screens/question.py", line 105, in _handle_select
    self.go_back()
  File "/home/kmos/packages/entertainer/entertainerlib/frontend/gui/screens/question.py", line 87, in go_back
    screen.update()
TypeError: update() takes exactly 2 arguments (1 given)

Revision history for this message
Matt Layman (mblayman) wrote :

Marco, thanks for the clearer instructions. I was able to confirm this problem too. I think because it only fails on the audio play screen, it's not a terribly high priority.

Changed in entertainer:
importance: Undecided → Low
status: Incomplete → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.