[Urwid] Urwid presentation at OCLUG

Allan Bailey allan at nefud.org
Thu Apr 6 16:37:12 EDT 2006



I get the following error running the presentation with urwid 0.9.2:

====
Traceback (most recent call last):
  File "oclug200604.py", line 904, in ?
    main()
  File "oclug200604.py", line 901, in main
    PresentDisplay().main()
  File "oclug200604.py", line 833, in main
    self.ui.run_wrapper( self.run )
  File "/usr/lib/python2.4/site-packages/urwid/raw_display.py", line 164, in run_wrapper
    fn()
  File "oclug200604.py", line 876, in run
    k = view.keypress( size, k )
  File "/usr/lib/python2.4/site-packages/urwid/widget.py", line 1531, in keypress
    return self.body.keypress( (maxcol, remaining), key )
  File "/usr/lib/python2.4/site-packages/urwid/widget.py", line 1114, in keypress
    return self.body.keypress( (maxcol,), key )
  File "/usr/lib/python2.4/site-packages/urwid/widget.py", line 1663, in keypress
    key = self.focus_item.keypress( (maxcol,), key )
AttributeError: Text instance has no attribute 'keypress'

====


Ian Ward <ian at excess.org> wrote:
>The presentation went well, but I could have used some more time to 
>answer questions.
>
>Photo by Richard Guy Briggs:
>http://tricolour.net/photos/2006/04/04/19-56-22i1.html
>
>The issue of horizontal scrolling came up again, so I will explore some 
>of the best ways to do that.
>
>Someone also asked about writing a widget for running console apps in... 
>that kind of scares me, because someone will want to run a shell over 
>the web_display module (a very insecure thing to do).
>
>James Mills wrote:
>
>>You doing presentation slides ? If so I'd like ot see em :)
>>I unfortuantely don't live anywhere near the same continent 
>>as that place :) (Australia)
>>  
>>
>I've posted the slides for my presentation at:
>http://excess.org/urwid/oclug200604.py
>
>The slides require Urwid version 0.9.2 and a UTF-8 capable terminal.  If 
>you don't have a UTF-8 terminal it can run in plain ascii mode:
>$ python oclug200604.py ascii
>
>I did the presentation on a Linux console with the font 
>"latarcyrheb-sun16.psf", which is the default in Ubuntu Breezy.
>
>You can use the mouse or "space" and "backspace" to move through slides.
>
>Ian
>
>
>_______________________________________________
>Urwid mailing list
>Urwid at lists.excess.org
>http://lists.excess.org/mailman/listinfo/urwid
>
--
.allan.




More information about the Urwid mailing list