[Urwid] Re: filechooser

Fabian Braennstroem f.braennstroem at gmx.de
Wed Oct 11 14:05:15 EDT 2006


Hi Rebecca,

* Rebecca Breu <rebecca at rbreu.de> wrote:
> This message is in MIME format.
>
> ---MOQ1160550419054797f2e196c3229ea199738cfc7aee
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
>
> Hi!
>
> Now the filechooser uses a Pile widget with both flow and box widgets.
>

Nice, but unfortunately it does not work for me. I get :

  node1~/Desktop/urwid-0.9.7.1$ python filechooser.py                                                                                         [11 Oct 8:02pm]
  Traceback (most recent call last):
    File "filechooser.py", line 334, in ?
      main()
    File "filechooser.py", line 288, in main
      ui.run_wrapper(run)
    File "/home/fab/Desktop/urwid-0.9.7.1/urwid/curses_display.py", line 179, in run_wrapper
      return fn()
    File "filechooser.py", line 311, in run
      if widget.b_pressed == "OK":
    File "/home/fab/Desktop/urwid-0.9.7.1/urwid/widget.py", line 1871, in __getattr__
      return getattr(self.w, name)
    File "/home/fab/Desktop/urwid-0.9.7.1/urwid/widget.py", line 1889, in __getattr__
      raise AttributeError, name
  AttributeError: b_pressed

Do you have any idea?

Greetings!
Fabian





More information about the Urwid mailing list